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 🙂

Dan Wilson January 26, 2006 at 12:00 am

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 February 2, 2006 at 12:00 am

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 February 17, 2006 at 12:00 am

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

random asshat June 29, 2006 at 12:00 am

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

Comments on this entry are closed.

Previous post:

Next post: