docx4j-ImportXHTML icon indicating copy to clipboard operation
docx4j-ImportXHTML copied to clipboard

SVG Images are not getting rendered in Docx while using XHTMLImportterImpl.convert()

Open Abhinandan578 opened this issue 1 year ago • 0 comments

I am creating tables in Docx using HTML Table. Table contains <Img> with SVG Base 64 image as Src. eg: <img src='data:image/svg+xml;base64,PHN2ZyB4bWx….>

While calling the XHTMLImportterImpl.convert() on the HTML Table string i am getting error -

[main] WARN org.docx4j.openpackaging.parts.WordprocessingML.BinaryPartAbstractImage - The file format is not supported. No ImagePreloader found for file:

Its working fine for PNG and JPEG Images. Can someone please help me here.

Artifact - docx4j-ImportXHTML Version - 11.4.8

Abhinandan578 avatar Dec 06 '23 10:12 Abhinandan578