
952
DEVELOPING
COLDFUSION 9 APPLICATIONS
Working with Documents, Charts, and Reports
Las
t
upda
te
d 8/5/2010
<cfpdfform source="acroform2.pdf" destinat ion="source_result1 7.pdf" action="populate"
overwrite="true"
fdf ="true"
>
<cfpdfsubform name="Text1">
<cfpdf subform name="0">
<cfp dfformparam name="0" val ue="Test1.0.0">
<cfpd fformparam name="1" value ="Test1.0.1">
<cfpdfformparam name="2" value="Test1.0.2">
</cfpdfsubform>
<cfpdfsubform name="1">
<cfpdfformparam name="0" value="Test1.1.0">
<cfpdfformparam name="1" value="Test1.1.1">
<cfpdfformparam name="2" value="Test1.1.2">
</cfpdfsubform>
</cfpdfsubform>
<cfpdfsubform name="Text2">
<cfpdfformparam name="0" value="Test2.0">
<cfpdfformparam name="1" value="Test2.1">
<cfpdfformparam name="2" value="Test2.2">
<cfpdfformparam name="3" value="Test2.3">
</cfpdfsubform><cfpdfformparam name="Text3" value="Test3">
<cfpdfformparam name="Text4" value="Test4">
<cfpdfformparam name="checkbox1" value="Yes">
<cfpdfformparam name="listbox1" value="item4">
<cfpdfformparam name="radiobutton1" value="2">
</cfpdfform>
Application examples
The following examples show you how to use the
cfpdf
tag to perform PDF document operations in simple
applications.
Merging documents based on a keyword search
The following example shows how to use the
getInfo
and
merge
actions to assemble a PDF document from multiple
tax files based on business type (Sole Proprietor, Partnership, or S Corporation). The application assembles the tax
forms and information booklets based on a radio button selection. Some tax forms and booklets apply to more than
one business type (for example, Partnership and S Corporations both use the tax form f8825.pdf). For instructions on
setting keywords for PDF documents, see “
Managing PDF document information
” on page 939.
This example shows how to perform the following tasks:
•
Use the
getInfo
action to perform a keyword search on PDF files in a directory.
•
Create a comma-separated list of files that match the search criteria.
•
Use the
merge
action to merge the PDF documents in the comma-separated list into an output file.
The first CFM page creates a form for selecting the tax documents based on the business type:
Содержание COLDFUSION 9
Страница 1: ...Developing Applications ADOBE COLDFUSION 9...