-
Notifications
You must be signed in to change notification settings - Fork 232
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
adding an SVG image displays a black square #1036
Comments
Welcome and thank you for the report @gbgssoftware Sadly, the visual rendering of your SVG file depends heavily on a CSS styling is one of the SVG features currently not supported by The only quick solution for you now is to modify your SVG file. from fpdf import FPDF
pdf = FPDF()
pdf.add_page()
pdf.image("issue-1036.svg", w=pdf.epw)
pdf.output("issue_1036.pdf") For the record, this SVG file seems to have been generated by CorelDRAW 2017 You can also make a contribution to Does this comment answer your questions? 🙂 |
FWIW, Firefox also displays the original file with a black square. |
In the modified SVG, To make a contribution, I would like to :-) Thanks |
You'll have to do your own research on this, but a quick check on a web search engine reveals some options:
Of course, that is an option.
You can start to read our documentation page on development guidelines: Second, you can read |
This comment was marked as resolved.
This comment was marked as resolved.
@gbgssoftware : feel free to ask any questions you would have regarding this 🙂 Without any news from you, we will close this issue at some point. |
Hello there!
Thanks for the community members who develop and support fpdf2.
I'm using this version
pip install git+https://github.com/PyFPDF/fpdf2.git@master
and this codeWhen I open the pdf file, the image appears as a black square.
output pdf:
svg image:
What can I do?
The text was updated successfully, but these errors were encountered: