I'm trying to convert a html page to PDF. The conversion works fine with PhantomJS, however, phantomjs does not seem to support CSS3 columns.
The command I'm running (html->pdf)
phantomjs.exe examples/rasterize.js http://davidwalsh.name/demo/css-columns.php sample.pdf
The resulting PDF does not honour the CSS columns style, displaying a vertical list of items instead.
However, running the following command to convert html->image does honour the CSS3 Columns style:
phantomjs.exe examples/rasterize.js http://davidwalsh.name/demo/css-columns.php sample.png
Can someone please confirm that this is expected behaviour?
I believe that the webkit version on which PhantomJs relies probably is not implementing CSS3 columns, although the major webkit browsers (Safari and Chrome) both do. This link
and this link
will shed as much as light as there is on this topic, AFAIK.
This recipe can be found in it's original form on Stack Over Flow.