SVG Graphics in CHM (Html Help Workshop)

2019-02-25 06:03发布

问题:

Im trying to use SVG-Graphics in a CHM-File. The CHM is created by HTML Help Worshop. Unfortunately the svg files dont show in my compiled chm... (Everything works fine in Html)

I already added my SVG to the Files section of my hhp. But still nothing.

Has anyone succeeded in using SVG Files in CHM created with Html Help Workshop?

Any Help is really appreciated!

Regards Christian

(This topic is only related to SVG. Bitmaps work just fine...)

回答1:

HTML Help Viewer renders topics in the IE 7 standards mode for compatibility reasons (see these answers), and IE doesn't support SVG until v. 9.

Possible solutions:

  • Change the FEATURE_BROWSER_EMULATION registry flag to make HTML Help Viewer use the IE 9 mode.
  • Use some JavaScript SVG libraries to render SVG. (Didn't try it though; just an idea.)