Currently I am using the following to add some bookmarks to an existing PDF:
PdfStamper.setOutlines(SimpleBookmark.importFromXML(new ByteArrayInputStream(bookmarks.buildXml().getBytes()))); The above is working just fine, however I need to add the same bookmarks to a new PDF I am creating from scratch using PdfWriter and Document class. Is there a method that allows the setting of bookmarks (outlines) at once on the PdfWriter or Document in a similar manner ? -- View this message in context: http://www.nabble.com/How-to-use-bookmark-xml-and-new-PDF-documents-tf4036564.html#a11467827 Sent from the iText - General mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ iText-questions mailing list iText-questions@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/itext-questions Buy the iText book: http://itext.ugent.be/itext-in-action/