On 28/05/2011 14:03, John Renfrew wrote:
Bruno
The dictionary values are correct, there is no XMP, not got there yet...
But there is!
This is your info dictionary:
<</Creator(RWU)/Producer(Mac OS X 10.5.8 Quartz PDFContext; modified
using iText® 5.1.0 ©2000-2011 1T3XT BVBA)/Title(newTitle 2)/Keywords(new
Keywords, more keys and then
some)/ModDate(D:20110528125240+01'00')/Subject(newSubject 2)/Author(J
RENFREW)/CreationDate(D:20110519163315Z)>>
You are right: this information isn't shown in Adobe Reader's "Document
Description".
But the file also has an XMP stream and this is a snippet of that stream:
<rdf:Description rdf:about="" xmlns:dc="http://purl.org/dc/elements/1.1/">
<dc:format>application/pdf</dc:format>
<dc:creator>
<rdf:Seq>
<rdf:li>B</rdf:li>
</rdf:Seq>
</dc:creator>
<dc:description>
<rdf:Alt>
<rdf:li xml:lang="x-default">C</rdf:li>
</rdf:Alt>
</dc:description>
<dc:title>
<rdf:Alt>
<rdf:li xml:lang="x-default">A</rdf:li>
</rdf:Alt>
</dc:title>
<dc:subject>
<rdf:Bag>
<rdf:li>D</rdf:li>
</rdf:Bag>
</dc:subject>
</rdf:Description>
You should add this line to your code:
stamper.getWriter().createMetadata();
I'm not sure if this will work in the context of PdfStamper, I've only
tried it in the context of PdfWriter.
Please let us know if it did the trick.
------------------------------------------------------------------------------
vRanger cuts backup time in half-while increasing security.
With the market-leading solution for virtual backup and recovery,
you get blazing-fast, flexible, and affordable data protection.
Download your free trial now.
http://p.sf.net/sfu/quest-d2dcopy1
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions
iText(R) is a registered trademark of 1T3XT BVBA.
Many questions posted to this list can (and will) be answered with a reference
to the iText book: http://www.itextpdf.com/book/
Please check the keywords list before you ask for examples:
http://itextpdf.com/themes/keywords.php