Generating and downloading a PDF on an Ubuntu 22.04.5 production server #188
Abigailvantol
started this conversation in
Show and tell
Replies: 1 comment
-
Just to chime in - I had to do the same but also include: sudo apt-get install libnss3-dev |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi devs,
After much trial and error, I’ve finally been able to generate and download a PDF on the production server. I hope these steps save someone many hours of work 😄
Version:
Ubuntu 22.04.5 LTS
PHP 8.3.12
Laravel 11.21.0
Node v20.17.0
NPM 10.8.2
Installing Puppeteer (I followed these steps from the spatie/browsershot package documentation) :
Laravel code:
Errors I encountered
The following code solved that error:
Beta Was this translation helpful? Give feedback.
All reactions