Hello,
you can look at the SimpleBookmark class:
http://www.1t3xt.info/api/com/lowagie/text/pdf/SimpleBookmark.html

1. create the reader and the stamper
2. get the bookmarks via SimpleBookmark.getBookmark(reader) static method. It 
returns a list of HashMap objects: see the javadocs for more information
3. manipulate the list of HashMap objects by adding your new bookmark items 
4. finally use myPdfStamper.setOutlines( myListOfBookmarks ) to save the 
updated bookmarks to the resulting pdf.

Fabrizio




________________________________
Da: Jason(VIET) PHAM <[email protected]>
A: [email protected]
Inviato: Mer 14 ottobre 2009, 1:02:39
Oggetto: [iText-questions] adding new bookmark to exist pdf


How do i read current pdf, get it bookmark and add additional bookmark and save 
it back.

__________________________________________________
Do You Yahoo!?
Poco spazio e tanto spam? Yahoo! Mail ti protegge dallo spam e ti da tanto 
spazio gratuito per i tuoi file e i messaggi 
http://mail.yahoo.it 
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Buy the iText book: http://www.1t3xt.com/docs/book.php
Check the site with examples before you ask questions: 
http://www.1t3xt.info/examples/
You can also search the keywords list: http://1t3xt.info/tutorials/keywords/

Reply via email to