SnapPDF issues when generating PDF

Since I have been unable to successfully use Phantom to generate my PDF invoices as discussed here: CORS error when trying to view PDF - #14 by ihsaan

I am now attemping to use snappdf instead.

I managed to install the library via ssh but when I try to generate a PDF from html I get the following error:

In Snappdf.php line 223:

The command “’/home2/olivac/public_html/invoice/vendor/beganovich/snappdf/v
ersions/965931-Linux_x64/chrome-linux/chrome’ ‘–headless’ ‘–disable-gpu’
‘–disable-translate’ ‘–disable-extensions’ ‘–disable-sync’ ‘–disable-ba
ckground-networking’ ‘–disable-software-rasterizer’ ‘–disable-default-app
s’ ‘–disable-dev-shm-usage’ ‘–safebrowsing-disable-auto-update’ ‘–run-al
l-compositor-stages-before-draw’ ‘–no-first-run’ ‘–no-margins’ ‘–no-sand
box’ ‘–print-to-pdf-no-header’ ‘–hide-scrollbars’ ‘–ignore-certificate-e
rrors’ ‘–print-to-pdf=/tmp/pdf_eCf3cn.pdf’ ‘/tmp/html_7e1WPP.html’” failed
.

Exit Code: 127(Command not found)

Working directory: /home2/olivac/public_html/invoice

Output:

Error Output:

/home2/olivac/public_html/invoice/vendor/beganovich/snappdf/versions/965931
-Linux_x64/chrome-linux/chrome: error while loading shared libraries: libat
k-bridge-2.0.so.0: cannot open shared object file: No such file or director
y

Any ideas?

Hi,

Maybe this will help: