get_cdrawings elements have zero width #3621
Replies: 1 comment
-
Problem solved in latest versions of the PyMuPDF. (Issue is relevant for version 1.24.5) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello!
I have encountered an interesting issue with PyMuPDF. Some original PDF document works well in terms of the results of the
get_cdrawings()
method.test4_page_1.pdf
But if I get an SVG image via
get_svg_image(text_as_path=False)
then after conversion into PDF again, theget_cdrawings()
method will show thewidth
parameter as zero for each element. I've tried 2 libs for such a conversion including PyMuPDF with such a code snippet:Resulting PDFs:
pymupdf.pdf
another_lib.pdf
Thank you for any help in advance!
P.S. Some strange behavior with the text was also noticed. Probably some font names are bad or the text used is not in English I guess. Instead of letters, I have symbols similar to diamonds with question marks in SVG and therefore also in PDF.
But this is a topic for another discussion I suppose.
Beta Was this translation helpful? Give feedback.
All reactions