22.08.2013 Views

ColdFusion Developer's Guide

ColdFusion Developer's Guide

ColdFusion Developer's Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Beta Beta Beta Beta Beta Beta Beta Beta Beta Beta<br />

<br />

<br />

The TableOfContents element generates a table of contents from the PDF source elements<br />

that follow it. Order is important: in the previous example, the table of contents appears on a<br />

separate page after the Title and before Doc 1 and Doc 2. The table of contents contains<br />

entries from Doc 1 and 2, but not from the title page, because the title page precedes the table<br />

of contents in the order of instructions.<br />

You do not reference the TableOfContents element on the corresponding <strong>ColdFusion</strong> page,<br />

as the following example shows:<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<strong>ColdFusion</strong> generates a table of contents from the DDX instructions and inserts it in the PDF<br />

document in the location that you provided in the DDX file. By default, the table of contents<br />

contains active links to the top-level bookmarks in the merged PDF document.<br />

You can change the default TableOfContents settings in the DDX file, as the following<br />

example shows:<br />

<br />

Use the maxBookmarkLevel attribute to specify the level of bookmarks included on the table<br />

of contents page. Valid values are infinite or an integer. Use the bookmarkTitle attribute<br />

to add a bookmark to the table of contents page in the output file. The includeInTOC<br />

attribute specifies whether the bookmark title is included on the table of contents page.<br />

For more information on the TableOfContents element, see the Adobe LiveCycle Assembler<br />

Document Description XML Reference.<br />

1068 Assembling PDF Documents

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!