Re: HTML to PDF with formatting options



Dag Sunde wrote:
Andrew Thompson wrote:
param wrote:
...
I am converting a HTML file to PDF.

Why? PDF's are generally only good for printing, and..

..I have specified all the styles &
formatting in separate style sheets, whose paths are given in HTML
document itself.

..that* can be achieved using HTML with a media='print'
style*** attached.
....
There *are* scenarios when you have a nice printable html,
but *still* want to store it as a pdf.

<sceptical>
Yeah? Like when?
</sceptical>

We have a WebApp where the daily report are printed from the
browser with a media='print' style***, but every night that
page is converted to .pdf and archived.

'archived'? How?

This way, the users can look up old reports and, just as important,
they kan download and store the reports locally.

But HTML can be 'archived', in the sense of being stored,
and retrieved later, locally or ..elsewhere depending on need.
(My OSComponent offers 'File|Save As' for web pages
(usually complete with stylesheets - though not sure
how that works with print stylesheets - and I am sure
many major user agents offer the same or similar).

Again - I fail to see the thing(s) that can be done
with PDF that cannot be achieved with 'plain old'
HTML/CSS (at least - with a little education of the
end user).

Andrew T.

.


Quantcast