Questions tagged [html-pdf]
167 questions
3
votes
0 answers
Winnovative - CSS Grid not converted correctly
I'm using the Winnovative library to convert some HTML to a PDF.
As this works great for a lot of scenarios, it seems to be having issues with CSS grids.
As I cannot share too many specifications, I can however share these images that show the HTML…

Jorrex
- 1,503
- 3
- 13
- 32
3
votes
0 answers
Nodejs how to convert an ejs file to a pdf file without changing the look of the page
hello i wrote an ejs file and i try to convert it to pdf via nodejs but the probleme is that the pdf file did not look like the html page i tryed this conversion online and i found good result this is my method
router.get("/uknow", (req, res) => {
…

Mohamed Borhene Hamedi
- 129
- 3
- 13
3
votes
3 answers
SelectToPdf html to pdf conversion makes the font size slightly smaller. There is a way to configure font size from settings?
SelectToPdf after conversion from html to pdf makes the font size they way smaller as it should be
I've compared it with some different html-pdf converters and they work as expected
Here are my converter settings
{
…

Yaroslav Smoliak
- 143
- 1
- 7
3
votes
0 answers
table of contents with reference to page when converting html to pdf
I'm using html-pdf library to convert html to pdf in nodejs.
But I have problem with table of contents, for example: when I click title 1______________ 5 on table of contents, it should auto go to page 5 of pdf file. I tried to add a tag a with…

vinh vuong hung
- 51
- 1
- 1
- 6
3
votes
0 answers
How to convert html to pdf in reactjs via frontend?
I have html stored in "a" variable
I want that html to be converted into Pdf.
I am using React-PDF component
In File key it is checking for file to be in PDF.
Please Guide me how to convert the html to pdf.
a =

user9883888
- 389
- 1
- 8
- 17
3
votes
0 answers
Reduce the size of PDF in Node
I am using html-pdf library of node to generate pdf on the client side , but the generated pdf size is extraordinarily huge , the same pdf content is being used to generate pdf using itext on the client side. The difference in the size of the pdf…

alok pratap singh
- 31
- 1
- 2
2
votes
0 answers
Why aren't my images loading now I've updated DomPDF to 2.0.3?
I just updated from a fairly old version of DOMPDF and now can't see the images which were previously generating.
This is how I'm calling the PDF generation. It generates everything on the PDF apart from the images.
require_once…

Columbian Toad
- 21
- 2
2
votes
0 answers
html-pdf library did not create pdf on heroku server
This code collects data from Airtable, and creates pdf file to download.
It works perfectly on my localhost.
But when I deploy it to Heroku server, it throws an error:
2022-10-01T10:15:17.936106+00:00 app[web.1]: error create pdf Error: html-pdf:…

shinyperson
- 29
- 4
2
votes
0 answers
Arabic letters not connected after converted from HTML to PDF
I am working on a project to transform Arabic articles text to bionic reading text, something like this website: Bionic Reading
I run user input through this function to generate the transformed text
const transform = (text) => {
let bionicText =…
2
votes
0 answers
Library html-pdf gives font as italic style
I use html-pdf to convert my html to pdf. But when I include my font as

Drem Edys
- 123
- 1
- 7
2
votes
1 answer
Add background image to each PDF page generated using html-pdf
I am using html-pdf (https://www.npmjs.com/package/html-pdf) to generate PDFs based on HTML files.
I am now trying to add background images to these PDFs. One special/additional requirement is that the first page should have another background image…

Max
- 207
- 1
- 6
- 20
2
votes
1 answer
Write EPIPE error when i generate html-pdf in docker node:12.16.3-alpine image
When i generate a PDF from HTML file using html-pdf node module, it is throwing following error (only in docker). Same code is working in local machine ubuntu 18.04
write EPIPE\n at afterWriteDispatched (internal/stream_base_commons.js:154:25)\n…

Dinesh
- 426
- 5
- 15
2
votes
1 answer
NodeJS html-pdf cutting of right side
I'm converting HTML to pdf using html-pdf; however, it is cutting the right side of the content. I grab the HTML from database and send a pdf response to the browser using express.
let htmlData = await getData(); // it returns the HTML…

myTest532 myTest532
- 2,091
- 3
- 35
- 78
2
votes
1 answer
Is there any way to convert html tags to react-pdf tags in React?
I am going to convert HTML contents to react-pdf tags using react-pdf render in React.
import {
Document,
Page,
View,
Text,
Image,
StyleSheet
} from '@react-pdf/renderer';
const styles = StyleSheet.create({
page: {
…

hotcakedev
- 2,194
- 1
- 25
- 47
2
votes
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,…

thelittlemaster
- 157
- 1
- 8