Contents |
CFDOCUMENT allows you to construct and produce PDF files
The following attributes are currently unsupported: fontEmbed, bookmark, scale, backgroundVisible, localUrl
The following attributes are supported in Open BlueDragon:
A simple PDF that will be returned in the request:
<cfdocument format="pdf"> Hello World! </cfdocument>
The following demonstrates the use of cfdocumentitem to insert the header/footer.
<cfdocument format="pdf" src="http://openbluedragon.org"> <cfdocumentitem type="header">This is the header</cfdocumentitem> <cfdocumentitem type="footer"><cfoutput>Page #cfdocument.currentpagenumber#</cfoutput></cfdocumentitem> </cfdocument>
JTidy, the one of the libraries behind CFDocument, requires valid XHMTL markup as the HTML markup is validated before it is sent for PDF processing.
Be on the watch out for: