Leonard,
Thanks for the quick response. I need to suppress this information because we handle peer-reviewed documents. The evaluators must remain anonymous and sometimes there is need to send their evaluations back to a submitting author. On occasion the evaluator's name will appear in XMP data that has been included unwittingly so we need to remove this data before it gets forwarded.


I am resetting the metadata in the DocInfo fields as shown in the iText examples so this isn't a problem - but I thank you for bringing it up!

I have to tell you that I am fairly new to processing pdf docs as well as the proper use of iText so I am not quite sure of how to walk the object tree and search for XMP streams in a comprehensive way. Is there an example of this someplace?

Thanks,
Greg

On Apr 12, 2005, at 5:48 PM, Leonard Rosenthol wrote:

At 11:27 AM 4/12/2005, Greg Sabatino wrote:
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

Reply via email to