Am 13.11.2019 um 09:33 schrieb Damien Levasseur:
Hello all,
When i extract images (version 2.0.17, using PDResources, COSName,
PDXObject, PDImageXObject), i correctly get all distinct images, but
same image is extracted only once. In the pdf file i'm trying to work
on, there is one image repeated 3 times, and i wanted to get that.
How can i get a list of resources instead of Dictionary? Or get number
of occurence or position of a repeated image?
Thanks
Hi,
The easiest would be to take the source code of the ExtractImages tool,
and simply remove the duplicate check.
if (seen.contains(xobject.getCOSObject()))
{
// skip duplicate image
return;
}
Tilman
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@pdfbox.apache.org
For additional commands, e-mail: users-h...@pdfbox.apache.org