Trying to generate a pdf using Snappy (wkhtmltopdf wrapper) -


i'm trying generate pdf using snappy through code:

$snappy = new snappypdf;  $snappy->setexecutable('/usr/bin/wkhtmltopdf');  $snappy->save('http://www.google.com', '/tmp/jander.pdf'); 

in apache log 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 , footers (5/6) printing pages (6/6) [> ] preparing [============================================================] page 1 of 1 done

but pdf not generated.

any idea?

javier

i suggest start looking @ return value $snappy->save(). according code, return true if outputted pdf file created , file not empty.

you might want check output of $this->buildcommand($url, $path) on line 37 of code. try manually executing code on server.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -