635 questions
1 vote
0 answers
136 views
Is including html2canvas-pro, jsPDF, and html2pdf scripts enough to replace html2pdf.bundle.min.js? (TypeError: r is not a function)
I’m trying to replace the old html2canvas with html2canvas-pro because the older version crashes when encountering modern CSS color formats like oklch() or display-p3(). My web page previously worked ...
0 votes
1 answer
50 views
How can I customize style inside vu3Html2pdf?
How can I customize style inside vu3Html2pdf becuase when download it show incorrect template like blank at the 1 page and show my template at the second page. It almost seems like it has padding or ...
0 votes
0 answers
78 views
When using html2pdf to convert HTML to PDF, the CSS styles are lost
Problem description: I am using html2pdf to convert HTML to PDF, but I found that some CSS styles (such as flexbox) are not rendered correctly. I expected the PDF to maintain the same layout as the ...
0 votes
0 answers
25 views
Implementing accurate dynamic page numbers in table of contents with html2pdf.js
I'm trying to generate a PDF with html2pdf.js that includes a table of contents with accurate page numbers for each section. My current implementation isn't working correctly - the page numbers in the ...
0 votes
0 answers
57 views
FAILED: ReferenceError: html2pdf is not defined with Blazor
I use html2pdf.bundle.min.js in my Blazor project. I imported it in my main html of the project, before the main.js. In the network tab in the browser, I see that the html2pdf.bundle.min.js is sent ...
0 votes
1 answer
66 views
Printing datamatrix gives a blank page
Thank you for looking at my question, Using this code set up I can generate a datmatrix code to the screen, html2pdf() fires and opens an instance of acrobat but the page is blank. I have a similar ...
0 votes
0 answers
105 views
How to generate HTML to PDF using js adding a header and footer on every page in case the content overflows to next page
I tried html2pdf library which provides this capability but I am getting a lot of white space on the starting of content. Our use case needs generation of pdfs on the client side so that this works ...
0 votes
0 answers
118 views
How to use both HTML2PDF and FPDF in a multipage PDF document
I am trying to create a PDF document that is about 12 pages long. This document includes images as well as information from the database that will need to be pulled through. I am using various scripts ...
2 votes
1 answer
132 views
Custom Font-Family for Highcharts Labels Not Applied When Printing with html2pdf in Angular
I am using Highcharts in my Angular application and I have successfully changed the font-family of the axis labels using the following CSS code: .highcharts-yaxis-labels, .highcharts-xaxis-labels, ....
1 vote
1 answer
41 views
Android Itext HTML to PDF CSS on SVG work only in inline
Hi I try to use itext library (html2pdf) to convert my html into a PDF. Almost everything is fine except for SVG style. This is the part of my html that doesn't work : <style> .my-svg{ ...
1 vote
0 answers
193 views
using html2Pdf library printing table header on every page
I’m using the html2pdf library to generate a PDF from an HTML table. The table spans multiple pages, but the header only appears on the first page. How can I make sure the table header is repeated on ...
0 votes
0 answers
70 views
Discrepancy between HTML and displayed PDF version from html2pdf causing loss in styling
I am writing a JavaScript application for a website that takes a bunch of different inputs, runs calculations and gives an output. I am having issues with html2pdf losing styling in a very particular ...
1 vote
2 answers
202 views
Page is getting unresponsive while generating the export pdf button
Page is getting unresponsive while exporting the page into pdf, refer the below screenshot. Here is the stackblitz code: The below code is used to convert the chart into image which is causing the ...
1 vote
0 answers
181 views
HTML2PDF header and/or footer only on first or certain pages
The following code creates a very basic PDF from an HTML template: $template='<page backtop="10mm" backbottom="10mm" backleft="20mm" backright="20mm"> ...
0 votes
1 answer
268 views
Itext Html to PDF Arabic text broken
When i am converting html to pdf in C# the arabic text is broken and also seems to be reversed. I have tried direction rtl, adding arabic fonts. .arabic { direction: rtl; unicode-bidi: ...