Can't download PDF using Spatie Laravel-pdf
I'm trying to use Spatie Laravel-pdf to generate PDF with the use of Tailwing and tried following the docs https://spatie.be/docs/laravel-pdf/v1/advanced-usage/using-tailwind . However, after installing puppeter I'm still getting problem (pic related).
I've read https://github.com/spatie/laravel-pdf/discussions/57 and tried doing the same in my app.dockerfile since I'm using ddev container to launch my app.
But this didn't work. Any ideas?
Using Tailwind | laravel-pdf
laravel-pdf
GitHub
Error: Failed to launch the browser process! · spatie laravel-pdf ...
I have a working installation on my Mac, but when trying to run the pdf creation process on AlmaLinux 8, I get this error: The command "PATH=$PATH:/usr/local/bin:/opt/homebrew/bin NODE_PATH=np...

6 Replies
https://www.youtube.com/watch?v=QjoIpJj8qxU Reading the comments right now, sounds like this is a bit tricky after all.
Laravel Daily
YouTube
New Spatie PDF Package: Use Tailwind Styles in PDF
Presenting another new package by Spatie.
Links mentioned in the video:
- Official repo: https://github.com/spatie/laravel-pdf
- Official tutorial: "Easily create PDFs in Laravel apps" https://freek.dev/2625-easily-create-pdfs-in-laravel-apps
- Tutorial "Creating beautiful invoices using Tailwind and Laravel PDF" https://freek.dev/2639-creating...
Same Here. Any solution did you found?
Hello, have you installed the dependencies like "puppeteer"? I'm using version ^17.1.3 for it to work. Also, in production, I need to add some parameters to Browsershot to set the associated paths.
Here’s an example:
I’m thinking about writing a short article on Filament Mastery about this topic to explain the setup more in detail. What do you think?
Filament Mastery
Filament Mastery
Discover Filament Mastery, your go-to platform for all things FilamentPHP. Dive into tutorials, articles, plugins, and tips to level up your Laravel development projects with ease and efficiency.
Actually I had same issue on production
Have you add Browsershot path params ?