Op 22/04/2013 10:31, Deepti Banana schreef:
> Code mentioned by you is exactly what I tried. Please find the generated pdf 
> file attached.
Yes, and it works perfectly, so why do you keep on asking about this???

If you look at the XMP metadata, you can clearly see that your custom 
TEST metadata was added:

<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/">
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#";>
<rdf:Description rdf:about="" 
xmlns:dc="http://purl.org/dc/elements/1.1/";><dc:format>application/pdf</dc:format><dc:subject><rdf:Bag><rdf:li>HelloWorld
 
CustomExample</rdf:li><rdf:li>XMP &amp; 
Metadata</rdf:li><rdf:li>Metadata</rdf:li></rdf:Bag></dc:subject></rdf:Description>
<rdf:Description rdf:about="" 
xmlns:pdf="http://ns.adobe.com/pdf/1.3/";><pdf:PDFVersion>1.4</pdf:PDFVersion><pdf:Producer>iText®
 
5.4.0 ©2000-2012 1T3XT BVBA 
(AGPL-version)</pdf:Producer><pdf:Keywords>Hello World, XMP, 
Metadata</pdf:Keywords></rdf:Description>
<rdf:Description rdf:about="" 
xmlns:ls="http://www.w3.org/1999/02/22-rdf-syntax-ns#";><ls:LabelId><rdf:Bag><rdf:li>TEST</rdf:li></rdf:Bag></ls:LabelId></rdf:Description>
</rdf:RDF></x:xmpmeta>




















<?xpacket end="w"?>

------------------------------------------------------------------------------
Precog is a next-generation analytics platform capable of advanced
analytics on semi-structured data. The platform includes APIs for building
apps and a phenomenal toolset for data science. Developers can use
our toolset for easy data analysis & visualization. Get a free account!
http://www2.precog.com/precogplatform/slashdotnewsletter
_______________________________________________
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

Reply via email to