How do I get the number of vector images on each page without extracting all the vector graphics? #4634
Answered
by
JorjMcKie
Changeyuy
asked this question in
Looking for help
-
page.get_cdrawings() can extrace vector images from page; but I want to know how can I get the number of vector images on each page without extracting all the vector graphics? |
Beta Was this translation helpful? Give feedback.
Answered by
JorjMcKie
Jul 28, 2025
Replies: 2 comments
-
This is not an issue, but a Discussions item. Transferring ... |
Beta Was this translation helpful? Give feedback.
0 replies
-
You can determine the boundary box of all content on the page. The list get_bboxlog can be use to derive the numbers you want, e.g. len([b for b in page.get_bboxlog() if "path" in b[0]])
9 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Changeyuy
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You can determine the boundary box of all content on the page. The list get_bboxlog can be use to derive the numbers you want, e.g.