Questions tagged [html-pdf]

167 questions
0
votes
0 answers

What will be the phantom path in options while using html-pdf in elastic beanstalk in node

In local, I am using ./node_modules/html-pdf/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs phantom path but it is not working in elastic beanstalk
Karan
  • 1
  • 1
0
votes
2 answers

Print webpage with canvas content

I have a tool that allows you to assemble reports generated with fabricjs. We are trying to convert those reports that currently work on the web to pdf, using the sejda.com tool The problem with sejda is that it has a generation time limit of 1:50…
Pedro Jose
  • 442
  • 3
  • 19
0
votes
1 answer

Error on nodejs app running on heroku. (html-pdf)

I am using library html-pdf to render pdf and then send the file with email. It works like a charm on localhost pdf.create(html, {format: 'A4'}).toFile(`./public/invoices/${order.id}.pdf`, (err, res) => { if (err) return…
Vojir
  • 43
  • 4
0
votes
1 answer

html-pdf generating broken pdf

I am using html-pdf in nodejs cloud functions for generating pdf. The package is working properly when I am running the cloud functions locally. After deploying the cloud functions in firebase cloud function for generating pdf is generating broken…
0
votes
0 answers

Rendering IMAGE in EJS to CONVERT TO PDF

I'm creating an HTML via EJS and npm HTML-PDF, to convert to PDF, using NODEJS and MYSQL to pull data from the database. However, I am not able to display the image, the image is hosted on the same server but in the REACTJS folder,…
0
votes
1 answer

SSL Error when using html-pdf in a Render instance

I'm using the html-pdf library to generate PDF files from HTML, and it's working great on my machine. However, when attempting to use this on an instance of the project hosted on Render, I'm getting the following error: Auto configuration…
Robert May
  • 799
  • 6
  • 13
0
votes
1 answer

Error: spawn ENOENT html-pdf nodejs in server

I have a problem when create pdf using html-pdf. In my local running well but in server can't work. my code below: const fileName = './public/offering/' + dayjs().format('YYYY-MM-DD') + '-' + name[0] + '.pdf'; const htmlToPdfOptions = { type:…
zainal abidin
  • 363
  • 1
  • 3
  • 12
0
votes
1 answer

Is it possible to embed an iframe using html-pdf on Express?

I have the following file as a html just for testing purposes: