PDF compatibility. Use hidden option to force PDF1/A instead of PDF-1.3
This commit is contained in:
parent
54fc711a6b
commit
8142a672a7
@ -129,8 +129,11 @@ function pdf_getInstance($format='',$metric='mm',$pagetype='P')
|
||||
//$format=array($arrayformat['width'],$arrayformat['height']);
|
||||
//$metric=$arrayformat['unit'];
|
||||
|
||||
if (class_exists('TCPDI')) $pdf = new TCPDI($pagetype,$metric,$format);
|
||||
else $pdf = new TCPDF($pagetype,$metric,$format);
|
||||
$pdfa=false; // PDF-1.3
|
||||
if (! empty($conf->global->PDF_USE_1A)) $pdfa=true; // PDF1/A
|
||||
|
||||
if (class_exists('TCPDI')) $pdf = new TCPDI($pagetype,$metric,$format,true,'UTF-8',false,$pdfa);
|
||||
else $pdf = new TCPDF($pagetype,$metric,$format,true,'UTF-8',false,$pdfa);
|
||||
|
||||
// Protection and encryption of pdf
|
||||
if (! empty($conf->global->PDF_SECURITY_ENCRYPTION))
|
||||
|
||||
Loading…
Reference in New Issue
Block a user