Have you actually tried it ? I haven't but the samples to download in the article are selection-able, search-able and all.
It uses an old version of phantomjs though…


On Tue, Nov 19, 2013 at 7:35 PM, Bjoern Hassler <bjohas+mw@gmail.com> wrote:
Hi Renaud,

yes, that's right, but the pdf generated in that way appears to be
rasterised, so the files are very large, not searchable, etc.

Perhaps it's possible with pantomjs? Does anybody know?

Bjoern

On 19 November 2013 18:38, renaud gaudin <rgaudin@gmail.com> wrote:
> From the link in the comments of Emmanuel's link :
> http://we-love-php.blogspot.com/2012/12/create-pdf-invoices-with-html5-and-phantomjs.html
>
>
> On Tue, Nov 19, 2013 at 6:34 PM, Bjoern Hassler <bjohas+mw@gmail.com> wrote:
>>
>> Hi Emmanuel,
>>
>> thanks - I don't think that will work for us. Because it creates a
>> raster image, the resulting pdf files are huge, and text is not
>> selectable.
>>
>> Is it possible to use phantomjs to produce non-raster pdf?
>>
>> I've so far tried wkhtmltopdf, but the rending wasn't great, and
>> wkpdf, which produced very nice pdf, but unfortunately some lines are
>> horizontally cut across two pages. This may be to do with webkit on my
>> OS X install (10.7), but I couldn't test on 10.9 because wkpdf doesn't
>> work with Ruby 2.0. Does anybody have any thoughts on this? (I realise
>> this is perhaps a little off topic, but I guess html5->pdf needs to be
>> solved for mediawiki as well.)
>>
>> Any other thoughts?
>> Bjoern
>>
>> On 19 November 2013 18:15, Emmanuel Engelhart <kelson@kiwix.org> wrote:
>> > Le 19/11/2013 19:13, Bjoern Hassler a écrit :
>> >> I'd like to ask a follow-up question to this. What do you guys use for
>> >> converting html to pdf (on the command line)? Let's say once Parsoid
>> >> has generated html5, how do you get it into pdf? I've used (and
>> >> struggled) a bit with wkpdf and enscript to generate page numbers - is
>> >> that the best solution around?
>> >
>> > phantomjs PDF rasteriser
>> > https://coderwall.com/p/5vmo1g
>> >
>> > --
>> > Kiwix - Wikipedia Offline & more
>> > * Web: http://www.kiwix.org
>> > * Twitter: https://twitter.com/KiwixOffline
>> > * more: http://www.kiwix.org/wiki/Communication
>> >
>> > _______________________________________________
>> > Offline-l mailing list
>> > Offline-l@lists.wikimedia.org
>> > https://lists.wikimedia.org/mailman/listinfo/offline-l
>>
>> _______________________________________________
>> Offline-l mailing list
>> Offline-l@lists.wikimedia.org
>> https://lists.wikimedia.org/mailman/listinfo/offline-l
>
>
>
> _______________________________________________
> Offline-l mailing list
> Offline-l@lists.wikimedia.org
> https://lists.wikimedia.org/mailman/listinfo/offline-l
>

_______________________________________________
Offline-l mailing list
Offline-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/offline-l