Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 952

Developing applications
Hide thumbs Also See for 38043740 - ColdFusion Standard - Mac:
Table of Contents

Advertisement

DEVELOPING COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Using style profiles
The previous example uses the
apply by reference, use the
StyleProfile
the PDF output file. The following code shows how to define a style profile for the table of contents
<StyleProfile name="TOCheaderStyle">
<Header>
<Center>
<StyledText>
<p> color="red" font-weight="bold" font="Arial">Table of Contents</p>
</StyledText>
</Center>
</Header>
</StyleProfile>
To apply the style profile, specify the
element, as the following example shows:
<?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="Title"/>
<TableOfContents>
<Header styleReference="TOCheaderStyle"/>
</TableOfContents>
<PDF source="Doc1"/>
<PDF source="Doc2"/>
<PDF source="Doc3"/>
<PDF source="Doc4"/>
</PDF>
<StyleProfile name="TOCheaderStyle">
<Header>
<Center>
<StyledText>
<p> color="red" font-weight="bold" font="Arial">Table of Contents</p>
</StyledText>
</Center>
</Header>
</StyleProfile>
</DDX>
Grouping PDF documents
To apply a style profile to a group of documents in the output PDF file, use the
example shows how to create a group of chapters in the output file and apply a style profile to the
all of the documents in the group:
element to define inline text formatting. To define styles that you can
StyledText
element. Style profiles let you apply a set of styles to different elements in
name by using the
StyleProfile
Last updated 1/20/2012
Header
attribute of the
styleReference
element. The following
PDFGroup
Footer
947
:
Header
element for

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents