Improvement in pdf generation woth old engine with PHP 5.4

This commit is contained in:
Julio Cesar Laura
2014-10-27 17:03:45 -04:00
parent f96927d6db
commit 10ca6ead21

View File

@@ -912,7 +912,7 @@ class OutputDocument extends BaseOutputDocument
'landscape' => $sLandscape, 'landscape' => $sLandscape,
'method' => 'fpdf', 'method' => 'fpdf',
'margins' => array('left' => 15, 'right' => 15, 'top' => 15, 'bottom' => 15,), 'margins' => array('left' => 15, 'right' => 15, 'top' => 15, 'bottom' => 15,),
'encoding' => '', 'encoding' => (version_compare(PHP_VERSION, '5.4.0', '<') ? '' : 'utf-8'),
'ps2pdf' => false, 'ps2pdf' => false,
'compress' => true, 'compress' => true,
'output' => 2, 'output' => 2,