mozilla2ps 0.2 review

Download
by rbytes.net on

mozilla2ps project is a quick and gross hack to convert html to postscript pages in an unattended manner

License: GPL (GNU General Public License)
File size: 11K
Developer: Michele Baldessari
0 stars award from rbytes.net

mozilla2ps project is a quick and gross hack to convert html to postscript pages in an unattended manner. I needed to convert a lot of html pages to postscript and wasn't really satisfied with html2ps, so I went ahead and toyed around with xulrunner and friends.

In order to use mozilla2ps you need Xul Runner.

Usage and configuration

Make sure you have Xulrunner correctly installed.

xulrunner --install-app mozilla2ps-0.1.xulapp
xulrunner --app application.ini file:///tmp/foo.html /tmp/foo.ps

xulrunner --app application.ini http://www.lwn.net /tmp/lwn.ps ;
ps2pdf /tmp/lwn.ps; evince lwn.pdf

I use it with this chmtopdf.py script in order to convert .chm files to pdf using only free tools.

Bugs

mozilla2ps has at least the following bugs:

Allow configurable paper, size, margins etc.
Remove the setTimeOut workaround

mozilla2ps 0.2 search tags