Support the ongoing development of Laravel.io →
Views Blade Packages

Hi,

I will save html as PDF , so I use barryvdh/laravel-dompdf package. when I style a <div> with "page-break-after: always;" the PDF will not created and the render proccess will and after php timeout.

I Test a lot , but nothing works for me.

css: .page-break { page-break-after: always; } html: <div class="page-break"></div>

I hope you have a new idea , witch help me.

Thx

so long Maxwill

Last updated 3 years ago.
0

Sign in to participate in this thread!

PHPverse

Your banner here too?

Maxwill maxwill Joined 5 Dec 2019

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2025 Laravel.io - All rights reserved.