Reputation: 25
How do I add a class in html2pdf? I have tested
$stylesheet = file_get_contents('../printpdf.css');
but this does not work.
Upvotes: 2
Views: 4909
Reputation: 763
Please try with add css with type="text/css"
to your html
<link rel="stylesheet" type="text/css" href="style.css">
Upvotes: 6