It looks like html2ps is the best available option for HTML to PostScript conversion right now, since the Mozilla trick doesn't really work. Here is a patch that makes html2ps the default. gv displays the resulting PostScript poorly, but it appears to be correct (ps2pdf produces good PDF from it, for instance).
In addition to adding this patch to the debian/patches directory, you'll also want to add html2ps to the Suggests line for a2ps.
#! /bin/sh /usr/share/dpatch/dpatch-run ## 20_html2ps_not_netscape.dpatch by Russ Allbery <[EMAIL PROTECTED]> ## ## All lines beginning with `## DP:' are a description of the patch. ## DP: Use html2ps rather than Netscape since the Netscape functions used ## DP: no longer work with current Mozilla or Firefox (and require that a ## DP: browser be running). @DPATCH@ diff -urNad --exclude=CVS --exclude=.svn ./etc/a2ps_cfg.in /tmp/dpep-work.FjAnwC/a2ps-4.13b/etc/a2ps_cfg.in --- ./etc/a2ps_cfg.in 2005-07-30 17:26:44.592726904 -0700 +++ /tmp/dpep-work.FjAnwC/a2ps-4.13b/etc/a2ps_cfg.in 2005-07-30 17:29:45.203269928 -0700 @@ -264,6 +264,10 @@ @COM_PSUTILS@@COM_dvips@ fi ########## HTML files +# Delegated to html2ps +Delegation: html2ps html:ps \ + html2ps -D '$f' | #{del.psnup} + # Pass HTML to Netscape, hoping that there is an Netscape running... # Tricks: # 1. Netscape can't output on stdout, hence use a tmp file (#f0) @@ -273,15 +277,18 @@ # loaded page (not that of openfile). So run Netscape twice. # 4. It asks the user if s/he wants to replace an existing output file, # so rm before. [EMAIL PROTECTED]@Delegation: Netscape html:ps \ [EMAIL PROTECTED]@ rm -f #f0; \ [EMAIL PROTECTED]@ if echo '$f' | grep '^/' >/dev/null 2>&1; then \ [EMAIL PROTECTED]@ ${NETSCAPE:-netscape} -noraise -remote 'openfile($f)'; \ [EMAIL PROTECTED]@ else \ [EMAIL PROTECTED]@ ${NETSCAPE:-netscape} -noraise -remote 'openfile(%d/$f)'; \ [EMAIL PROTECTED]@ fi && \ [EMAIL PROTECTED]@ ${NETSCAPE:-netscape} -noraise -remote 'saveas(#f0,postscript)' && \ [EMAIL PROTECTED]@ #{del.psselect} #f0 | #{del.psnup} +# +# Disabled in favor of html2ps because it no longer works with current +# Mozilla. [EMAIL PROTECTED]@Delegation: Netscape html:ps \ [EMAIL PROTECTED]@ rm -f #f0; \ [EMAIL PROTECTED]@ if echo '$f' | grep '^/' >/dev/null 2>&1; then \ [EMAIL PROTECTED]@ ${NETSCAPE:-netscape} -noraise -remote 'openfile($f)'; \ [EMAIL PROTECTED]@ else \ [EMAIL PROTECTED]@ ${NETSCAPE:-netscape} -noraise -remote 'openfile(%d/$f)'; \ [EMAIL PROTECTED]@ fi && \ [EMAIL PROTECTED]@ ${NETSCAPE:-netscape} -noraise -remote 'saveas(#f0,postscript)' && \ [EMAIL PROTECTED]@ #{del.psselect} #f0 | #{del.psnup} ########## MetaFont / MetaPost files Delegation: MetaFont mf:ps \
-- Russ Allbery ([EMAIL PROTECTED]) <http://www.eyrie.org/~eagle/>