Convert to PDF : bug

This commit is contained in:
Dany De Bontridder 2016-01-29 12:43:47 +01:00
parent e7d991e3cc
commit 7012ef94d3

View file

@ -160,7 +160,7 @@ class Document_Export
}
//-----------------------------------
// Fix broken PDF , actually pdftk can not handle all the PDF
if ( define ('FIX_BROKEN_PDF') == 'YES' ) {
if ( FIX_BROKEN_PDF == 'YES' ) {
$stmpt = CONVERT_GIF_PDF." ". escapeshellarg($this->store_convert . '/' . $file_pdf)." ". escapeshellarg($this->store_convert . '/' . $file_pdf.'tmp');
passthru($stmpt,$status);
rename ($this->store_convert . '/' . $file_pdf.'tmp',$this->store_convert . '/' . $file_pdf);