Sreenaresh Gopu wrote:

Hello Mr. Bruno,

Thank you for your quick answer. Can you please verify if the following way
is correct to add title using PdfStamper as per your instructions
OK

PdfReader reader = new PdfReader("MergedPdf.pdf");
// the following line isn't necessary:
// int n = reader.getNumberOfPages();

PdfStamper stamp = new PdfStamper(reader, new
FileOutputStream("Pdf_With_Title.pdf"));
HashMap moreInfo = new HashMap();
Another way to get the info is:
Map moreInfo = reader.getInfo();

moreInfo.put("Title", "Merged Pdf Docs");
stamp.setMoreInfo(moreInfo);
stamp.close();

This looks OK to me. Just give it a try and check
File->Document Properties...->Description
in Adobe Reader to see the result.
best regards,
Bruno


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to