Operating System - HP-UX
1826419 Members
3384 Online
109692 Solutions
New Discussion

Re: HTML conversion/print utility

 
SOLVED
Go to solution
Rick Beck
Occasional Advisor

HTML conversion/print utility

Does anybody know of a good, non-gui, scriptable tool for rendering HTML into either postscript or PCL for printing?

I've tried html2ps but it lacks some formatting options on the table cell level.
5 REPLIES 5
Marco Paganini
Respected Contributor

Re: HTML conversion/print utility

Hello Rick:

A quick solution would be to use w3m (http://ei5nazha.yz.yamagata-u.ac.jp/~aito/w3m/eng/) with the -dump option. This will generate an ASCII file that you can later pipe to a2ps or something similar.

Regards,
Paga
Keeping alive, until I die.
Sridhar Bhaskarla
Honored Contributor

Re: HTML conversion/print utility

Rick,

One of the ways is to try to search for "html" in the URL

http://hpux.ee.ualberta.ca/

You will get some converting utilities that may help you.

-Sri
You may be disappointed if you fail, but you are doomed if you don't try
Rick Beck
Occasional Advisor

Re: HTML conversion/print utility

Thanks for the suggestions.


I'd looked at w3m previously but I'm saving saving it as a last resort. Something about unformatting and reformatting to get exactly the same look seems odd to me.

The HP porting archive is where I got w3m and html2ps in the first place.

Sebastien Masson
Valued Contributor
Solution

Re: HTML conversion/print utility

Try a good tool, HTMLDOC: http://www.easysw.com/htmldoc/

This is what I use to generate my DRP report from some ascii file. The program can generate a book with a toc in pdf, ps, ps1 and ps2 from one or many html files
Rick Beck
Occasional Advisor

Re: HTML conversion/print utility

I had tried HTMLDOC before but it was an earlier version that had some issues.
Some early test with the most current version seems to fix most of our issues. Some tweaks in the HTML generation can fix what's left.

Thanks