Commit 0daa85c5 authored by hj's avatar hj

更新提交

parent 15dd5ea9
...@@ -128,8 +128,12 @@ class ChemicalsMsdsService ...@@ -128,8 +128,12 @@ class ChemicalsMsdsService
$this->getPdfApp()->loadHTML($msds_html, 'utf-8'); $this->getPdfApp()->loadHTML($msds_html, 'utf-8');
//echo $htmlTemp; //echo $htmlTemp;
$this->getPdfApp()->render(); $this->getPdfApp()->render();
$canvas = $this->getPdfApp()->getCanvas();
$canvas->page_text(500, 770, "Page {PAGE_NUM} - {PAGE_COUNT}", '', 10, array(0,0,0));
$pdf = $this->getPdfApp()->output(); $pdf = $this->getPdfApp()->output();
if($pdf){ if($pdf){
$fileName = $cas.'/'.$comInfo['cus_number'].'_'.$cas.'_'.$comInfo['cus_type'].'_msds.pdf'; $fileName = $cas.'/'.$comInfo['cus_number'].'_'.$cas.'_'.$comInfo['cus_type'].'_msds.pdf';
$realPath = $fileService->getFileFolderPath().'/'.$fileName; $realPath = $fileService->getFileFolderPath().'/'.$fileName;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment