-
Hello, Thanks for building this feature-rich and accessible PDF processing library. To extract and locate drawings in the PDF had found that the While the output of the function is understandable, more clarity is required in some other parts of the output. Here are a couple of questions regarding the output:
There are more questions. Any documentation to look at to understand the above with greater clarity? Thanks! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Thanks for the compliments ... This function tries to create output that can be used directly as input by methods of class For rectangles, I recently included an indicator (+1 / -1) for the area orientation. Background: you can draw it in a clockwise (-1) or anti-clockwise movement, which gives the enclosed are a "spin" or orientation. Circles (ellipses) are generally drawn by 4 connected Bézier curves (a type of splines). The variant I am using consists of 4 points: start point, two control points, end point per each of the 4 curves.
|
Beta Was this translation helpful? Give feedback.
-
No, because it cannot. I have no intention to add more higher level interpretations of the drawings output - like rectangles with rounded corners etc. If you find something that can dig its way through the page's pixmap image and detect more complex things - please do not hesitate to share it here. |
Beta Was this translation helpful? Give feedback.
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…