thomas2048
thomas2048

Reputation: 25

how to include external class css in html2pdf?

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

Answers (1)

Ravi Patel
Ravi Patel

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

Related Questions