adds print.css
This commit is contained in:
parent
310f1c531a
commit
eeaed03d7d
|
@ -0,0 +1,3 @@
|
|||
h1 {
|
||||
color: red;
|
||||
}
|
|
@ -102,7 +102,9 @@ class TechDocument extends AbstractBlockLayout
|
|||
.'</td>
|
||||
</tr>
|
||||
</table>');
|
||||
$mpdf->WriteHTML($html);
|
||||
$stylesheet = file_get_contents('./modules/TechDocument/asset/css/print.css');
|
||||
$mpdf->WriteHTML($stylesheet, 1);
|
||||
$mpdf->WriteHTML($html, 2);
|
||||
$mpdf->Output($this->storage_dir.'/docs/'.$document_name, \Mpdf\Output\Destination::FILE);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue