How to extract images while retaining Microsoft PowerPoint-like items layered on top of the images? #4040
-
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
You again did not include the PDF in question. So I still don't understand the problem and I am forced to guess: If true you must make a picture of the page (and not extract the image). First find the image's boundary box on the page |
Beta Was this translation helpful? Give feedback.
-
For what you need I think you could also use |
Beta Was this translation helpful? Give feedback.
You again did not include the PDF in question. So I still don't understand the problem and I am forced to guess:
You have a PDF page show some image and some annotation(s) hovering above?
If true you must make a picture of the page (and not extract the image). First find the image's boundary box on the page
page.get_image_rects(xref)
, then make a pixmap using the bbox as clip:pix = page.get_pixmap(clip=bbox)
.