spatie / laravel-pdf

Create PDF files in Laravel apps
https://spatie.be/docs/laravel-pdf
MIT License
715 stars 54 forks source link

Make getBrowsershot public #161

Closed dbpolito closed 3 months ago

dbpolito commented 3 months ago

Working with big PDFs on Lambda can lead to maximum payload errors, as lambda limits to 6MB or 8MB...

Making this method public we can easily call it with and then call saveToS3 from BrowserShotLambda.

Besides that we could also improve support to saveOnDisk in case it's s3 driver, use this method directly to avoid downloading the file to the machine and saving directly there.

freekmurze commented 3 months ago

Thanks!