Insert page break when generating PDF with Snappy PDF in Laravel 5

1

I am generating a PDF in Laravel using Snappy PDF. The problem is that you are not breaking the page in the right place. I've already tried using% css% of CSS where the page break should have been, but it did not work.

    
asked by anonymous 24.08.2016 / 20:06

1 answer

1

I solved the problem by adding the class:

.page-break{
   page-break-after: always;
}

In the place where I wanted the break.

    
25.08.2016 / 13:10