-
Notifications
You must be signed in to change notification settings - Fork 79
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
PDF Export with Embedded SVG #124
Comments
Here's the svg as a txt file: |
Yes, it's known that embedding SVGs is currently buggy (this was revealed by the |
I apologize for the duplicate ticket then. Any suggestions where to look to help squash this bug? I'll be mulling over the code to help patch this :) |
No need to apologize, there was no properly-named ticket about this until now. |
Looks like I may have to open a pull request once I'm more sure ;) |
Show us the code, dude :-) |
Scaling needs to be fixed... |
Here are the two functions I've applied code to class SvgRenderer:
|
translate works, but I have a scale issue to work through. Still learning the class/object. |
Still hacky. Here's the code that's working on my fairly complex SVG:
|
Ignore the debug print(), of course ;) |
Thanks Jeffrey D. Gordon for the initial patch.
…/width Thanks Jeffrey D. Gordon for the initial patch.
Thanks Jeffrey D. Gordon for the initial patch.
Thanks Jeffrey D. Gordon for the initial patch.
I've created the following test SVG (I've simplified this ugly example immensely after discovering this issue):
SVG Preview Screenshot:
PDF Render:
Will paste my (again, ugly) test SVG code below.
What appears to be happening:
svglib is trying to use one of the embedded SVG dimensions as the parent document dimension.
The text was updated successfully, but these errors were encountered: