Skip to content

Base 64 encoded SVG does not load in pdf #484

@adrianrodfer

Description

@adrianrodfer

Hi,

I have an image with a Base 64 encoded "svg" in my html file, like this:

<img src="data:image/svg+xml;base64,PD94bWwgdmVyc2...">

I need to have the image in a pdf. But I get the following error:

com.openhtmltopdf.load WARNING:: Unrecognized image format for: data:image/svg+xml;base64,PD94bWwgdmV...
com.openhtmltopdf.exception WARNING:: Can't read XHTML embedded image.

Is there any way to insert a Base64 encoded svg?

Thanks,
Adrian

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