Vincent CAURIER wrote:
> hi,
> 
> I'd like to put some XMP metadatas in an existing PDF file I generated. 
> Can I add XMP informations when I generate the document

Yes, you can add XMP metadata to existing PDFs as well as
to PDFs you create from scratch. That answers your question.

The answer to the question how you can do this, can be
found in Appendix F of the book. If you don't have the book,
Google for XmpWriter and you'll find out how to create an
Xmp metadata stream that can be used with the methods
setXmpMetadata in either PdfStamper (existing PDFs) or
PdfWriter (new PDFs).

There are also some convenience methods that generate an
XMP stream based on common PDF metadata. I wasn't aware of
the fact that this wasn't sufficiently documented.

br,
Bruno

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/

Reply via email to