This was the solution php /var/www/html/invoiceninja/vendor/bin/snappdf download
php /var/www/html/invoiceninja/vendor/bin/snappdf download
And this is the script that installs invoiceninja5 on Debian 10 using Apache2.