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
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"
string, optional

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

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


<cfset x = 1>
<cfdocument format="pdf" pagetype="A4" name="myVar">
Hi there
<cfpdf action="merge" destination="D:/myPDF.pdf" overwrite="yes">
<cfpdfparam source="myVar" /> 

See also