Skip to content

Commit

Permalink
Corrected issues with mpdf class fixes #1517
Browse files Browse the repository at this point in the history
This is slated to be replaced with #1375 and #922
  • Loading branch information
wilpig committed Feb 20, 2024
1 parent 47e15ae commit 95d1202
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions report_supply_status.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,11 @@

/* Version 1.0 of this report has no selectable parameters - you just get a complete dump */

$mpdf=new mPDF('win-1252','A4','','',20,15,48,25,10,10);
$mpdf->useOnlyCoreFonts = false; // false is default
//$mpdf->SetProtection(array('print'));
$mpdf->SetTitle($config->ParameterArray["OrgName"] . " " . __("Supply Status Report"));
$mpdf=new \Mpdf\Mpdf(['tempDir'=>sys_get_temp_dir(),'mode'=>'s']);
$mpdf->SetAuthor($config->ParameterArray["OrgName"]);
$mpdf->SetDisplayMode('fullpage');
$mpdf->useActiveForms = true;
$mpdf->useActiveForms = true;
$mpdf->SetTitle($config->ParameterArray["OrgName"] . " " . __("Supply Status Report"));

$sup = new Supplies();
$bin = new SupplyBin();
Expand Down

0 comments on commit 95d1202

Please sign in to comment.