CSS is not affecting generated PDF in wkhtmltopdf in ubuntu

586 Views Asked by At

I am using OS: Ubuntu 16.04. I have integrated this package in my laravel application. PDF is generating but no CSS affect on this generated file.

In OS: windows, Everything is working perfectly.

In OS: Ubuntu 16.04,

  • Generated PDF is balck & white.
  • Color, Background color, font styling everything is removed. :-(

HTML view

1

There are 1 best solutions below

0
tariq ali On

I got the solution. Style was applying but color and background color were not applying. Just making all colors and background-colors properties !important works.

p { color:green !important; }

Solved !!!