Skip to content

Commit

Permalink
Update Inspection.php
Browse files Browse the repository at this point in the history
  • Loading branch information
pavlosb committed May 27, 2024
1 parent 31e08bb commit d3bede5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions application/controllers/Inspection.php
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,8 @@ public function inspections_pdf()
$mpdf->WriteHTML($html);
$filename = $langprefix;
$filename .= $this->_stringclean($inspection->number_inspection);
$filename .= "-";
$filename .= $id;
$dir ="/home/site/wwwroot/assets/pdfs/";
//$mpdf->Output();
$mpdf->Output($dir.$filename.".pdf",\Mpdf\Output\Destination::FILE);
Expand Down

0 comments on commit d3bede5

Please sign in to comment.