Trying to generate a pdf using Snappy (wkhtmltopdf wrapper)

Posted by tirengarfio on Stack Overflow See other posts from Stack Overflow or by tirengarfio
Published on 2011-02-18T18:00:45Z Indexed on 2012/10/27 11:01 UTC
Read the original article Hit count: 260

Filed under:

I'm trying to generate a pdf using snappy through this code:

$snappy = new SnappyPdf;

$snappy->setExecutable('/usr/bin/wkhtmltopdf');

$snappy->save('http://www.google.com', '/tmp/jander.pdf');

In the apache log i find this:

Done Loading pages (1/6) [>
] 0% [======>
] 10% [==========>
] 18% [============>
] 20% [=============>
] 22% [===============>
] 25% [================>
] 28% [==================>
] 30% [===================>
] 33% [=====================>
] 35% [======================>
] 37% [=========================>
] 43% [===========================>
] 46% [============================================================] 100% Counting pages (2/6) [============================================================] Object 1 of 1 Resolving links (4/6) [============================================================] Object 1 of 1 Loading headers and footers (5/6) Printing pages (6/6) [> ] Preparing [============================================================] Page 1 of 1 Done

but the pdf is not generated.

Any idea?

Javier

© Stack Overflow or respective owner

Related posts about wkhtmltopdf