1,790 questions
1 vote
0 answers
139 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 ...
1 vote
0 answers
132 views
Text Cut Off and Extra Spacing When Exporting HTML to PDF with html2pdf
When exporting my HTML content to PDF using html2pdf, the text inside the element appears cut off and there is an unusually large space between elements. Specifically: Inline-block elements (<span&...
1 vote
0 answers
83 views
html2canvas and jsPDF not rendering lightning combobox values in LWR app
We have a web app running in LWR using LWC and Node.js as backend. We want to implement a "export as PDF" functionality for every of our pages. After some time of research I decided to use a ...
0 votes
1 answer
157 views
html2Canvas image pasting either blurry or extra large
I am working on a email signature creation website for my company. I have the background image of the email signature on the website, and am using the canvas to write the text over the image. The ...
1 vote
0 answers
75 views
Why does canvas.toDataURL() return a very short base64 string when exporting Chart.js canvas?
I'm using Chart.js to render a line chart inside a <canvas> element. After the chart is rendered, I want to export it as a base64 PNG string using canvas.toDataURL("image/png"). ...
0 votes
0 answers
201 views
jsPDF html method - autoPaging option with the 'text' mode causes issues with text styling
Good day, I wanted to ask a question related to using the html method of jsPDF to generate a PDF based on the html contents of a page. I am using Vue 3 for my frontend and Laravel 10 for my backend. ...
0 votes
0 answers
45 views
`html2canvas` produce cropped content with added artefacts
I want to use html2canvas to convert katex math formula (2x^2) to canvas. The original output (without canvas) looks like this: while the output with canvas looks like this: So formula is truncated ...
1 vote
1 answer
194 views
Generate PDF using html2canvas and jspdf from hidden div
I have code for converting a div to pdf and I want to add the ability to have the div hidden by setting style="display:none". <div id="contentsheet2" class="contentgrid&...
-3 votes
2 answers
284 views
How to Capture Full AG Grid (Including Off-Screen Content) as an Image? [closed]
I'm working on a React application that utilizes AG Grid to display large datasets with over 20 columns and 10,000 rows, necessitating both horizontal and vertical scrolling. I need to capture the ...
0 votes
1 answer
82 views
HTML to PF via jsPDF, ▶ character gets corrupted
I'm trying to convert an HTML element which contains the ▶ character (U+25B6), but in the PDF output it's represented it as %¶. I read that embedding fonts in to jsPDF will solve it, but maybe it is ...
0 votes
1 answer
139 views
Getting bold math expression when converting MathJax to png via html2canvas
I am using MathJax to render math expresion in the text and want to convert it to pdf. But when I open pdf the expresion is like bold or it looks like two expresions are overlaped. (below is my code) ...
0 votes
1 answer
172 views
How to set/force orientation for images when generating a pdf from html?
I'm using jsPdf to generate a PDF from an HTML output in react. The HTML contains base64 images taken by mobile devices. In the HTML they are displayed correctly, but in the PDF they are rotated in ...
0 votes
0 answers
101 views
How to fix HTML2PDF bad page size
I am using HTML2PDF version 0.9.3 ( latest suggested ) for a HTML element, which contains couple of DIVs with page-break inside prohibited. The page looks like the first picture below. It seems ...
1 vote
0 answers
170 views
I'm trying to implement the Web Share Api functionality on my web app but when i test it on my iphone 14 on chrome, is not working
Has anyone had the same issue? I'm implementing the Web Share API and it works when I tested it using my desktop but when I tested it using my iPhone 14 it works on Safari but when I use Chrome, the ...
0 votes
1 answer
550 views
Html2Canvas not working on mobile devices
I have even added some delay on mobile devices to give time to process, change the image format to reduce processing effort and resolution size, I have change the viewport and 10% of the times works ...