It took me half a day wondering why a set of particular documents didn’t render correctly with CFDOCUMENT. Well – I thought they didn’t render correctly.
The mentioned documents were some webpages using Ben’s Aura layout templates. They showed up pretty, well… “plain” in the pdf file. My first guess was that CFDOCUMENT wouldn’t deal correctly with the tags used to include the style sheets, which it does.
The solution is pretty simple. CFDOCUMENT looks if there is a particular CSS file for printing available and if yes, it takes it. I wasn’t aware of CFDOCUMENT being so clever when it comes to that point – sweet 🙂