Hello,
To extract images from a PDF, I use the code according to your readme (see Recipes -> Extract all images from a PDF). But instead the entire upper image (see page 4 of the attached file), I receive 15 smaller ones, with various icons and black rectangles being treated as separate images.
In the other attachment, I showed the entire image I would like to extract. Note that the image area has some text layer bboxes. I partially highlighted the text layer to make the situation clear.
Is it possible in PyMuPDF to extract this image entirely and not to add smaller images included in the entire image area to the result? If yes, what code / which options should I use? If not, why?
Externalization.pdf
Hello,
To extract images from a PDF, I use the code according to your readme (see Recipes -> Extract all images from a PDF). But instead the entire upper image (see page 4 of the attached file), I receive 15 smaller ones, with various icons and black rectangles being treated as separate images.
In the other attachment, I showed the entire image I would like to extract. Note that the image area has some text layer bboxes. I partially highlighted the text layer to make the situation clear.
Is it possible in PyMuPDF to extract this image entirely and not to add smaller images included in the entire image area to the result? If yes, what code / which options should I use? If not, why?
Externalization.pdf