Описание тега cfdocument

CFDocument is a tag in the CFML language used to dynamically create PDFs. It translates generated HTML/CSS into postscript and either outputs a PDF to the browser or saves it to a file.

By wrapping a CFML page in a CFDocument tag the ColdFusion server will translate the HTML/CSS to postscript and generate a PDF. There is a limited subset of CSS styles supported, which can be located on the documentation page. The ColdFusion server reads the HTML using an internal browser and renders using the iText Java library. This process along with limited CSS support can often generate unexpected layout difference between the produced PDF and running the same page in a browser without the CFDocument tag wrapping it.