9
votes

Simple question: Does anyone know what CF8 uses to render HTML into PDF?

More specifically, I'd like to know the version and if there's a complete description of what styles it does/doesn't support.

(for example, it doesn't support CSS page breaking - you need to use cfdocumentitem which isn't as flexible)

4
Thanks all - if I could accept all three answers I would, but since I can't I'll go with Leigh's answer, simply because he's got the least points at the moment.Peter Boughton

4 Answers

12
votes

Yes, it does use iText. CF8 uses version 1.4:

<cfset doc = createObject("java", "com.lowagie.text.Document")>
<cfdump var="#doc.getVersion()#">
11
votes

The documentation for the cfdocument tag includes a listing of the supported CSS styles.

7
votes

CFDOCUMENT uses ICEBrowser to render the HTML and then iText to write it to PDF.

5
votes

From what I remember, cfdocument uses iText to generate PDFs. I don't remember the version number, but you could open up the itext.jar and view the manifest which should contain the version.