"Image not found or type unknown" in place of SVG image

534 views
Skip to first unread message

Steven Sokulski

unread,
Jan 10, 2017, 9:25:18 PM1/10/17
to dompdf
Hello,

I'm trying to generate a PDF from an HTML file that contains an SVG loaded via an <img> tag.

In the PDF, I se a white square with a gray X on it and the words "Image not found or type unknown" instead of the intended image.

I have tried this so far with two SVG files, both the one I want to use and a simpler file from Wikipedia (https://upload.wikimedia.org/wikipedia/commons/8/85/Cyclohexane_simple.svg).

I have also tried loading a PNG image from the same directory and it worked without issue.

Lastly, I've included the image via base64 encoding in the source tag and was not able to get them to load that way either.

Any tips for continued troubleshooting here would be appreciated.

Thank you!

BrianS

unread,
Jan 11, 2017, 1:52:38 PM1/11/17
to dompdf
Which version of dompdf are you using? I was able to render the SVG when using 0.7.0, though I did note an issue on my debugging site when attempting to use the latest code from the develop branch (but that could just be a configuration/installation issue).
Reply all
Reply to author
Forward
0 new messages