2

How do I add a class in html2pdf? I have tested

$stylesheet = file_get_contents('../printpdf.css');

but this does not work.

2
  • Fixed general language. Commented Oct 25, 2017 at 18:48
  • hello language php Commented Oct 26, 2017 at 7:52

1 Answer 1

6

Please try with add css with type="text/css" to your html

<link rel="stylesheet" type="text/css" href="style.css">
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.