Hi Emmanuel,

I've tried this out on Raspberry Pi, and indeed the output is a proper pdf.

Do you have any thoughts as to why the paper size comes out as 10cm by 77cm? 

Thanks,
Bjoern


On 22 November 2013 12:39, Emmanuel Engelhart <kelson@kiwix.org> wrote:
Le 21/11/2013 21:54, Bjoern Hassler a écrit :
> Yes, I have tried it, and got a very large, unpaginated image of it.
>
> Would you possibly be able to send me the url for the page your tried
> (off list), as well as the output? (Perhaps plus the version of
> phantomjs, OS, and the js script or a link to it?)
>
> That would be very helpful. I'll try to generate it for the same url,
> and see how the output differs.

I have tried myself on Ubuntu 13.10 with phantomjs package:
$phantomjs /usr/share/doc/phantomjs/examples/rasterize.js
'http://en.wikipedia.org/' enwiki.pdf

The output is available here:
http://tmp.kiwix.org/enwiki.pdf

Like you can see the text can be selected, so this is not a big image.

But, at the same time, we have an OSX specific bug, which maybe explains
your result:
https://github.com/ariya/phantomjs/issues/10373

Emmanuel
--
Kiwix - Wikipedia Offline & more
* Web: http://www.kiwix.orghttp://tmp.kiwix.org/enwiki.pdf