Questions tagged [node-html-pdf]
56 questions
1
vote
0 answers
NodeJs Buffer is not attached to Nodemailer file
Currently on my project I am dealing with a situation and I feel it is a problem of syntax but I am not getting the right answer and kinda feeling stressed and tilt over it for the last three days.
I am using three libraries NodeJs,…
![](../../users/profiles/14366549.webp)
thelittlemaster
- 73
- 1
- 7
1
vote
0 answers
PDF file generated from AWS Lambda has all Blank pages
All pages of PDF file that I am generating from my NestJS based AWS Lambda function are blank. When I generate PDF file and attach it to an email then I receive the correct file with all content in it.
But when I download the same file in browser…
![](../../users/profiles/3173416.webp)
user3173416
- 21
- 2
1
vote
2 answers
html-pdf runs very slow in firebase cloud functions
I have developed a function that take an one page HTML, convert it to PDF using htmp-pdf package and upload to firebase storage. When I run this function from my pc it takes less than 5 seconds, but when I run it from firebase function it takes up…
![](../../users/profiles/11645702.webp)
Bluepoint Developer
- 23
- 6
1
vote
0 answers
node-html-pdf header and footer start from second page to last page
I am using node-html-pdf to convert the html to PDF.The conversions are really good.But the problem is to add header and footer in the PDF pages.Actually i need Header and footer starting from second page to last page..is there any way to possible…
![](../../users/profiles/7075128.webp)
user7075128
- 11
- 5
1
vote
0 answers
Html-pdf npm uing command line change page size to 300*400
i have install np in my ubuntu machine to install html-pdf module to use that as a command line input to convert html to pdf.
But that gieve pdf as a different size which i want.
Its breaks that table and show its output to other page
I have…
![](../../users/profiles/12558146.webp)
ajay juneja
- 13
- 5
1
vote
1 answer
Problems with html-pdf on Elastic Beanstalk (Node.js)
I'm having serious and intermittent problems getting phantomjs-prebuilt installed on Elastic Beanstalk using html-pdf. I've tried every solution I can find, but I'm not well versed in how to fix these things. I can't even figure out how to SSH into…
![](../../users/profiles/533901.webp)
swebal
- 421
- 2
- 13
1
vote
0 answers
assets and scripts missing in generated pdf
Im using html-pdf to convert a compiled ejs with dynamic values to PDF in ejs. When I try to render the ejs file all the scripts , images , svg are loading correctly , but when I generate PDF from compiled ejs some assets like fonts , and images are…
![](../../users/profiles/6709181.webp)
Lakshmi Narasimhan
- 139
- 12
1
vote
1 answer
Firebase functions - custom fonts in html-pdf generation
I have a firebase function that generates and returns a pdf blob.
Locally, and using firebase serve, I can use a font loaded from a url and locally.
On firebase, the font is not ever loaded. I have tried variations of this in my template.html…
![](../../users/profiles/6186006.webp)
cdelambert
- 21
- 4
1
vote
1 answer
How can I add repeating table headers after page breaks using node-html-pdf?
I'm using node-html-pdf to generate pdfs. It renders HTML then uses phantom js to convert to pdf.
I have several tables that overrun a single page in the pdf, and I'd like the table header to repeat on each new page.
From what I can tell, this…
![](../../users/profiles/1988463.webp)
rbristow
- 173
- 1
- 14
1
vote
1 answer
Angular 4 show pdf in new tab with node api
My requirement is to generate pdf view of UI(angular 4 app) using Nodejs api. For that i fetched the entire content from UI and did some pre-processing which will be send to nodejs api. In node api i used html-pdfpackage to generate pdf from the…
![](../../users/profiles/891331.webp)
Satheesh
- 853
- 2
- 15
- 36
1
vote
2 answers
Node JS Html-pdf : create different header footer for first and last page
I am new in node js, and I want to use different header and footer for first and last pages in node js,
I am using html-pdf module which is not working when I use the same code as they have provided.
please have a look into the code
var fs =…
![](../../users/profiles/9316097.webp)
Ravi Gupta
- 13
- 1
- 3
0
votes
1 answer
Error when trying to create a PDF with Electron and node-html-pdf
I have this little aplication that creates a PDF from a simple form in electron with html-pdf, it works fine when I run npm start(electron .), but after build when I try to generate the PDF I get this error:
A JavaScript error occurred in the mais…
![](../../users/profiles/6835376.webp)
Kleber Germano
- 151
- 2
- 2
- 14
0
votes
0 answers
node html-pdf prints out extra blank sheet
I am really new to node and for this project, I am using HTML-pdf API which automatically prints out recent pdf files from a folder. The issue that I am facing is it will always print one extra blank page as well. Is there a way to set print the…
![](../../users/profiles/13484913.webp)
Yahoo
- 371
- 2
- 10
0
votes
1 answer
node-html-pdf not show image in PDF
I am trying generate PDF from simple code, but no show image.
Help me please.
code
pdf.create("Hello
").toFile('./pdf/cotizacion.pdf', function (err) {
if (err) {
console.log(err);
} else {
…
![](j4.jpg)
0
votes
1 answer
Text size changes when using html-pdf local vs online
I'm actually using node js and html-pdf lib to generate a pdf on the server which is return as a blob to the client. When I did it on my local machine everything is fine but when I upload it to the server and test it out. The text size increases…
![](../../users/profiles/10845859.webp)
Dayvid Kelly
- 44
- 4