Anyone have any quick code samples on howto create Outlines(bookmarks) in 
iText? I see there is a PdfOutline class, but on every call to the PdfCopy.add
() method requires a PdfOutline Object which in turn is instantiated through 
specifying:

1) a PdfOutline parent Object
2) PdfDestination or PdfAction Object
3) String Title.
4) boolean open (depending on which overloaded constructor is invoked)

So my specific questions:
1) How do I create the Main Parent PdfOutline Object (root of bookmarks) which 
has no parent?
2) Do I need to be create a PdfAction or PdfDestination Object that goes to a 
specific page within the merged document?
(My inclination here is to create a PdfAction Object through the PdfAction
(String filename, int pagenumber) constructor )

Overview of what I'm doing:
I am merging 'x' number of pdf documents (up to 200) and need to create a 
bookmark that refers to each document merged within the final file.  Ideally, 
if there is a way to keep any of the read document's bookmarks as children 
under the new bookmark that would be awesome!

Thanks any and all for reading this lengthy email...

Brett Favro
[EMAIL PROTECTED]




-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to