get_images() function doubt #3844
-
Description of the bugFor above pdf page, why it is giving me so many image reference when in total there are only 3 images??
Also is there any way I can retrive the lable of the image??? i.e {Fig. 3. An example of using intelligent transportation pdf Analysis_of_the_road_traffic_management_removed.pdf PyMuPDF version1.24.5 Operating systemWindows Python version3.11 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
Please be nice and attach the PDF as it is mandatory for bug reports. As a note: And that remaining "single" street scene image may have been composed of multiple tiny images, superposing each other or stitched together. |
Beta Was this translation helpful? Give feedback.
-
Vector graphics are composed of very many drawing instructions usually. To make an image of these, we must first find a way to cluster drawing instructions. |
Beta Was this translation helpful? Give feedback.
-
I am going to transfer this "bug" report to a Discussions items, as you obviously are not reporting a PyMuPF problem. |
Beta Was this translation helpful? Give feedback.
Vector graphics are composed of very many drawing instructions usually. To make an image of these, we must first find a way to cluster drawing instructions.
Then create an image (Pixmap) of that identified clustered area of the page. There is no way to directly extract vector graphics.
Find vector graphics cluster rectangles via
Page.cluster_drawings()
.