Closed rohan-baranwal closed 1 year ago
Hi @rohan-baranwal. Did you figure out what the problem is? I have the same thing (i.e. no errors, but I get "Failed to load PDF Document" in the browser). It works fine on my test site but not on the production server.
@phil-warner Yes, I added
pdf.create(html, {
childProcessOptions: {
env: {
OPENSSL_CONF: '/dev/null',
},
}
});
in options
of codefile.ts
.
Please refer this link for more details.
This is the code I am using on my local to get a pdf stream and then upload it right away. Problem is that it is working fine on my local but after deployment there is nothing getting generated in
.toStream()
extension method and not showing any proper either. Inerr
I am getting{}
after deployment (which doesn't tell me anything - and so far I have only deduced that it is not generating any stream) andnull
on local.Using following versions node - v16.15.1 npm - v8.11.0 html-pdf - v3.1.0
codefile.ts
Dockerfile
Anyone knows how can I debug/fix with this?