Whatever message this page gives is out now! Go check it out!
<cfpdf action = "merge" ..>
<cfpdfparam
pages = "page number|page range|comma-separated page numbers"
password = "user or owner password"
source = "absolute or relative pathname to a PDF file|PDF document variable|
cfdocument variable">
</cfpdf><cfpdfparam
// required
source= "path of attachment"
filename = "filename for the attachment"
encoding = "encoding for filename" >
// optional
description = "descriptive text"
mimetype = "application/pdf, text/html">
/>Attribute name | Req/optional | Description |
|---|---|---|
action | Req | Action to take: addAttachments |
source | Req | absolute or relative pathname to a PDF file| PDF document variable or cfdocument variable |
filename | Req | filename for the attachment |
mimetype | Optional | Some of the sample mimetype attribute values are: text/html, application/pdf. |
encoding | Req | Type of encoding for filename. UTF-8 is the default. |
description | Optional | Description for the attachment |
destination/name | Req | destination = "PDF output file pathname". name = “PDF document variable name”. If the destination file exists, set the overwrite attribute to yes . If the destination file does not exist, ColdFusion creates the file, if the parent directory exists. |
| Attribute | Req/Opt | Default | Description |
pages | Optional | Page or pages of the PDF source file to merge. You can specify a range of pages, for example, "1-5 ", or a comma-separated list of pages, for example, "1-5,9-10,18". | |
password | Optional | User or owner password, if the source PDF file is password-protected. | |
source | Required | Source PDF file to merge. You can specify a PDF variable, a cfdocument variable, or the pathname to a file. |
<cfpdf action="merge" destination="combined.pdf" overwrite="yes">
<cfpdfparam source="c:\abc.pdf" pages="1-3,5" password="adobe">
\\x
<cfpdfparam source="myPDFvariable">
<cfpdfparam source="abc.pdf" pages="10-90" password="adobe">
</cfpdf><h3>Downloading Federal Tax Documents</h3>
<p>Please choose the your type of business.</p>
<!--- Create the ColdFusion form to determine which PDF documents to merge. --->
<table>
<cfform action="cfpdfMergeAction.cfm" method="post">
<tr><td><cfinput type="radio" name="businessType" Value="SoleP">
Sole Proprieter</td></tr>
<tr><td><cfinput type="radio" name="businessType"
Value="Partner">Partnership</td></tr>
<tr><td><cfinput type="radio" name="businessType" Value="SCorp">S Corporation</td></tr>
<cfinput type = "hidden" name = "selection required" value = "must make a selection">
<tr><td><cfinput type="Submit" name="OK" label="OK"></td></tr>
</tr>
</cfform>
</table><!--- Create a merged PDF document based on the selection in the form. --->
<cfpdf action="merge" name="taxDoc">
<cfif #form.businessType# is "SoleP">
<cfpdfparam source="taxForms\f2106ez.pdf">
<cfpdfparam source="taxForms\f1040.pdf">
<cfpdfparam source="taxForms\f1040sc.pdf">
<cfpdfparam source="taxInfo\i1040sc.pdf">
<cfpdfparam source="taxInfo\i2106.pdf">
<cfpdfparam source="taxInfo\i1040sc.pdf">
<cfpdfparam source="taxInfo\p535.pdf">
<cfpdfparam source="taxInfo\p560.pdf">
<cfpdfparam source="taxInfo\p334.pdf">
<cfelseif #form.businessType# is "Partner">
<cfpdfparam source="taxForms\f1065.pdf">
<cfpdfparam source="taxForms\f1065b.pdf">
<cfpdfparam source="taxForms\f1065bsk.pdf">
<cfpdfparam source="taxForms\f8804.pdf">
<cfpdfparam source="taxForms\f8825.pdf">
<cfpdfparam source="taxInfo\p535.pdf">
<cfpdfparam source="taxInfo\p560.pdf">
<cfpdfparam source="taxInfo\i1065bsk.pdf">
<cfelseif #form.businessType# is "SCorp">
<cfpdfparam source="taxForms\f1120s.pdf">
<cfpdfparam source="taxForms\f2553.pdf">
<cfpdfparam source="taxForms\f8453s.pdf">
<cfpdfparam source="taxForms\f8825.pdf">
<cfpdfparam source="taxInfo\i1120s.pdf">
<cfpdfparam source="taxInfo\p542.pdf">
<cfpdfparam source="taxInfo\p535.pdf">
<cfpdfparam source="taxInfo\p560.pdf">
</cfif>
</cfpdf>
<cfpdf action="write" source="taxDoc" destination="c:\taxDoc.PDF"
overwrite="yes"/>