Probably not. Maybe chunk into a few smaller pdf's.
If filling your tank and if a motorcycle it's fast, but a SUV with a 30 gallon tank is going to be slower.
Same for some processing.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
Do you know the best way to optimize generation of very large PDFs?
For my work we generate PDFs of tags to print for a nurseries trees. Several hundred tags are generated at a time, so this can end with a PDF with a couple hundred pages.
Using DomPDF currently, but only able to generate a PDF with around 400 tags at this point without getting a timeout.
Don't want to create a background job for this, as I'd like users to be able to click to download without having to wait too long.
Any ideas?
Please or to participate in this conversation.