writer.setViewerPreferences(PdfAWriter.DisplayDocTitle); added the above line to make it work.
-- View this message in context: http://itext.2136553.n4.nabble.com/Adding-Document-title-in-the-titlebar-instead-of-filename-tp4660898p4660899.html Sent from the iText mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ 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