Skip to content

Commit

Permalink
fix: add margin defaults to prevent mpdf php8 fatal math error (opene…
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenwaite authored Jan 6, 2024
1 parent f6b4fef commit d280753
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions interface/forms/LBF/printable.php
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,10 @@

if ($PDF_OUTPUT) {
$config_mpdf = Config_Mpdf::getConfigMpdf();
$config_mpdf['margin_top'] = $config_mpdf['margin_top'] * 1.5;
$config_mpdf['margin_bottom'] = $config_mpdf['margin_bottom'] * 1.5;
$config_mpdf['margin_header'] = $GLOBALS['pdf_top_margin'];
$config_mpdf['margin_footer'] = $GLOBALS['pdf_bottom_margin'];
$pdf = new mPDF($config_mpdf);
$pdf->SetDisplayMode('real');
if ($_SESSION['language_direction'] == 'rtl') {
Expand Down

0 comments on commit d280753

Please sign in to comment.