<cfpdfparam>

Provides additional information for the cfpdf tag.

The cfpdfparam tag applies only to the merge action of the <cfpdf> tag and is always a child tag of the cfpdf tag.

This tag cannot have a body.

This tag is also supported within <cfscript>

Requires Extension: PDF Extension

<cfpdfparam pages=string password=string source=any >
Attribute Description
pages
string, optional

Page number or Pages of the PDF source file to merge.

You can specify a range of pages, for example

  • "1"
  • "1-5"
  • a comma-separated list of pages, for example, "1-5,9-10,18"
password
string, optional

User or owner password, if the source PDF file is password-protected.

source
any, required

Source PDF file to merge.

You can specify

  • a PDF variable
  • a cfdocument variable
  • a url to a PDF document
  • or the pathname to a file

Examples

<cfset x = 1>

<cfdocument format="pdf" pagetype="A4" name="myVar">

<cfdocumentsection>

Hi there

</cfdocumentsection>

</cfdocument>

<cfpdf action="merge" destination="D:/myPDF.pdf" overwrite="yes">

<cfpdfparam source="myVar" />

</cfpdf>

See also