[ANN] WKHTML2PDF for Pharo
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.
Very interesting (especially for when we do have lots of tables and colors, which I do happen to have a lot :-) ). Now, is it working on Linux? Phil On Fri, Dec 19, 2014 at 10:47 AM, Torsten Bergmann <astares@gmx.de> wrote:
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.
Very interesting (especially for when we do have lots of tables and colors, which I do happen to have a lot :-) ).
Yes, combined with Mustache for templates it is a nice reporting solution. Â
Now, is it working on Linux?
Havent tried, but should be possible out of the box Bye T.
wkhtmltopdf runs fine on Linux; I have not tested it with Pharo though. Can anybody confirm that it works with Pharo on Linux? --Hannes On 12/20/14, Torsten Bergmann <astares@gmx.de> wrote:
Very interesting (especially for when we do have lots of tables and colors, which I do happen to have a lot :-) ).
Yes, combined with Mustache for templates it is a nice reporting solution.
Now, is it working on Linux?
Havent tried, but should be possible out of the box
Bye T.
Thanks Hilaire Le 19/12/2014 10:47, Torsten Bergmann a écrit :
Need an easy way to convert HTML into PDF for printing? The project http://wkhtmltopdf.org can help you here.
-- Dr. Geo - http://drgeo.eu iStoa - http://istoa.drgeo.eu
participants (4)
-
H. Hirzel -
Hilaire -
phil@highoctane.be -
Torsten Bergmann