HTML to PDF via mozilla
About
-----
Convert HTML to PDF with mozilla rendering engine.
The best rendering application of HTML is web browser such as
FireFox(Mozilla), but full function web browser is too large for some
devices such as ebook reader. One of the solution is to pre-render
HTML on PC with web browser and send the resulting PDF to devices.
* Usage and configuration
Make sure you have Xulrunner correctly installed.
xulrunner --app html2pdf/application.ini [-pw <width>] [-ph <height>] \
file:///tmp/foo.html /tmp/foo.pdf
-pw and -ph is to used to specify paper width and height.
mb_html.tar.gz and mb.pdf is an example html and result.
|