Skip to content

Understanding the output of pdf.get_drawings() better #1429

Answered by JorjMcKie
qwertynik asked this question in Q&A
Discussion options

You must be logged in to vote

Will the fill key in the path (item from paths = page.get_drawings()) already have this derived? ie: whether to fill the area or not.

No, because it cannot.
There may be multiple rectangles, circles, ... in the same path. Only their mutual overlap applies for that NZW rule, which obviously could be quite arbitrary looking figures.

I have no intention to add more higher level interpretations of the drawings output - like rectangles with rounded corners etc.
As per now I am detecting rectangles and quads - not even whether something is a circle. And that will be it, presumably. I am not underway building a new PDF viewer ... 😎.
So the rest will remain the "atomic" draw commands, lines and…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@qwertynik
Comment options

Comment options

You must be logged in to vote
2 replies
@qwertynik
Comment options

@JorjMcKie
Comment options

Answer selected by qwertynik
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1428 on November 30, 2021 09:31.