Hello, I am using PdfCopy to copy existing pdf's but need a way to positively remove any XMP metadata. As a first attempt I am using "reader.getCatalog().remove(PdfName.METADATA)" prior to creating a new Document using the reader. 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. 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<x-tad-smaller>
</x-tad-smaller>

Reply via email to