Hi,
It is probably not so easy: while you could loop through the existing
resources maps (fonts, xobjects, colorspaces, graphic states,
properties, patterns, shadings), and add one by one to the new one, or
alternatively delete from the COSDictionary and create a new PDResources
from there, to be perfect you'd have to clean the content stream where
the image is invoked.
If you are sure that the image is not superimposed, you could replace it
in the resources with a blank image of the same size (and the same
name!). If you know that the image is a stamp, then rather a transparent
image of the same size.
Tilman
Am 10.12.2014 um 06:32 schrieb Swapnil Raverkar:
Hi,
I need to delete specific images from PDF file which has metadata
associated with it.
I tried couple of options specified in this mailing list without success. I
was able to remove all images using :
page.setResources(new PDResources());
But i need to delete only specific images which has metadata associated
with it.
Any pointers on this would be appreciated.
Thanks,
Swapnil