Is there a possibility to generate bookmarks (for DDX table of content) with Coldfusion or DDX without starting a new page?
Coldfusion gives us the possibility to generate pdf-bookmarks with:
<cfdocumentsection name=""></cfdocumentsection>
But this also creates a new page.
All help is welcome.
code:
<cfdocument name="myPdf" format="PDF">
<cfdocumentsection name="section 1">
This is section 1
</cfdocumentsection>
<cfdocumentsection name="section 2">
This is section 2
</cfdocumentsection>
<cfdocumentsection name="section 3">
This is section 3
</cfdocumentsection>
</cfdocument>
<cfprocessingdirective suppressWhitespace="true">
<cfcontent type="application/pdf" reset="true" variable="#tobinary(myPdf)#"/>
</cfprocessingdirective>
this results in a pdf document with 3 pages and 3 bookmarks
I found the solution, but it's not easy:
Let's say we have 3 sections of undefined length
Get the page info to know at what page the content will be
Define bookmark.xml for DDX manipulation
DDX file
DDX processing