I am trying to force content that is on a page to stay on one page, 'cutting off' any content that cannot fit on the physical page when output to PDF. Our HTML structure uses a
div.page to handle what constitutes a 'page' in our content, and we have CSS rules in place to give these elements a fixed height and width which corresponds to the DOMPDF page size (612pt x 792pt), and have also included overflow: hidden and page-break-inside: avoid; rules as well. We are not using min-height or max-height in our code for this element to define this. From what I have read, these 3 style rules should do what I want, which is to simply not display any content that overflows beyond the boundaries of the page div's fixed size when the PDF is rendered. This is working as expected when viewing the HTML in the browser rather than passing the HTML to DOMPDF, but on rendering the PDF, the 'overflowed' content is rendered to an additional page in the PDF, and this continues across however many pages are needed until the content has all been dumped.
Is there a way to handle this? I do seem to find others talking about it working for them, but I have implemented everything suggested in those conversations and am not getting the expected results. Happy to supply HTML and PDF examples if needed.