Commit dda6f5d7 authored by hj's avatar hj

更新提交0

parent f7d6fb6e
...@@ -37,9 +37,9 @@ class ChemicalsMsdsService ...@@ -37,9 +37,9 @@ class ChemicalsMsdsService
$msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '11123', $msds_html); $msds_html = preg_replace('/<body>[\s]*?<style>(?<bodyStyle>[\s\S]*?)<\/style>/i', '11123', $msds_html);
$bodyStyle['bodyStyle'] = "<style>body{ font-family: 'msyh'; font-size: 0.8rem; font-weight: bold; display: block;} " . $bodyStyle['bodyStyle']."</style><body>"; $bodyStyle['bodyStyle'] = "<style>body{ font-family: 'msyh'; font-size: 0.8rem; font-weight: bold; display: block;} " . $bodyStyle['bodyStyle']."</style><body>";
$msds_html = preg_replace('/11123/i', $bodyStyle['bodyStyle'], $msds_html); $msds_html = preg_replace('/11123/', $bodyStyle['bodyStyle'], $msds_html);
file_put_contents('./test.html', $msds_html); //file_put_contents('./test.html', $msds_html);
$this->getPdfApp()->loadHTML($msds_html, 'utf-8'); $this->getPdfApp()->loadHTML($msds_html, 'utf-8');
//echo $htmlTemp; //echo $htmlTemp;
......
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