Skip to content

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

Description

@Abhinandan578

I am creating tables in Docx using HTML Table. Table contains 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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions