Rob O'Rourke wrote:
Jixor - Stephen I wrote:
There is a few PHP (and php+perl/etc) things out there that do html
to pdf but none of them are quite right. One will find that they need
to spend a lot of time tweaking their output and if you are printing
with complex floats even add additional markup to compensate for
bugs. So thats not quite a good option yet either.
Ive been writing print stylesheets and then printing to PDF from the
browser (firefox) with PrimoPDF (http://www.primopdf.com) to create
pdf files when I or a client needs them, doesn't quite solve the
problem but it comes in handy. I think those sites that use a
stylesheet-switcher to switch to a printer-friendly version to make
the layout and so on simpler, hiding useless/irrelevant objects from
the printed page and still maintaining the look and feel of the sites
formatting work very well on the whole.
If we never use the print css tools people will never catch on and
browser support will continue to be flaky. On the topic of weird and
wonderful print css glitches never use white-space: pre; with IE6
print css because it's well... you guessed it, it's broken (at least
in conjunction with lists that is).
Rob O
I have certainly seen a few sites that do it really well, I don't think
that the browser's support is that bad that its a huge problem. The only
thing is that its a real pity that some of the paged media style rules
have so little support, even in Firefox.
Yeah it is annoying that print to pdf can work so well but its so hard
to simulate your own. I guess thats because the browsers post script
support is going to be finely tuned and the pdf converter just turns ps
into pdf. I'm however quite happy with myself, dynamically generating
pdfs on demand server side is quite kewl, even if it does take a bit of
messing around.
Steve.
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************