HTML2PDF

Need an easy way to convert HTML into PDF for printing? The project
http://wkhtmltopdf.org can help you here.

If you want to use it from Pharo just check out:

http://smalltalkhub.com/#!/~TorstenBergmann/WKHTML2PDF

This project allows you to easily use the library. First select the
engine:

HTML2PDFConverter useExecutable.

or

HTML2PDFConverter useLibrary.

and then convert:

HTML2PDFConverter
convert: ‘http://www.pharo.org’
toFile: ‘pharo.pdf’

to get a printable version of the Pharo homepage. As ever docu is on the
STHub project website.

It uses NativeBoost to call the library and OSProcess to call the
executable.

Bye
T.

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: