Skip to main content
Participant
February 28, 2009
Question

PDF Table of Contents sub levels

  • February 28, 2009
  • 1 reply
  • 666 views
We have successfully created a great table of contents using DDX example from Raymond Camden, we are not able though to work out how we can produce the nesting of the table of contents items.
i.e. Main section.....1
Sub section ......2
Sub section.......3

We have found some documentation that refers to the ability to do this;
( http://livedocs.adobe.com/livecycle/8.2/ddxRef/wwhelp/wwhimpl/common/html/wwhelp.htm?context=DDX&file=001136.html)
maxBookmarkLevel
Optional. Specifies the maximum nesting level of bookmarks used to construct the table of contents. For instance, a value of 1 means that only top-level bookmarks are used to build the table. Further, only bookmarks that refer to pages within the result document are included in the table of contents.

We were thinking that if you can specif the maximun level of bookmarks then you should somewhere be able to set what bookmark has what level. We have not been able to successfully do this yet.

If anyone has then any help would be very gratefully received.

Thanks
This topic has been closed for replies.

1 reply

Inspiring
February 28, 2009
> how we can produce the nesting of the table of contents items.

I suspect you may be out of luck with cfdocument generated pdfs.

From Raymond's article, cfdocumentsection is what generates the headings used in the table of contents. IIRC, you cannot nest cfdocumentsection tags (to create nesting in the table of contents). You can add bookmarks with ddx, but not from CF. Bookmarks are on the restricted list.

You could do that sort of thing with iText, but it involves more complexity than cfdocument. It might not be worth it just for a TOC.