New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SVGs not supported by PDF library #1108
Comments
Hi, sorry the delay, PR in xhtml2pdf was merge today, and I how in few days I will launch a new release. |
@luisza Awesome, thank you so much for fixing the problem and letting us know about it! |
@luisza Hey, |
Hi, |
@luisza Hey Luisza, |
Describe the Bug
At the moment, we use svg images as icons and the media export from wordpress also might contain svg images.
These images are not included in PDFs which are generated with xhtml2pdf.
The corresponding issue is: xhtml2pdf/xhtml2pdf#73
Apparently, there is an open PR for it (xhtml2pdf/xhtml2pdf#561), but it shows no recent activity.
As solution, I see 3 options:
Steps to Reproduce
Expected Behavior
The image should be included in the PDF
Actual Behavior
The image is missing and the error
PIL.UnidentifiedImageError: cannot identify image file
appears in the consoleTraceback
Additional Information
The text was updated successfully, but these errors were encountered: