Page-break DomPDF elements in foreach
I have been trying to achieve this for a long time, it is an invoice, what I try to achieve is that it break page if it exceeds the limits where the elements that go in a foreach loop are located if an element already exceeds the limit that is created a Page the same as the previous one and that I add this element, right now I have it done with a page break of 5 in 5 elements but of course, it may be the case that if the text of the elements is very short there is a lot of white space, it is this possible with domPDF? I have tried many things already and I can not find it, always what it does is create the page overflowing the content of the table. Since the elements are in the center of the document and below it has a large footer which removes. I also read that it is better to encapsulate the table in a div but it does not work either. Thanks!
Please or to participate in this conversation.