Skip to content

Commit

Permalink
[TASK] disable pdfa for now
Browse files Browse the repository at this point in the history
  • Loading branch information
kaystrobach committed May 16, 2019
1 parent 65309b8 commit 54122ac
Showing 1 changed file with 25 additions and 20 deletions.
45 changes: 25 additions & 20 deletions Classes/Renderer/MPdfRenderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,25 +38,30 @@ protected function convert($html = '') {
$orientation = '';
}

$mpdf = new Mpdf(
[
'',
$this->getOption('papersize') . $orientation
]
);

$mpdf->debug = $this->getOption('debug');
$mpdf->PDFA = true;

$mpdf->setAutoTopMargin = TRUE;
$mpdf->setAutoBottomMargin = TRUE;

$this->systemLogger->log('Paperorientation: ' . $orientation);

$mpdf->WriteHTML($html);
return $mpdf->Output(
'',
Destination::STRING_RETURN
);
try {
$mpdf = new Mpdf(
[
'',
$this->getOption('papersize') . $orientation
]
);

$mpdf->debug = $this->getOption('debug');
$mpdf->showImageErrors = true;

$mpdf->setAutoTopMargin = TRUE;
$mpdf->setAutoBottomMargin = TRUE;

$this->systemLogger->log('Paperorientation: ' . $orientation);

$mpdf->WriteHTML($html);
return $mpdf->Output(
'',
Destination::STRING_RETURN
);
} catch (\Mpdf\MpdfException $e) {
$this->systemLogger->log($e->getMessage());
}
return null;
}
}

0 comments on commit 54122ac

Please sign in to comment.