spatie / laravel-pdf

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

Can't set node and npm binary paths for Browsershot #164

Closed mohamed-salah-tawfik closed 3 months ago

mohamed-salah-tawfik commented 3 months ago

What happened?

There is no way to set the correct node and npm nodes paths

How to reproduce the bug

use /usr/bin/ directory instead of /usr/local/bin/ one for node and npm binaries

Package Version

1

PHP Version

8.2.0

Laravel Version

11

Which operating systems does with happen with?

macOS, Linux

Notes

No response

mohamed-salah-tawfik commented 3 months ago

I found a method at PdfBuilder class named withBrowsershot that you can use to set the custom binaries path