<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Andrew Brown wrote:
<blockquote cite="mid45D44145.6000304@cnf.com.au" type="cite">
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
<title></title>
Theo Band wrote:
<blockquote cite="mid45D42991.1060005@xanadu-wireless.com" type="cite">I
thought this was easy, but it turns out to be not so obvious. <br>
<br>
My problem: <br>
I have a database with hour registration. I need to print out about
hundreds of pages and have them signed by employees. Of course I want
to do this automatically. Up to now I have a collection of html pages
(got them using wget). So the final thing I want is to print them all
out in one go. <br>
<br>
How to do that? <br>
<br>
I search for a command-line option to convert the html to pdf. Or have
firefox/konqueror print them directly without user intervention (there
is not a switch like "firefox --print <url>"). Note that the
pages are off-line, not on the server. The original pages can only
retrieved with after authorization. That's why I used wget with a saved
session cookie. <br>
<br>
Anyone got an simple solution? <br>
</blockquote>
I have not tried this my self, but try using html2ps and ghostscript to
generate PDF's<br>
<br>
htnl2ps is written ib Perl and can be found at
<a class="moz-txt-link-freetext"
href="http://user.it.uu.se/%7Ejan/html2ps.html">http://user.it.uu.se/~jan/html2ps.html</a><br>
<br>
Syntax: is:
<pre><tt> perl html2ps file.html > file.ps</tt></pre>
You can script that through the collection of html files, optionally
pushing the postscript output through Ghostscript.<br>
<br>
</blockquote>
Thanks. This is what I need. I tried however, and just garbage came
out. Apparently the HTML is too complicated for this script.<br>
<br>
Theo<br>
</body>
</html>