Le 13/11/2013 17:10, Tyler Romeo a écrit :
> On Wed, Nov 13, 2013 at 12:45 AM, Erik Moeller <[email protected]> wrote:
> 
>> Most likely, we'll end up using Parsoid's HTML5 output, transform it
>> to add required bits like licensing info and prettify it, and then
>> render it to PDF via phantomjs, but we're still looking at various
>> rendering options.
>>
> 
> I don't have anything against this, but what's the reasoning? You now have
> to parse the wikitext into HTML5 and then parse the HTML5 into PDF. I'm
> guessing you've found some library that automatically "prints" HTML5, which
> would make sense since browsers do that already, but I'm just curious.

Here is an example about how this works:
https://github.com/ariya/phantomjs/blob/master/examples/rasterize.js

Emmanuel
-- 
Kiwix - Wikipedia Offline & more
* Web: http://www.kiwix.org
* Twitter: https://twitter.com/KiwixOffline
* more: http://www.kiwix.org/wiki/Communication

_______________________________________________
Wikitech-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to