I am adding new metadata with stamper PdfReader reader = new PdfReader("ped.pdf"); PdfStamper stamper = new PdfStamper(reader, new FileOutputStream("ped.pdf")); HashMap<String, String> info = reader.getInfo(); System.out.println(info.get("Keywords")); System.out.println(info.get("Keywords")); System.out.println(info.get("Keywords")); info.put("Title", "Hello World stamped"); info.put("Subject", "Hello World with changed metadata"); info.put("Keywords", "iText nicolas conde"); info.put("Creator", "nicolas conde"); info.put("Author", "nicolas conde"); stamper.setMoreInfo(info); stamper.close();
this code is full build -- View this message in context: http://itext.2136553.n4.nabble.com/PdfReader-getInfo-returns-null-for-Keywords-tp4661008p4661011.html Sent from the iText mailing list archive at Nabble.com. ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785111&iu=/4140 _______________________________________________ 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