Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

tinkerbell's avatar

A4 page to print in Laravel with dynamic content?

I have a table which I want to turn each row into a page to print it out with a dynamic content from db, I am wondering if there is a way to create A4 page template with fixed header and footer and dynamic content !!! and be able to print it out later??

I have seen many posts which recommended this packages which I don't know which one will meet my exact needs!!

https://github.com/barryvdh/laravel-dompdf

and

https://github.com/barryvdh/laravel-snappy

Please help me!

what I want to implement is something like that!! for example I have a table list of the new companies and wanted to print a page for each company details alone like this pic

https://imgur.com/8niaIJx

0 likes
2 replies
laracoft's avatar

@faeza97

Dompdf will do the job. The idea ia to create an A4 PDF and let the user print the PDF

1 like

Please or to participate in this conversation.