I amd using pandoc to convert a standalone html (with not external dependency), with all required css and js merged in html itself. HTML has few svg graphs generated via javascript library
The said html file, when opened in browser renders fine, but when converted to docx, svg images are missing from docx file.
command used to convert, looks like
pandoc ./something.html -s -o test1.docx
What I suspect is that it is converting file before javascript could even render those images.
Appreciate help
The docx needs a png fallback image, that it uses to show the image.
Pandoc doesn't create those fallback images, but they are aware of the issue. You can track the progress here:
https://github.com/jgm/pandoc/issues/4058
It should be included in the next release.
It is now implemented in 2.15
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.