Questions tagged [html-pdf]
167 questions
0
votes
1 answer
how to fix html-pdf node module arbitrary file read vulnerability?
I want to convert html to pdf document. Using html-pdf npm module, which contain vulnerability.
https://snyk.io/vuln/SNYK-JS-HTMLPDF-467248
Please suggest the alternative solutions.

Nadhas
- 5,421
- 2
- 28
- 42
0
votes
1 answer
Node returns SIGSEGV error with html-pdf npm
var fs = require('fs');
var pdf = require('html-pdf');
var html = '
hi testing
'
var options = { format: 'Letter' };
pdf.create(html, options).toFile('./businesscard.pdf', function(err, res) {
if (err) return…
Abhishek Tripathi
- 1,570
- 3
- 20
- 32
0
votes
1 answer
Finding any user's dekstop filepath
I created a desktop application with Electron that allows users to enter information about applicants in a program. My application needs the ability to create and save that information to a .pdf file. I have created the .pdf successfully, but I'm…

David D.
- 21
- 1
- 4
0
votes
0 answers
Node JS / Generate PDF server side
I need to create PDF files via server side. I have a pug file with the HTML and it's working as expected (the format and the content is perfect). Also, I have a service that gets the HTML from the pug file in a string. The problem is that I'm facing…

Jose R. Chacón
- 99
- 1
- 12
0
votes
1 answer
Getting error while creating pdf using html-pdf node package and Microsoft.AspNetCore.NodeServices in Azure web app
I trying to create PDF using html-pdf nod package and .net core mvc application. Its working fine in local. When deploying to Azure web app i am getting below error.
In web page:
SocketException: An existing connection was forcibly closed by the
…
0
votes
1 answer
convert rich html with css classes and background image to PDF
I need to convert html which include css classes based on css file(s).The HTML also has images as background (css class that has background-image as property). It uses css3 properties and models (i.e.- flexbox).
I'm just at the begining of my…

Guy E
- 1,775
- 2
- 27
- 55
0
votes
1 answer
How to render html tags/to generate dynamic tables using html-pdf
I want to generate a table from node.js to be printed in pdf format using html-pdf library but unfortunately my code won't work. The problem is because the html-pdf won't execute html tags. It execute the tags as string instead.
var tableBody =…

dede
- 823
- 4
- 13
- 24
0
votes
0 answers
Graphql resolver not waiting for response to generate
I am trying to generate pdf using 'html-pdf' npm module. After generating pdf, in response I get pdf file path which I want to return with response of graphql call (earlier was planning to return pdf file which I realized is not a standard way). But…

Rahul Kulshreshtha
- 283
- 3
- 11
0
votes
1 answer
Check Mailbox in a Loop, Read Email and Create PDF
I have a code that reads unseen emails and creates pdf.
The problem is;
I cannot pull email if any new unseen email exist without executing code again.
var Imap = require('imap');
const MailParser = require('mailparser').MailParser;
var pdf =…

ilvthsgm
- 586
- 1
- 8
- 26
0
votes
0 answers
Add html source to PDF field with Java
I'm trying to create a PDF from a template in my backend and then serve it to the user when it needs to download it. The only problem that I have is that one of the fields in that template must have HTML source in it and must be rendered. Is there…

Matthew
- 105
- 1
- 11
0
votes
1 answer
html to pdf fit table on A4
im currently using html-pdf which takes my table data and turns it into an pdf.
My problem is that the table content is overlapping the required A4 papersize in such way that there is 2 columns totally missing in the pdf, when ever i change the…

Ylama
- 2,449
- 2
- 25
- 50
0
votes
1 answer
All headers not displaying
I am using html-pdf library to save html table into pdf file,file is saving but i am not getting all headers in file.If more headers in table row then all all column not displaying
Here is my backend code
var fs = require('fs');
var pdf =…

Shree
- 145
- 4
- 15
0
votes
1 answer
HTML to PDF with Node.js and Electron.js
Here are the relevant code.
let Name = moment().unix() + ".pdf";
var html = fs.readFileSync('./test/businesscard.html', 'utf8');
let filename = "C:\\App\\Register\\pdf\\" + Name;
pdf.create(html,…

Ali Raza
- 83
- 1
- 11
0
votes
1 answer
insert binary img as html to pdf with node html-pdf
I try to insert a binary image to html to generate a PDF from html doc with the node module html-pdf.
According to other questions I tried the following code:
const pictureHtml = `
`;
The picture…

Simon Thiel
- 2,888
- 6
- 24
- 46
0
votes
1 answer
NodeJS Html-pdf: fs.readfilesync how to async/await
I have a problem with my html-pdf document creation. The problem is that often the code runs to fast to complete the process of pdf-docutment creation. The Processes consists out of building an HTML-String by replacing placeholders in an Html file.…

RutgerBrns
- 85
- 2
- 10