I am trying to get PDF using DomPDF but I come cross a strange problem. All the data and other things are fine but when it renders in PDF the first line of the table is always o
I use
thead:before, thead:after { display: none; }
tbody:before, tbody:after { display: none; }
Almost certainly the issue is your use of Bootstrap. A lot of dompdf issues related to Bootstrap have to do with the :before
/:after
declarations. I think you can work around the problem in this particular case by applying the following CSS for dompdf:
tbody:before, tbody:after { display: none; }