[ANN] WKHTML2PDF for Pharo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[ANN] WKHTML2PDF for Pharo

Torsten Bergmann
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.