kirk wrote:
> Does it require xWindows to be installed?
> I am looking for a command line solution to this same problem.
> 
> Currently I am sing a free version of htmldoc.
> It is much better than html2ps
> http://rpm.nogin.org/MetaPRL/rh61/htmldoc-1.8.2-1.rh6.1.i386.html
> 
> - Kirk

It does require some libraries from X and gtk and an xserver, so may not
be what you are looking for.

It can be a command line solution however; the shell scipt I use on my
headless system is:

#!/bin/sh
cd /usr/local/mozilla2ps
xvfb-run xulrunner --app application.ini $1 $2

$1 is a uri such as file://~/somepage.html or
http://localhost/doc/somepage.html

$2 is the output file, such as /tmp/outfile.ps

xvfb provides an xserver with a virtual framebuffer for the rendering
window to appear in.


I had not heard of htmldoc before, only html2ps. How does it's output
compare to printing straight from a browser? A quick (very quick) search
for samples showed nothing more complex then text and tables.

-- 
Omniflux

/*
PLUG: http://plug.org, #utah on irc.freenode.net
Unsubscribe: http://plug.org/mailman/options/plug
Don't fear the penguin.
*/

Reply via email to