User Guide
cfdocument 109
Usage
Use the cfdocument tag to render HTML and CFML output into PDF or FlashPaper format.
ColdFusion MX does not return HTML and CFML outside of the
<cfdocument> </cfdocument> pair.
The
cfdocument tag can render HTML that supports the following standards:
• HTML 4.01
• XML 1.0
• DOM Level 1 and 2
• CSS1 and CSS2
encryption Optional None (format="PDF" only) Specifies whether the output is
encrypted:
• 128-bit
• 40-bit
• none
ownerpassword Optional (
format="PDF" only) Specifies an owner password.
userpassword Optional (
format="PDF" only) Specifies a user password.
permissions Optional (format="PDF" only) Specifies one or more of the
following permissions:
• AllowPrinting
• AllowModifyContents
• AllowCopy
• AllowModifyAnnotations
• AllowFillIn
• AllowScreenReaders
• AllowAssembly
• AllowDegradedPrinting
Separate multiple permissions with a comma.
fontembed Optional yes Specifies whether ColdFusion embeds fonts in the
output:
• yes: embed fonts.
• no: do not embed fonts.
Selective: embed all fonts except Java fonts and
core fonts. For more information, see Usage.
backgroundvisible Optional no Specifies whether the background prints when the
user prints the document:
• yes: include the background when printing.
• no: do not include the background when printing.
scale Optional Calculated
by
ColdFusion
Specifies a scale factor as a percentage. Use this
option to reduce the size of the HTML output so that
it fits on that paper. Specify a number less than 100.
Attribute Req/Opt Default Description