Closed hamelraj89 closed 4 years ago
Pravansik,
I share to you on how it will break nicely and cleanly:
if( $i % 10 == 0 ){ echo '<div class="breakNow"></div>'; .... }
In your css code:
div.breakNow { page-break-inside:avoid; page-break-after:always; }
I break the table on every 10, you can customize it in your own :)
Thanks its working :)
i tried but it wont work in my code and please give me suggestion?
This is the way to use page break. if you show your code can try to help you
<style>
.page-break {
page-break-after: always;
}
</style>
<h1>Page 1</h1>
<div class="page-break"></div>
<h1>Page 2</h1>
Hi,
Thanks for your reply. But its not working in my code.
On Mon, Jul 25, 2016 at 4:46 PM, Hamelraj notifications@github.com wrote:
This is the way to page break if you show your code can try to help you
Page 1
Page 2
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/barryvdh/laravel-dompdf/issues/193#issuecomment-234926572, or mute the thread https://github.com/notifications/unsubscribe-auth/ATrxg0--qAIZxJzPutkoDyJx1Vrgqp9Dks5qZJsmgaJpZM4HY4PD .
Hi @sayali05 post ur questions stack or laracast tag me ? then can help
hi, there is so many issue in my dompdf page. First i want to set top margin in all page excluding first page. Is it possible.
bro @sayali05 if you really want solve ur issues just post ur questions somewhere. without showing your codes no one can't help u :( Add Margin Link
Where should i put my issue. Actually i am new for github. i dont know exactly what to do. Can you tell me.
post ur quz here http://stackoverflow.com/ or https://laracasts.com/
@Pravinslk can you please give me an idea or can you please paste your codes so that I can get an Idea?
@kapilpaul if you installed laravel-dompdf
then create view file in view path resource/view/invoice.blade.php
then paste this code
<!DOCTYPE html>
<html>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<style>
.page-break {
page-break-after: always;
}
</style>
<body>
<h1>Page 1</h1>
<div class="page-break"></div>
<h1>Page 2</h1>
</body>
</html>
your route like this Route::get('/invoice', 'HomeController@createInvoice');
in your HomeController
public function createInvoice() {
$pdf = \PDF::loadView('invoice');
return $pdf->download('invoice.pdf');
}
this is basic try and let me know
XZX
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Any issues with PDF rendering itself that are not directly related to this package, should be reported on https://github.com/dompdf/dompdf instead. When having doubts, please try to reproduce the issue with just dompdf. If you believe this is an actual issue with the latest version of laravel-dompdf, please reply to this issue so we can investigate further. Thank you for your contribution! Apologies for any delayed response on our side.
@aaesis aaesis has answered
@hamelraj89 Hi I have same problem would you help me
@aaesis Hi sir would you please help me? This is my problem . https://stackoverflow.com/questions/72371363/automatic-page-break-using-laravel-mpdf . thank you
@ph4t0o0o0om check your question Link
I have same problem ,table td rowspan
im getting error so if i use page-break i can solve this but i don't know how to use i tried many way but it won't work
My method -
my invoice -