Adobe COLDFUSION 9 Manual page 950

Developing applications
Hide thumbs Also See for COLDFUSION 9:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
<?xml version="1.0" encoding="UTF-8"?>
<DDX xmlns="http://ns.adobe.com/DDX/1.0/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://ns.adobe.com/DDX/1.0/ coldfusion_ddx.xsd">
<PDF result="Out1">
<PDF source="DocumentTitle"/>
<TableOfContents/>
<PDF source="Doc1"/>
<PDF source="Doc2"/>
</PDF>
</DDX>
The
element generates a table of contents from the
TableOfContents
important: in the previous example, the table of contents appears on a separate page after the Title and before Doc 1
and Doc 2. The table of contents contains entries from Doc 1 and 2, but not from the title page, because the title page
precedes the table of contents in the order of instructions.
You do not reference the
TableOfContents
shows:
<!--- The following code verifies that the DDX file exists and the DDX instructions are
valid. --->
<cfif IsDDX("makeBook.ddx")>
<!--- This code creates a structure for the input files. --->
<cfset inputStruct=StructNew()>
<cfset inputStruct.Title="Title.pdf">
<cfset inputStruct.Doc1="Chap1.pdf">
<cfset inputStruct.Doc2="Chap2.pdf">
<!--- This code creates a structure for the output file. --->
<cfset outputStruct=StructNew()>
<cfset outputStruct.Out1="Book.pdf">
<!--- This code processes the DDX instructions and generates the book. --->
<cfpdf action="processddx" ddxfile="makeBook.ddx" inputfiles="#inputStruct#"
outputfiles="#outputStruct#" name="myBook">
</cfif>
ColdFusion generates a table of contents from the DDX instructions and inserts it in the PDF document in the location
that you provided in the DDX file. By default, the table of contents contains active links to the top-level bookmarks in
the merged PDF document.
You can change the default
TableOfContents
<TableOfContents maxBookmarkLevel="infinite" bookmarkTitle="Table of Contents"
includeInTOC="false"/>
Use the
attribute to specify the level of bookmarks included on the table of contents page. Valid values
maxBookmarkLevel
are
or an integer. Use the
infinite
output file. The
includeInTOC
Note: You cannot specify keywords as the source for DDX. For example, if you specify <PDF source = "Title"/> and then
add the <_BookmarkTitle/> tag in the DDX file, ColdFusion throws an exception. This is because, the _BookmarkTitle
tag is converted to TITLE and DDX is case-sensititve.
For more information on the
XML Reference.
element on the corresponding ColdFusion page, as the following example
settings in the DDX file, as the following example shows:
attribute to add a bookmark to the table of contents page in the
bookmarkTitle
attribute specifies whether the bookmark title is included on the table of contents page.
element, see the Adobe LiveCycle Assembler Document Description
TableOfContents
Last updated 8/5/2010
elements that follow it. Order is
PDF source
945

Advertisement

Table of Contents
loading

Table of Contents