Adobe 38043740 - ColdFusion Standard - Mac Development Manual page 924

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
Embedding a PDF form in a PDF document
You can use the
cfpdfform
document. This technique is useful to include additional information with a standard interactive form. For example,
a company could have a generic PDF form for maintaining employee information. You could reuse this form in
different contexts to ensure that the employee information is current.
To create the static PDF pages, use the
in the
tag to create an interactive form in the PDF document. When the user updates the form and prints
cfdocument
or submits it, all of the pages in the document, including the static PDF pages, are printed or submitted with the form.
Note: You can embed only one interactive form in a PDF document; therefore, include only one
tag. However, each
cfdocument
Use at least one
cfdocumentsection
tag. Instead, insure that the
cfdocumentsection
following example shows:
<cfdocument format="pdf">
<cfdocumentitem type="header">
<font size="+1">This is the Header</font>
</cfdocumentitem>
<cfdocumentitem type="footer">
<font size="+1">This is the Footer</font>
</cfdocumentitem>
<cfdocumentsection>
<p>This is the first document section.</p>
</cfdocumentsection>
<cfpdfform source="c:\forms\embed.pdf" action="populate">
<cfpdfsubform name="form1">
<cfpdfformparam name="txtManagerName" value="Janis Joplin">
<cfpdfformparam name="txtDepartment" value="Sales">
</cfpdfsubform>
</cfpdfform>
<cfdocumentsection>
<p>This is another section</p>
</cfdocumentsection>
</cfdocument>
The contents of the
cfpdfform
the
tag applies to the document sections but not to the interactive PDF form in the
cfpdfform
The headers and footers that are part of the embedded PDF form do not apply to the rest of the PDF document, and
the headers and footers that are defined in the
and footer information defined in the
and account for the pages in the embedded form.
Note: The read action of the
destination in the
cfpdfform
document with the PDF form to an output file. If you do not specify a filename, ColdFusion displays the PDF form in the
context of the PDF document in the browser.
tag inside the
tag to embed an existing interactive PDF form in a PDF
cfdocument
tag and
cfdocument
tag can include multiple
cfpdfform
tag with the
cfpdfform
cfpdfform
tag start on a new page. Any text or code directly after the
cfdocument
cfdocumentitem
tag is not valid when you embed a PDF form. Also, you cannot specify a
cfpdfform
tag. However, you can specify a filename in the
Last updated 1/20/2012
tags. Then use the
cfdocumentsection
tags and
cfpdfsubform
tag, but do not place the
and
cfdocumentsection
tag do not apply to the interactive form. However, header
tags resumes in the sections that follow the embedded form
cfdocument
tag
cfpdfform
tag in a
cfpdfform
tags.
cfpdfformparam
tag within the
cfpdfform
tags are at the same level, the
tag and before
cfdocument
tag.
cfpdfform
tag to write the PDF
919

Advertisement

Table of Contents
loading

This manual is also suitable for:

Coldfusion 9

Table of Contents