I’m not sure if it is required for everyone and how it supposed to be configured so it would be nice I suppose not only for me but for everyone here using Invoice Ninja to get this finally clarified.
2.) Also is there any good reason or cons/pros/advantages to using SnapPDF over Phantomjs to generate PDF files?
So back to my original question like I said:
How do you actually install SnapPDF on Invoice Ninja server the proper way?
Snappdf will download the correct binary for your platform. One thing to note, you’ll want to execute the download as the web user to ensure the permissions are correct.
so the full command may look like this for ubuntu:
No package libnss3-dev available.
No package libatk1.0-0 available.
No package libatk-bridge2.0-0 available.
No package libcups2 available.
No package libgbm1 available.
No package libpangocairo-1.0-0 available.
No package libgtk-3-0 available.
Installing SnapPDF can be better documented . Finally what I did for my Debian 12 installated v5.10.31 was:
edit “.env” file to have PDF_GENERATOR=snappdf
inside folder /var/www/invoiceninja and as user www-data: ./vendor/bin/snappdf download
After that some packages need to be installed in addition: sudo apt install libasound2 libnss3 libatk1.0-0 libatk-bridge2.0-0 libcups2 libxcomposite1 libxrandr2 libgbm1 libpangocairo-1.0-0 libgtk-3-0 sudo apt install libnss3-dev libatk1.0-0 libatk-bridge2.0-0 libcups2 libgbm1 libpangocairo-1.0-0 libgtk-3-0
Then I restarted my apache webserver and it worked
Because these installation scripts sometimes tend to overwrite stuff that they should not overwrite and also they are not always production ready and safe/secure.
So after you have run the Softcalous installation script you need to manually harden your server security and that webapp you just installed.
Personally I never use that Softcalous because it just better and easier in the end so just do it right from the start and manualy install the software/webapp