html2ps -T $fl > $tf; gv $tf lpr -hw $tf
-w Writes a message on the user's terminal after the files have been printed.
html2ps -2 -L -C h -W b RNI-index.html | lpr -C"letter hduplex" &
16-Aug-2000, <<:2002.08.10 Sat:>>
Source:
http://www.tdb.uu.se/~jan/html2ps-1.0b1.tar.gz []
documented on: 06-22-99
Unpack, run ./install, it will collect the path for everything it needs then ask lots of questions of which to be installed where. Better answer the first path with *abs* home addr, i.e. /home/…/tongsun/
install path: /opt
ln -s ~/s/scripts/tdat/html2psrc /opt/lib/html2ps/html2psrc
pro - Works fine for pod2html outputs. - The "autosize" feature of PS for the <PRE> output is really neat! - Size perfect when doing a 2-up printing
con - Can't work for all cases (e.g. unix??.htm). - Works fine for most of them. - Option "-W a" (follow all links) does a poor job and did not gather all, nor did it get in the right order. Test on notes 3703. but -W b seems works fine!
DSC compliance
By default html2ps produces PostScript code that is not DSC compliant. The practical implication of this is that it will not be possible to use the code with PostScript filters for n-up printing, reordering of pages, etc. It is also not possible to jump to a certain page directly in previewers such as Ghostview.
The advantage with the non-DSC code is that it can be 'reused' by html2ps: you can rebuild an already generated PostScript file using new command line options and configuration files. This is done by running html2ps with the new options, and with the old PostScript file as input. This can save a lot of time and bandwidth when converting remote documents.
It is possible to generate DSC compliant PostScript by using the option -D, but this requires that Ghostscript is installed, and it can take quite some time to do. Note: if you are producing PostScript files for others to download and print, it is strongly recommended that you generate DSC compliant code (i.e. convert with the -D option).
host:~/man/emacs>html2ps $HTML2PS -T -W b -C h emacs_toc.html > e.ps Reading emacs_toc.html At least 48 documents remaining *** Error opening emacs_1.html *** Error opening emacs_2.html *** Error opening emacs_3.html Reading emacs_4.html At least 44 documents remaining Reading emacs_5.html At least 43 documents remaining ... Reading emacs_9.html At least 39 documents remaining Reading emacs_10.html
Note:
documented on: 12-18-98