Questions tagged [node-html-pdf]

56 questions
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…
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
  • 653
  • 3
  • 10
  • 23
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
  • 411
  • 5
  • 18
0
votes
2 answers

Dynamic PDF with html-pdf npm

When creating a Dynamic PDF in node using html-pdf, the content became cut at the end of pages. In html, added Code that used to create PDF is pdf.create(finalstr, { format: "A3", "footer": { …
Ashwanth Madhav
  • 825
  • 1
  • 5
  • 15
0
votes
1 answer

Node js html-pdf command not working from PHP

I am trying to create a PDF file from a HTML for which I am using npm html-pdf package. When I am trying to run this command from terminal html-pdf ticket-2.html ticketpdf.pdf its working fine and PDF is creating successfully.But when I am trying…
user2439124
  • 291
  • 1
  • 2
  • 13
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 =…
Shrey
  • 95
  • 4
  • 12
0
votes
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…
0
votes
2 answers

Merging PDFs with phantomjs

I have made an API that takes the input and generate a serverside pdf a/c to the inputs passed using pdf using html-pdf. Which will be then used by the client. Now, requirements has changed and I want the starting 4 pages of the pdf to be in…
GauRang Omar
  • 761
  • 7
  • 17
0
votes
0 answers

Pdf rendering issue in html-pdf

When I create a PDF from HTML using the html-pdf npm module, the output pdf is not correct (does not look the same as the html.) What needs to be done to receive exact same format as in html file? HTML PAGE -> PDF PAGE . - > var fs =…
Rohan Singh
  • 71
  • 1
  • 1
  • 8
0
votes
1 answer

Node-Html-Pdf custom condensed fonts not rendering correctly

I'm using node-html-pdf library to render an html page into a PDF on Node.js using Heroku. I'm facing an issue when using a custom system font Open Sans Condensed. I couldn't use the web font cause each character is being rendered as an svg,…
ChrisBorg
  • 1,346
  • 14
  • 26
0
votes
1 answer

HTML+CSS generated .pdf file has different layout on different computers?

I managed to generate a .pdf file using HTML and CSS. The size of the page is predefined in inches (A4 format). It works great on my computer, but when I run the program on a different computer, the generated file looks different, the pages remain…
1 2 3
4