[EMAIL PROTECTED] wrote:
Hi All,
Is it possible to show the bookmark panel along with its corresponding
content when it is opened through a browser.
Look for the method setViewerPreferences.
http://itextdocs.lowagie.com/tutorial/objects/bookmarks/index.html#viewerprefs
The pdf generated has documents of many pages and its corresponding
bookmark panel has nodes in a hierarchical manner.
BTW, the nodes are created by PdfDestination and PdfOutline objects.A
snippet of it is written below.
PdfDestination destination = new PdfDestination(PdfDestination.FITH, para);
PdfOutline node = new PdfOutline(pnode, destination, name);
node.setOpen(true);
Please suggest the best way to create bookmarks which might have
parent-child relationship.
You are probably using the best way.
In your example 'node' is the child and 'pnode' the parent.
You could add a child to node with this code:
PdfOutline subnode = new PdfOutline(node, dest, n);
br,
Bruno
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
iText-questions mailing list
iText-questions@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/itext-questions