David Eckelkamp wrote:
On 2/15/07, Theo Band <theo.band@xanadu-wireless.com> wrote:
I thought this was easy, but it turns out to be not so obvious.

My problem:
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.

How to do that?

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.

Anyone got an simple solution?

Thanks,
Theo

Try HTMLDOC  We have used it for one of our customers and it seems to do  a fine job of converting HTML to PDF. I haven't used it outside of our product except for some simle tests. It seemed to do fine with those tests.

DavidE
I tried it, without any success. It's basically a single HTML table on a single page. The pdf that comes out is 8 pages and even then the actual figures (hours) that I need don't fit on the page. I tried removing the css. The HTML is now really compact but still no conversion to pdf. The table does contain some hyperlink that use javascript. Should not give any problem when printing.

I think I generate my own ASCII txt documents from the database and have them printed out by without any formatting......

Thanks for the tip!

Theo