User Guide
cfdocument 107
cfdocument
Description
Creates PDF or FlashPaper output from a text block containing CFML and HTML.
Category
Data output tags
Syntax
<cfdocument
format = "PDF" or "FlashPaper"
filename = "filename"
overwrite = "yes" or "no"
name = "output variable name"
pagetype = "page type"
pageheight = "page height in inches"
pagewidth = "page width in inches"
orientation = "portrait/landscape"
margintop = "number"
marginbottom = "number"
marginleft = "number"
marginright = "number"
unit = "in" or "cm"
encryption = "128-bit" or "40-bit" or "none"
ownerpassword = "password"
userpassword = "password"
permissions = "permission list"
fontembed = "yes" or "no"
backgroundvisible = "yes" or "no"
scale = "percentage less than 100">
HTML and CFML code
</cfdocument>
See also
cfreport, cfdocumentitem
, cfdocumentsection
History
ColdFusion MX 7: Added this tag.
Attributes
Attribute Req/Opt Default Description
format Required Specifies the report format:
• PDF
• FlashPaper
filename Optional Specifies the name of a file to contain the PDF or
FlashPaper output.
If you omit the
filename attribute, ColdFusion MX
streams output to the browser.