The cfdocument tag converts everything between its start and end tags into PDF or FlashPaper output format and returns it to the browser or saves it to a file. This lets you easily convert HTML to printable output, as the following example shows:
<cfdocument format="FlashPaper"> <p>This is a document rendered by the cfdocument tag.</p> </cfdocument>
The cfdocument tag supports all HTML and CFML tags, with the following exceptions:
cfchart
form, cfform, and cfapplet
Additionally, the HTML wrapped by the cfdocument tag must be well-formed, with end tags for every start tag and proper nesting of block-level elements.
Note: ColdFusion MX does not return HTML and CFML outside of the <cfdocument> </cfdocument> pair.
This section describes the following topics:
ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | KnowledgeBase | Bug Reporting
Version 7
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/coldfusion/7/htmldocs/00001442.htm