Commit 99e7e344 authored by Mitchell Bennett's avatar Mitchell Bennett

Fixed a bug in the generatePDF function where the wkhtmltopdf_binary config...

Fixed a bug in the generatePDF function where the wkhtmltopdf_binary config option was being ignored.
parent 8cf71290
......@@ -398,7 +398,7 @@ class BasePage_Controller extends ContentController {
$proxy = $this->getPDFProxy($pdf_base_url);
// finally, generate the PDF
$command = WKHTMLTOPDF_BINARY . $proxy . ' --outline -B 40pt -L 20pt -R 20pt -T 20pt --encoding utf-8 --orientation Portrait --disable-javascript --quiet --print-media-type ';
$command = $binaryPath . $proxy . ' --outline -B 40pt -L 20pt -R 20pt -T 20pt --encoding utf-8 --orientation Portrait --disable-javascript --quiet --print-media-type ';
$retVal = 0;
$output = array();
exec($command . " --footer-html \"$footerFile\" \"$bodyFile\" \"$pdfFile\" &> /dev/stdout", $output, $return_val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment