Questions tagged [html-pdf]

167 questions
0
votes
1 answer

Can't customize the name of PDF file generated by 'html-pdf' npm module

I am using html-pdf node module to generate a pdf and email via nodemailer. Everything is working file. Only One problem I am facing right now is that I can't set the name of my pdf file generated. I am attaching the code for generate pdf…
Usama Tahir
  • 1,707
  • 3
  • 15
  • 30
0
votes
0 answers

PDF is cutting down from right when exporting using node js html-pdf

I am having a task in my project to convert a html file into pdf. It has been done successfully using html-pdf. But the problem is when I am running this in my localhost the pdf coming fine but if I am try this same at our development server then…
user2439124
  • 291
  • 1
  • 3
  • 16
0
votes
2 answers

Phantomjs PDF output shows chinese characters as blank

I'm using Phantomjs 2.1.1 on ubuntu 16.04 to generate PDF files out of HTML (an NPM package called node-html-pdf). My problem is that Chinese charecters do not show up at all in the output PDF, whereas everything else is fine. Locally, on my Mac,…
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
  • 861
  • 9
  • 20
0
votes
1 answer

Authorize.net maven dependency conflict with YaHP Pdf creator

I am working on a project that uses : Authorize.net as a payment gateway and YaHP converter to convert HTML pages to PDF Below is my pom's portion of YaHP dependencies :
Vishal A
  • 144
  • 3
  • 17
0
votes
1 answer

HTML to PDF Causing issues With Japense Character

I am creating a pdf file with node module html-pdf. Its working fine locally. The only porblem which i am getting that its not displaying Japenese character in pdf generated on Live ubuntu server. On Localhost its displaying. Japenese character…
Naveen Kumar
  • 987
  • 11
  • 11
0
votes
1 answer

Converting html to PDF to using iText - pass external CSS as a string?

I'm following the example specified in this location to convert an existing HTML to Accessible PDF. https://developers.itextpdf.com/de/content/itext-7-examples/itext-7-converting-html-pdf/pdfhtml-accessible-pdf-creation Is there a way to pass CSS as…
RKodakandla
  • 3,318
  • 13
  • 59
  • 79
0
votes
1 answer

AWS Lambda create PDF error stream

i am trying to create a pdf and storing it from an HTML template stored in S3 using html-pdf module. I get this exception when try to lunch pdF.create Error: write EPIPE at exports._errnoException (util.js:1018:11) at WriteWrap.afterWrite…
Paride Letizia
  • 330
  • 1
  • 4
  • 23
0
votes
0 answers

When embedding a pdf, page no longer scrolls

Alternative textMy CV

So let's say I embed my pdf into my page like this, so that the entire page is the pdf document.…
0
votes
1 answer

How to add PDF attachment in SES email - Node js

I am using NodeJs to send email (through aws ses)with attachment pdf. currently I am trying add the html content inside the pdf attachment. And when I received the attached pdf, I am unable to open the pdf file. I am getting error that the file has…
Vishwa Dany
  • 327
  • 2
  • 16
0
votes
1 answer

Pass params through pipes

Scenario: i'm iterating through several .md files, converting them first in HTML and then PDF. I need the file path on one of my pipe (the pdf one) but i don't know how to do it. EDIT: I do not need to rename the files as they are piped through. I…
Dyd666
  • 705
  • 1
  • 11
  • 30
0
votes
1 answer

html-pdf and Javascript

I have been trying to dynamically generate a PDF file from my web app based on Firebase. I recently tried to use html-pdf node module to generate a pdf. But the implementation I wanted to do was to be able to generate the PDF file using a…
Ruhban Shah
  • 71
  • 1
  • 6
0
votes
1 answer

create pdf using static html using javascript

I am using angular 2 for my projects. I have my template ready for print. I want to reuse the same for my pdf also with same css. So i wrote below code to pick up the html parseHTML(html) { return new DOMParser().parseFromString(html,…
Hacker
  • 7,798
  • 19
  • 84
  • 154
0
votes
1 answer

ERROR ENOENT phantomjs with html-pdf

In AWS ubuntu 16.04, I have this error: {\"code\":\"ENOENT\",\"errno\":\"ENOENT\",\"syscall\":\"spawn /usr/local/bin/phantomjs\",\"path\":\"/usr/local/bin/phantomjs\"}" when using function pdf.create() of html-pdf 2.1.0 I use node v0.12.7 What has…
-1
votes
1 answer

Nodejs | npm : html-pdf,set image size

I'm using html-pdf to convert an SVG file to PNG, and I can't get the output image size to reflect the input size (128x128). Instead it comes with blank space (see image below). I've tried explicitly setting width and height, setting header and…
G.H.
  • 199
  • 10
1 2 3
11
12