Closed danielmnetto closed 2 years ago
UPDATE: I found a solution by adding an option for pdf.create
which is:
childProcessOptions: {
env: {
OPENSSL_CONF: '/dev/null',
},
}
With this options the code will stay like this:
pdf.create(html, {/*...*/ childProcessOptions: { env: { OPENSSL_CONF: '/dev/null' } } } )
.toBuffer((error, buffer) => {
if (error) {
console.log(error.stack)
return res.status(500).json(null).end()
}
}
Thanks to opengeekslabap answer on the issue #531.
I was trying to create to parse HTML to PDF Buffer in NodeJS using the following code...
But it returned this error:
The OS used to is Ubuntu Server 22.04 NodeJS = v16.15.0 html-pdf = v.3.0.1
It looks like the same issue of #563 from ZBilel but the difference is that the error log says
libproviders.so: cannot open shared object file: No such file or directory