DOMpdf, adding a new page to PDF

Kitalpha picture Kitalpha · Mar 30, 2014 · Viewed 44.3k times · Source

Is it possible to add a new page in DOMpdf? Similar to mPDF AddPage(); functionaly. I can't seem to find anything in the documentation, is there any work around to this?

I can't seem to find anything in the documentation.

Answer

BrianS picture BrianS · Mar 31, 2014

dompdf takes care of paging automagically. If you want to force a page break you can do so by styling an element with page-break-before: always; or page-break-after: always;.