Questions tagged [html-pdf]

167 questions
1
vote
1 answer

How to convert pdf data sent from nodejs server into pdf in angularjs

I'm trying to download a pdf file generated at nodejs server. When I send the data of pdf file then it is coming to angularjs frontend but I've tried blob object to convert into pdf but pdf is showing no data. Already tried the {responseType:…
1
vote
2 answers

Download HTML table in PDF

I have spent the last 3 days trying to solve this problem but keep getting the same result... I have an HTML table which is completed using JavaScript. HTML
flyer74
  • 195
  • 1
  • 12
1
vote
1 answer

Generating pdf file from express-handlebars render with html-pdf library, css files not working

I'm trying to generating a pdf file which is generated from express-handlebars rendering. However, some css files don't seem to be working. Bootstrap are still working okays, but the custom css (i'm using a theme) is not working. I have tried…
1
vote
2 answers

iText 5 HTML+CSS to PDF/A-2 : Helvetica font not embedded error

The following code is being used for converting HTML file with CSS to PDF/A-2 using iText5 (this code is from the example provided online): public static final String HTML = "D:\\PDFA2\\html\\sample.html"; public static final String CSS =…
S_S
  • 1,276
  • 4
  • 24
  • 47
1
vote
1 answer

html to pdf in nodejs (no dependency to phantomjs)

I am generating pdf from dynamic html (using handlebars) using html-pdf package in nodejs. The problem is that it is dependent to phantom js that is now deprecated And I am not allowed to use this package anymore. What replacement can I use?
McFloat Combo
  • 13
  • 1
  • 3
1
vote
0 answers

How to add link for image in Qt generated PDF?

I use the following code to generate PDF: html="b; QTextDocument document; document.setHtml(html); QPrinter…
peter
  • 379
  • 2
  • 6
  • 16
1
vote
3 answers

node.js html-pdf get "spawn ENOTDIR" error when call pdfToFile

I am using html-pdf in electron to generate pdf from a html. It is worked when I tested by "npm run start". I can get pdf. But when I package electron app to .dmg file by electron-builder, I got "spawn ENOTDIR" error when call pdf.create() var pdf…
Wu Baiquan
  • 129
  • 7
1
vote
1 answer

YaHP Converter throws javax.xml.datatype.DatatypeConfigurationException

I just linked YaHP converter to convert my velocity template in PDF format. And when I opened Swagger to run the API, all i got was this : There was an unexpected error (type=Internal Server Error,…
Vishal A
  • 144
  • 3
  • 17
1
vote
0 answers

how to store pdf on server using html-pdf?

I am using html-pdf to create pdf. After new user subscribes for product then admin fills data and generate pdf for that user. Now i want to make it available to show/download that pdf to user when he visits profile page . Is there any way to store…
vedika shrivas
  • 333
  • 2
  • 6
  • 14
1
vote
1 answer

Failed to load Pdf Document html-pdf

This is a plunker link. I run pdfSample.js using node, pdfsample.html is actual data to convert into pdf and generatepdf.html is used to fetch it . When i run it, it shows me an error Failed to load Pdf Document. I reffered this sample. I am not…
vedika shrivas
  • 333
  • 2
  • 6
  • 14
1
vote
1 answer

CSS issues with html-pdf

I want to use html-pdf to save a quote made with sails, .ejs, and angular into a pdf to send it to the customer. An .ejs file (view folder) and its assign .js controller (assets folder) allows the user to create the quote, select the customer, add…
StS
  • 49
  • 1
  • 11
1
vote
1 answer

write html content into word and download in user machine using node.js

How to use html-docx-js in node.js . I have refered the npm site (https://www.npmjs.com/package/html-docx-js) for this. Below is the code var converted = htmlDocx.asBlob(content); saveAs(converted, 'test.docx'); But here is the problem, the…
Bikram Nayak
  • 21
  • 1
  • 6
0
votes
0 answers

CSS properties is not working in html-pdf library

donationReceipt = async (req) => { try { const { id } = req.query; let donationReceipt = await TblmanualDonation.findOne({ where: { id : id }, include: { model : TblmanualDonationItem,…
0
votes
0 answers

Texts are not appearing in the header of converted pdf when using the html-pdf node module

I am using html-pdf module to convert a html file to pdf. Here in the header section i am not able to view the texts added in header. Its happening only in docker environment. its working fine in localhost. ` const html =…
0
votes
0 answers

Axios Network error when generating PDF from Nodejs in a Nextjs application

I want to generate pdf from Nextjs client using this function: const createAndDownloadPdf = () => { return new Promise(async (resolve, reject) => { try { const res = await axios.post(`${process.env.NEXT_PUBLIC_API_URL}/create-pdf`, { …
BigBros
  • 73
  • 1
  • 10