Hello, I am using PdfCopy to copy existing pdf's but need a way to positively remove any XMP metadata.
Why?
Are you also clearing the "DocInfo" fields as well?
This seems to work just fine but I see in the PDF spec that XMP metadata can be contained in any components that are represented as a stream or dictionary.
Correct. However, AFAIK, the only common location for it is on image dictionaries.
Does anyone know if there as a way to find and remove all those metadata streams if they exist anywhere in the document? Thanks, Greg
You can do it with our PDF Enhancer product (http://www.pdfenhancer.com).
It is possible using iText - but it requires walking the object tree and looking for the XMP key...
But again - why would you want to do this?!?!
Leonard
--------------------------------------------------------------------------- Leonard Rosenthol <mailto:[EMAIL PROTECTED]> Chief Technical Officer <http://www.pdfsages.com> PDF Sages, Inc. 215-938-7080 (voice) 215-938-0880 (fax)
------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ iText-questions mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/itext-questions
