Aaron J Weber wrote:

OK, what's new to me is the part where you are adding a bookmark using a Java HashMap. What I don't understand from that is how the List of bookmarks that I would want to insert my new one into ("bookmarks" in your example) is ordered and how it relates to the Outline.

Export the list to XML with the appropriate SimpleBookmark
method and you'll understand. (It's a nested structure.)

<>So I understand you're creating a new bookmark with your snippet at the bottom. However, if I have a list of 10's or 100's of bookmarks already in the List, how can I insert mine in the right order/position in the List and still maintain any inherent numbering in the lists returned by the SimpleBookmark call. Plus, how do I specify that my bookmark is at the "root" of the bookmark list (and has no kids/children)?

The ArrayList defines the order.
Adding an extra outline as the first element of the list
won't have any effect on the page numbering.
Only on the way bookmarks are organized.
br,
Bruno


-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
iText-questions mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/itext-questions

Reply via email to