Questions tagged [html-pdf]

167 questions
0
votes
0 answers

html-pdf adjust content to fit inside the PDF

I'm receiving a HTML for an API, I cannot change its content, but I can add styles. I created a NodeJS/Express backend to transform this HTML to a PDF. However, it is not formatted inside the PDF. The example below shows the issue: const pdf =…
myTest532 myTest532
  • 2,091
  • 3
  • 35
  • 78
0
votes
1 answer

repeat left side sectio on each page when convert HTML to PDF

*My goal is I want to build resume with dynamic data but my issue here I want the left side to be repeated on each page. I searched for how to solve this problem, but I just found how set header and footer. It does not mention repeat section or…
ELBEQQAL
  • 36
  • 2
  • 5
0
votes
2 answers

CSS / html-pdf issue: Overflow of page

I have the following very simple HTML.
juliusphysics
  • 163
  • 1
  • 6
0
votes
0 answers

node.js SET HEADER ERROR ON upload to any host

I have a problem with node.js html-pdf, its give me the error SET HEADER ERROR, when I upload a file to any host like Amazon EC2 its give me Error: Can't set headers after they are sent to the client, but it works very will on my device host…
0
votes
1 answer

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…
0
votes
0 answers

Converting HTML to PDF for large files using Google Puppeteer

I am getting the following error when I use the puppeteer for generating the PDF file, Error: Protocol error (Runtime.callFunctionOn): Target closed. at Promise…
0
votes
1 answer

NodeJS - npm package - html-pdf alternate

I am creating a pdf from a static HTML code in nodejs using html-pdf npm package. But it is critical severity vulnerability. I want to change this package. Is there any package available to convert an HTML code to PDF on the server-side.
Vinodh Ram
  • 709
  • 1
  • 9
  • 22
0
votes
0 answers

NodeJS generate pdf and save to firebase storage. Can't open file

I've been stuck on this problem for awhile now and can't seem to figure out why this file isn't being uploaded to firebase correctly. I'm using the code below in firebase functions to generate a document, then I convert that document to a stream,…
0
votes
1 answer

NodeJS send a PDF by Email using pdf creator

I'm new with NodeJS. I'm trying to generate a PDF from HTML and send it by email using nodemailer. exports.testReqID = async (req, res, next) => { const ID = req.params.myID; const htmlData = ` …
myTest532 myTest532
  • 2,091
  • 3
  • 35
  • 78
0
votes
1 answer

Missing image in pdf generated by html-pdf

I am using HTML-pdf library to convert HTML page into pdf. I am getting the dynamic part on the pdf however the image is reportedly missing. I have tried to use all methods at my disposable, however, the image isn't appearing in the generated pdf.…
0
votes
2 answers

Node return byte array after turning html to pdf

I am using the 'html-pdf' npm package to create a byte array in a nodeJs azure function. I can log and see that the byte array is being created but when i call my function i cannot get the buffer to return. My response is a 200 and again i can see…
Leonardo Wildt
  • 2,529
  • 5
  • 27
  • 56
0
votes
1 answer

Does Antenna House 6.6 support HTML DOM classList toggling?

I have recently begun reading through the DITA 1.3 specification pdf (around 1300 pages). To save on eye strain I've set Adobe Reader to a dark theme. It seems simple, but some of the people I write documentation for aren't as knowledgeable with…
Aaron
  • 95
  • 1
  • 11
0
votes
0 answers

How to convert to pdf a html that is in another component (Angular 8 + jspdf)

I have two components: Component1 (for printing) and Component2 (list of quotations). What I want is when I select one quotation and click to print the file, download without displaying the content of page. My current solution works but show the…
H_Hmd
  • 25
  • 8
0
votes
1 answer

Font is doubled when creating pdf from html

I am building a web application with node.js that should create a pdf from a given HTML snippet. For this I am using the html-pdf package. Everything works fine except for one bold font. When using this font with a font weight of 900, it looks like…
Cimoe
  • 580
  • 6
  • 21
0
votes
1 answer

html-pdf text-align: justify not working?

I'm using html-pdf in Node.js to convert html text to a pdf. text-align: left, center, and right work. But text-align: justify does not work. When text-align is justified, it exports the text aligned left. Here's the HTML code:
Page COW
  • 515
  • 13
  • 31