CFDOCUMENT and print stylesheets - sweet...

by kai on 26/01/2006

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 :)

← PreviousNext →Another job posting :)

4 comments

random asshat 29/06/2006

Lame post. How about a code example? Why even bother?

Dan Wilson 26/01/2006

I am working through a similar issue. Would you be willing to post some code examples? Ich arbeite durch eine ähnliche Ausgabe. Würden Sie bereit sein, einige Codebeispiele bekanntzugeben?

Bruce 02/02/2006

Do you know how you can get cfdocument to ignore the CSS file for printing? I want cfdocument to render the pdf using the screen CSS file. Thanks, Bruce

dipu 17/02/2006

i couldn't get the printout in "landscape" even i gave orientation="landscape".how could i print in landscape format.is there any other printersettings