Op 29/03/2013 13:14, Juan Fernando Schussmüller schreef:
> Hello,
>
> I have a problem retrieving metadata from te pdf´s, I had find 
> documentation about filling metadata but not to retrieve.
>
> Please can you send me a exapmle about how I  can retrieve this data?

There can be two types of metadata in a PDF:

1. In the infodictionary:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfReader.html#getInfo%28%29
In this case, you ask PdfReader for a Map of key-value pairs using the 
getInfo() method.

2. In the XMP stream:
http://api.itextpdf.com/itext/com/itextpdf/text/pdf/PdfReader.html#getMetadata%28%29
In this case, you ask PdfReader for a byte[] containing XML that is 
conform with the XMP standard.

------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
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