I was earlier using library puppeteer to make a pdf from html and send it on email, but it is taking so much time, so i moved to another library, but no matter how it is giving me error of ====>Error: Failed to launch the browser process!1|app | '/var/node_backend/node_modules/html-pdf-node/node_modules/puppeteer/.local-chromium/linux-901912/chrome-linux/chrome: error while loading shared libraries: libatk-1.0.so.0: cannot open shared object file: No such file or directory'although it is working fine on local, but on gcp intance it is giving me this error. i am using ubuntu machine for gcp.
let options = { format: 'A4' }; let file = { content: html_content }; html_to_pdf.generatePdf(file, options).then(pdfBuffer =\> { // Your code to handle the PDF buffer goes here });
This is the code which i am using to do it. Help me to fix this