Application Examples - Adobe 38043740 - ColdFusion Standard - Mac Development Manual

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
<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
applications.
Merging documents based on a keyword search
The following example shows how to use the
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
This example shows how to perform the following tasks:
• Use the
action to perform a keyword search on PDF files in a directory.
getInfo
• Create a comma-separated list of files that match the search criteria.
• Use the
action to merge the PDF documents in the comma-separated list into an output file.
merge
The first CFM page creates a form for selecting the tax documents based on the business type:
tag to perform PDF document operations in simple
cfpdf
and
actions to assemble a PDF document from multiple
getInfo
merge
"Managing PDF document
information" on page 939.
Last updated 1/20/2012
952

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents