Questions tagged [node-html-pdf]

64 questions
2
votes
1 answer

Error: Fontconfig warning: ignoring UTF-8: not a valid region tag

I have Ubuntu 18.04.1 LTS Instance running Nginx and NodeJs project, I am trying to create a PDF using html-pdf library but Its giving me following issue. Error: Fontconfig warning: ignoring UTF-8: not a valid region tag at ChildProcess.emit…
Prathamesh mhatre
  • 1,015
  • 5
  • 17
  • 32
2
votes
1 answer

Can I use phantomJS on Azure app service for linux?

I'm getting a consistent error when trying to use the html-pdf package in my node application: StatusError: Error: spawn /home/site/wwwroot/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ENOENT As far as I can tell everything is installed…
Shaun Rowan
  • 9,269
  • 4
  • 28
  • 52
2
votes
2 answers

Node.JS HTML to PDF

I want to convert the HTML to PDF for which I am using this package (https://www.npmjs.com/package/html-pdf). But in this HTML I am also getting tables and that tables can come in any position in HTML. So I want to copy the table thead to another…
Ravi Badoni
  • 87
  • 2
  • 5
2
votes
0 answers

Streaming a PDF File to the Browser Using Dynamically Generated HTML in Node.js

Okay, I see a few versions of this question out here, but I think mine goes a bit deeper than some of the others and I don't see satisfactory answers. What I Want: I have a page on a website that will have its contents frequently changed by users,…
Jonathan Bechtel
  • 3,497
  • 4
  • 43
  • 73
1
vote
1 answer

How can i use braille fonts in jsPDF or similar libs?

When I convert 'html' file into pdf, my braille text don't appears. Instead, appears "(((((((".[enter image description here](https://i.stack.imgur.com/z4czk.png) function generatePDF(){ var doc = new jsPDF('p', 'pt', 'a4'); const myFont =…
Jansen
  • 13
  • 2
1
vote
0 answers

i can't render a image in pdf-creator-node header

const options = { format: 'Letter', orientation: 'portrait', border: '0mm', header: { contents: `
1
vote
1 answer

NodeJs HTML-PDF Library
 tag cutting PDF at right page

I'm having an issue with a node libray (html-pdf). I'm trying to render html to pdf, but the PDF page is not showing correctly. When I try to insert a tag, the workflow is cutting the right side of the page, and it doesn't show the entire text. How…
Raziak
  • 360
  • 1
  • 7
1
vote
0 answers

Chart js renders with bad quality in html-pdf

I use html-pdf to generate PDF from my HTML file with script for a chart I use html-pdf without any options: return new Promise((resolve, reject) => { const html = pug.renderFile(`${this.basePath}/${dirName}/${templateName}.pug`, data); …
Drem Edys
  • 123
  • 1
  • 7
1
vote
2 answers

html-pdf package is not working on aws lambda

I have tried implementing html-pdf package in my code which is deployed at AWS lambda but getting error in it even after I have deployed the layer for html-pdf package at lambda. Below is my code: import pdf from 'html-pdf'; import AWS from…
1
vote
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…
Kleber Germano
  • 702
  • 3
  • 10
  • 25
1
vote
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…
Dayvid Kelly
  • 114
  • 12
1
vote
1 answer

Error: html-pdf: Received the exit code '127' in lambda nodejs

I am using "html-pdf" module in my lambda function. The below is my code await pdf.create(html, options).toStream(async function (err, stream) { if(err) { return err; } let fileName =…
Haris George
  • 291
  • 5
  • 16
1
vote
1 answer

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…
1
vote
2 answers

NodeJS Server pdf Document Generation Issue

I am working on an API which generates a pdf document based on an EJS template which then gets emailed to some users. When running Locally everything works as expected however when my API is pushed to heroku the pdf is generated with some odd…
d0rf47
  • 409
  • 8
  • 20
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…