Roger Misteli wrote:

Hi Bruno

Unfortunately, this didn't solve my problem.
Apparently (I looked into the PDF itself) the PDF I have as template has
more than one XMP Metadata object stored. If I remove(PdfName.METADATA)
I seem to remove, well, one of them. The rest is still there.

I attached the PDF I use as template, maybe I'm overlooking something
here?
My wife has limeted my 'online time' during the long weekend, so I could only throw a quick look at your file ;-) I thought you had been adding metadata to the catalog using iText, but now I see you have a file that was linearized by Adobe Illustrator 10. XMP Metadata can be added to any PdfDictionary for which it is relevant to have metadata. In your case, you have several Page Dictionaries that are referring to an XMP Stream. You can probably retrieve those dictionaries with PdfReader and remove the metadata entry and the corresponding object containing the XMP stream, but I can't tell you from memory how it is done; I don't even know if it's possibe without making some changes to iText.
br,
Bruno


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to