

Code: Select all
$pdf = new PDF($orientation);
$pdf->setEncrypted(Get::cfg('certificate_encryption', true));
$pdf->setPassword(Get::cfg('certificate_password', null));
Code: Select all
$cfg['certificate_encryption'] = false;
Code: Select all
$pdf = new PDF($orientation);
if(Get::cfg('certificate_encryption', false))
{
$pdf->setEncrypted(true);
$pdf->setPassword(Get::cfg('certificate_password', null));
}