Commit 0237f4b4 authored by jcnventura's avatar jcnventura

Issue #1645464 by bob.hinrichs: PDF generation with wkhtmltopdf on Windows does not work.

parent c0d70e64
......@@ -40,7 +40,7 @@ function print_pdf_wkhtmltopdf_print_pdf_generate($html, $meta, $filename = NULL
exit;
}
$descriptor = array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w'));
$descriptor = array(0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'a'));
$cmd = '"' . realpath($pdf_tool[1]) . "\" --page-size $paper_size --orientation $page_orientation --dpi $dpi $wkhtmltopdf_options - -";
$process = proc_open($cmd, $descriptor, $pipes, NULL, NULL);
......
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