Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

PDF Table of Contents sub levels

New Here ,
Feb 27, 2009 Feb 27, 2009
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&fil...
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
TOPICS
Advanced techniques
651
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Valorous Hero ,
Feb 27, 2009 Feb 27, 2009
LATEST
> 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.


Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources