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

vincent15000's avatar

How to use spatie/browsershot to generate PDF files ?

Hello,

I just discover spatie/browsershot. It seems to be very nice, I have read some post on different forums, but I am not able to have it working.

I have installed puppeteer, then spatie/browsershot, and when I want to generate my PDF file, my browser becomes very slow, it 'searches' for about one minute and the stops.

What happens ?

Has someone already tried this package ? Some advise for me ? ;)

(if I don't find any solution, I will use dompdf with some basic CSS ;))

Thanks for your help.

Vincent

0 likes
2 replies

Please or to participate in this conversation.