Commit f051c008 authored by hj's avatar hj

更新提交

parent 863fd2b9
...@@ -61,7 +61,7 @@ class ChemicalsMsdsService ...@@ -61,7 +61,7 @@ class ChemicalsMsdsService
//$msds_html = preg_replace('/11123/', $bodyStyle['bodyStyle'], $msds_html); //$msds_html = preg_replace('/11123/', $bodyStyle['bodyStyle'], $msds_html);
$msds_html = preg_replace('/<\/body>/', '</div></body>', preg_replace('/@body@/', $bodyStyle['bodyStyle'], $msds_html)); $msds_html = preg_replace('/<\/body>/', '</div></body>', preg_replace('/@body@/', $bodyStyle['bodyStyle'], $msds_html));
file_put_contents('./test.html', $msds_html); //file_put_contents('./test.html', $msds_html);
//$msds_html = file_get_contents('./test.html'); //$msds_html = file_get_contents('./test.html');
$this->getPdfApp()->loadHTML($msds_html, 'utf-8'); $this->getPdfApp()->loadHTML($msds_html, 'utf-8');
......
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