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
I would like to know whether its possible to use the document title in the
titlebar when the PDF is opened instead of the filename appearing in it?
If yes, then how to achieve it?
Here's the code i tried & it shows list.pdf in the titlebar of the PDF
reader (Adobe) instead of the document's title.