Wkhtmltopdf 0.12.0 Problem with php

135 views
Skip to first unread message

YOICE MANUEL MARQUEZ MONROY

unread,
May 11, 2014, 7:06:49 PM5/11/14
to wkhtmltop...@googlegroups.com
I have this error with wkhtmltopdf version 0.12.0 running from php

Fatal error
: Uncaught exception 'Exception' with message 'Could not generate PDF: Could not run command './wkhtmltopdf-amd64' 'http://eduktic.com/informes_yes/informes/1001/boletin_htmlword.php' /tmp/tmp_WkHtmlToPdf_ktAj4k: Loading pages (1/6) [> ] 0% [======> ] 10% ' in /home1/yoice/public_html/informes_yes/wk/master/index.php:26 Stack trace: #0 {main} thrown in /home1/yoice/public_html/informes_yes/wk/master/index.php on line 26

But with previous versions works great

Can someone help me please?

YOICE MANUEL MARQUEZ MONROY

unread,
May 11, 2014, 9:13:14 PM5/11/14
to wkhtmltop...@googlegroups.com
I have a problem with a php page I created, she can not get it to run from the browser, however if run from the console if I run shell

- In the browser gives me this result:

url: http://eduktic.com/informes_yes/prueba_wk.php
array(2) { [0]=> string(19) "Loading pages (1/6)" [1]=> string(132) "[> ] 0% [======> ] 10%" }

- In command line I get good results so:

yo...@eduktic.com [~/public_html/informes_yes]# php prueba_wk.php
array(7) {
  [0]=>
  string(49) "Fontconfig error: Cannot load default config file"
  [1]=>
  string(19) "Loading pages (1/6)"
  [2]=>
Counting pages (2/6)"========================================] 100%         ] 0%
  [3]=>
Resolving links (4/6)"=====================================================] Object 1 of 1
  [4]=>
Loading headers and footers (5/6)"==========================================] Object 1 of 1
  [5]=>
  string(20) "Printing pages (6/6)"
  [6]=>
Done"========================================================] Page 1 of 1  ] Preparing
}

wonder since that is affecting took months and not achieving positive results.

The code of my page is this

<?
 
$cmd = "wk12ok/bin/wkhtmltopdf http://www.google.com miprueba.pdf 2>&1";


$t = exec($cmd, $salida);
var_dump ($salida);
   
  
exit();


?>
Reply all
Reply to author
Forward
0 new messages