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

Asked

Viewed 511 times

1

I am generating a PDF in Laravel using Snappy PDF. The problem is that it is not breaking the page in the place it should. I’ve tried using the page-break-after: always of the CSS in the place where the page break should exist but it didn’t work.

1 answer

1


I solved the problem by adding the class:

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

on the spot where I wanted the break.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.