
931
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
The
processddx
action extends the
cfpdf
tag by providing a subset of Adobe LiveCycle Assembler functionality. You
use the
processddx
action to process Document Description XML (DDX) instructions explained in “
Using DDX to
perform advanced tasks
” on page 943. Using DDX instructions requires more coding, but it lets you perform complex
tasks, such as generating a table of contents and adding automatic page numbers.
Also, ColdFusion provides three functions for PDF file, DDX file, and PDF variable verification:
The following table describes a few document assembly tasks that you can perform with ColdFusion:
Function
Description
IsDDX
Determines whether a DDX file, path, and instructions are not null and are valid. Also verifies that ColdFusion
supports the schema used for the DDX instructions.
IsPDFFile
Determines whether a PDF source file, path, and version are valid and supported on the server running
ColdFusion. Also verifies whether a PDF file is corrupted.
IsPDFObject
Determines whether a PDF object stored in memory is valid. Also verifies the contents of PDF variables
generated by the
cfdocument
and
cfpdf
tags.
Task
Action
Add a generated table of contents to a PDF document
cfpdf action="processddx"
with the
TableOfContents
DDX element
cfpdf action="extracttext"
can also be used.
Add automatic page numbers to a PDF document
cfpdf action="processddx"
with the
_PageNumber
and
_LastPagenumber
built-in keys. Valid only in the
Header
and
Footer
DDX
elements.
Add headers and footers to a PDF document
cfpdf action="processddx" with
the
Header
and
Footer
DDX
elements
or
cfpdf action="addheader"
and
cfpdf action="addfooter"
Add or remove watermarks
cfpdf action="processddx"
with the
Watermark
and
Background
DDX
elements
cfpdf action="addWatermark"
and
cfpdf
action="removeWatermark"
Change the encryption algorithm for PDF documents
cfpdf action="protect" encrypt="
encryption algorithm
"
Change user permissions on a PDF document
cfpdf action="protect"
newOwnerPassword=
"xxxxx"
permissions
=
"comma-separated list"
Delete pages from a PDF document
cfpdf action="deletePages"
Extract text from a PDF document and export it to an XML
file
cfpdf action="processddx"
with the
DocumentText
DDX element
Flatten (remove interactivity from) forms created in Acrobat
cfpdf action="write" flatten="yes"
Generate thumbnail images from PDF document pages
cfpdf action="thumbnail"pages="
page numbers
"
Linearize PDF documents for faster web display
cfpdf action="write" saveOption="linear"
Merge pages and page ranges from multiple documents in
different locations into one PDF document
cfpdf action="merge"
with multiple
cfpdfparam
tags
Merge PDF documents in a directory into one PDF
document
cfpdf action="merge" directory="
path
"
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...