How to delete blank page in mPdf

Trần Thanh Luân picture Trần Thanh Luân · Jun 24, 2015 · Viewed 8.6k times · Source

I am converting an html file to PDF by using mPdf, but the returned PDF file includes blank pages. I want to delete those blank pages.

Answer

biko picture biko · Apr 8, 2016

Had the same problem and realized that my CSS was forcing these page breaks. Make sure you don't have this in your CSS:

page-break-after: always;