wang yun wrote:
Dear iText Support,
I have an existing pdf file, I want to add bookmark
using PDFStamper.setOutlines(List outlines)
But, I don't know how to create List from strings.
Can I create PDFOutLine Object and then get List from
PDFOutLine?
There are different ways to do it, but they don't involve PdfOutline.
You need to have a look at SimpleBookmark.
http://itextdocs.lowagie.com/docs/com/lowagie/text/pdf/SimpleBookmark.html
You can create an XML and import it into a SimpleBookmark object.
(Maybe you should try to use SimpleBookmark on some existing PDFs
with an outline tree first to see what the XML looks like).
Or you can create a HashMap with outline entries.
There will be an example on this in the book, but for the moment
I can't disclose this example.
br,
Bruno
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions