Closed molitoris closed 4 years ago
Maybe you want to check the above patch whether it solves your issue?
Thank you for your help.
I am not sure, if I install the svglib correctly. I ran the following command pip install git+git://github.com/claudep/svglib.git@issue246
to install the adapted svglib package.
Chances are that if you didn't get errors, the install worked!
After setting up a new environment and install all dependencies again, I got the expected result. However, when I ran it with a larger SVG image, I get the following warning multiple times: Unable to resolve percentage unit without knowing the node name
. The resulting pdf has a lot of scaling problems.
Would be great if you could post one of those SVGs (or send it directly to me).
I am drawing an SVG graphic that contains a container with absolute size. The elements contained in it have relative sizes and are drawn accordingly.
When converting to PDF, the nested elements have a different size. It appears that the nested elements are drawn relative to the total size. I expect that the size of the nested elements will also be drawn in PDF relative to the surrounding container.
image.svg
Output: Drawing000.pdf
Minimal example