Reputation: 406
Some times ago Laravel-snappy is working on Ubuntu server. but Now it's not working .It's working fine in local window system but on ubuntu server it's generate blank pdf. wkhtmltpdf and other extension already install on server. How can i debug this laravel-snappy PDF.
snappy.php
return array(
'pdf' => array(
'enabled' => true,
'binary' => '/usr/local/bin/wkhtmltopdf-amd64',
'timeout' => false,
'options' => array(),
'env' => array(),
),
'image' => array(
'enabled' => true,
'binary' => '"/usr/local/bin/wkhtmltopdf-amd64"',
'timeout' => false,
'options' => array(),
'env' => array(),
),
);
Please help me
Thanks in Advance
Upvotes: 0
Views: 1161
Reputation: 36
May you need to change snappy configuration.
return array(
'pdf' => array(
'enabled' => true,
'binary' => 'C://"Program Files"/wkhtmltopdf/bin/wkhtmltopdf.exe',
'timeout' => false,
'options' => array(),
'env' => array(),
),
'image' => array(
'enabled' => true,
'binary' => 'C://"Program Files"/wkhtmltopdf/bin/wkhtmltopdf.exe',
'timeout' => false,
'options' => array(),
'env' => array(),
),
);
This works for me in windows server.
Upvotes: 0