View Single Post
Old 12-16-2008, 06:38 AM   #1
caritas
Enthusiast
caritas doesn't littercaritas doesn't litter
 
Posts: 26
Karma: 161
Join Date: Feb 2008
Device: Sony PRS505
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.
Attached Files
File Type: gz mb_html.tar.gz (57.2 KB, 747 views)
File Type: gz html2pdf.tar.gz (10.8 KB, 803 views)
File Type: pdf mb.pdf (56.0 KB, 1672 views)
caritas is offline   Reply With Quote