You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Tried for the first time today, was presented with the same error, found the problem was that wkhtmltopdf needs X to run, after abit of googling found this http://drupal.org/node/870058
Based on the example in the readme, when I use generateFromHtml I get the following.
Fatal error: Uncaught exception 'RuntimeException' with message 'The file '/tmp/bill-123.pdf' was not created (command: /Users/jmorton/Sites/tests/wkpdf/wkhtmltopdf --lowquality "/var/folders/EH/EH1NBNSiGU0hy8p-WZ78Bo2kqHI/-Tmp-/knp_snappy4e7223ebe7a27.html" "/tmp/bill-123.pdf").' in /Users/jmorton/Sites/tests/wkpdf/Knp/Snappy/AbstractGenerator.php:260 Stack trace: #0 /Users/jmorton/Sites/tests/wkpdf/Knp/Snappy/AbstractGenerator.php(116): AbstractGenerator->checkOutput('/tmp/bill-123.p...', '/Users/jmorton/...') #1 /Users/jmorton/Sites/tests/wkpdf/Knp/Snappy/AbstractGenerator.php(126): AbstractGenerator->generate('/var/folders/EH...', '/tmp/bill-123.p...', Array, false) #2 /Users/jmorton/Sites/tests/wkpdf/index.php(14): AbstractGenerator->generateFromHtml('
Bill
<p...', '/tmp/bill-123.p...') #3 {main} thrown in /Users/jmorton/Sites/tests/wkpdf/Knp/Snappy/AbstractGenerator.php on line 260If I try to have it send the pdf for download then the pdf is corrupted and wont open.
The text was updated successfully, but these errors were encountered: