<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 for Jakarta EE (Lucee 7+)
<cfpdfparam
pages=string
password=string
source=any
>
| Attribute | Description |
|---|---|
pages
string, optional
|
edit
Page number or Pages of the PDF source file to merge. You can specify a range of pages, for example
|
password
string, optional
|
edit
User or owner password, if the source PDF file is password-protected. |
source
any, required
|
edit
Source PDF file to merge. You can specify
|
Examples
edit<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
- PDFs
- <cfpdf>
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)