This process arose from an internal need for dynamic reporting. Crystal Reports was not an option.
FOP is by the Apache Project. It is a series of Java classes that use XSL formatting objects to create PDF files. FO Document → FOP Java Server → PDF
The Classpath is the most critical step.
A subset of XSL: XSLT is the first half, FO is the second. FO is similar to CSS.
Page Template(s) – like a slide master
Body overlaps the other regions.
The elements must be in the order listed.
Block tag – like a <div> tag. There is no break tag, so blocks are the only way to get a CF/LF equivalent.
Inline tag – changes styles without a new block (CF/LF).
You can insert GIF and JPEG images, as well as vector graphics.
Tables – very like HTML tables, except it actually uses the dimensions you give it.
Out-of-line block – not supported by FOP. Used to add footnotes or floating elements.
The FO document combines these to describe the entire document.
CFML Template → CF Server → FO Document → FOP Java Processor → PDF Doc
Call your FO generator page from another CFM page that sets the cfcontent to the “application/pdf” MIME type, does a CFHTTP call to the FO generator page, and then calls the Create PDF custom tag.
Recent comments
30 weeks 6 days ago
48 weeks 5 days ago
1 year 34 weeks ago
1 year 34 weeks ago
1 year 45 weeks ago
2 years 20 weeks ago
3 years 33 weeks ago
3 years 39 weeks ago
3 years 41 weeks ago
3 years 43 weeks ago