-
Notifications
You must be signed in to change notification settings - Fork 182
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
WKHTMLTOPDF didn't return any data #27
Comments
I am sorry , it appears the problem was with version 0.9.9 |
I am having the same issue, but I do have version 0.11.0 rc1 installed: "wkhtmltopdf-0.11.0-rc1 osx". |
incorrect encoding also could cause this problem, cakepdf uses utf8 by default. |
Anything I can debug to get to the bottom of this issue? |
CakePdf can only render if any content is being returned, its hard to tell why wkhtmltopdf is not returning any data. |
You could drop by on irc #cakephp on freenode and ping me |
I did try using the console and it works fine. I also tried a simple HTML view, nothing fancy, just text, and still cannot get past that error message. :-/ On Mar 17, 2013, at 1:32 PM, ceeram notifications@github.com wrote:
|
I am not sure but if the console works fine maybe the problem is with your configuration CakePlugin::load('CakePdf', array('bootstrap' => true, 'routes' => true)); You can also try tracing the contents, in PLUGIN_HOMe/cakePdf/Pdf/Engine/WkThmlToPdfEngine.php, when I was googling about this i saw some post about the command ($command .= " --print-media-type";) might cause the problem, but I can't find now, sorry |
Try re-installing wkhtml , maybe it will help. wget https://wkhtmltopdf.googlecode.com/files/wkhtmltopdf-0.11.0_rc1-static-i386.tar.bz2 |
Hi, Alhamdulillah, I got wkhtmltopdf running on ubuntu after installing wkhtmltopdf as follows: apt-get install wkhtmltopdf [reference: http://fedir.github.io/web/blog/2013/09/25/install-wkhtmltopdf-on-ubuntu/] and configure the bootstrap with CakePlugin::load('CakePdf', array('bootstrap' => true, 'routes' => true)); [reference: https://stackoverflow.com/questions/23978338/cakepdf-plugin-wkhtmltopdf-binary-is-not-found/25472021#25472021] I cheat the CSS using standard html style. --enjoy |
I am getting this error when I set the engine to WkHtmlToPdf
Any ideas what did I do wrong ?
My configuration:
Configure::write('CakePdf', array(
'engine' => 'CakePdf.WkHtmlToPdf',
'margin' => array(
'bottom' => 15,
'left' => 50,
'right' => 30,
'top' => 45
),
'encoding'=>'UTF-8',
'download' => true
));
wkhtmltopdf version 0.9.9
Other engines are working fine but there are no images in the pdf file!
The text was updated successfully, but these errors were encountered: