Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » iText »

[iText-questions] How to use bookmark xml and new PDF documents

David Powell

2007-07-06

Replies:


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 ?


--
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@(protected)
https://lists.sourceforge.net/lists/listinfo/itext-questions
Buy the iText book: http://itext.ugent.be/itext-in-action/
©2008 junlu.com - Jax Systems, LLC, U.S.A.