Skip to content Skip to sidebar Skip to footer

Dompdf Not Generating Pdf Properly

Below is my screenshots of html and pdf my html contains divs and styles like below PHP code

Solution 1:

I just finished a page creating PDFs using dompdf, and among other things I realized that dompdf definitely doesn't support flexbox and has quite a few other limitations too. Also floated elements were a problem in many cases, so I ended up using all inline-block elements instead of floats, and also a few tables (and no flexbox at all). In fact I more or less had to rebuild the whole page, and I am afraid this is what you'll have to do, too...

Solution 2:

don't use the flex and float property, use only display: table and display : table-cell property in your CSS file it will help you.

Post a Comment for "Dompdf Not Generating Pdf Properly"