Ambrose, akahn wrote > how do I extract the meta data from individual pages which were added > using setPageXmpMetadata() method in PdfWriter using the > setPageXmpMetadata() method here: > http://itext-general.2136553.n4.nabble.com/Adding-XMP-Metadata-to-a-Document-tp2153602p2153608.html
The page metadata are stored in a stream referenced from the page dictionary in question in its /Metadata entry. Thus: PdfReader reader = new PdfReader(...); PdfDictionary pageDict = reader.getPageNRelease(1); PRStream stream = (PRStream) pageDict.getAsStream(PdfName.METADATA); byte[] xmpBytes= PdfReader.getStreamBytes(stream); reader.close(); Regards, Michael -- View this message in context: http://itext-general.2136553.n4.nabble.com/Extacting-XMP-Metadata-from-a-page-tp4659531p4659532.html Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Sponsored by Intel(R) XDK Develop, test and display web and hybrid apps with a single code base. Download it for free now! http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk _______________________________________________ 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