Skip to main content
Filter by
Sorted by
Tagged with
1 vote
0 answers
186 views

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 ...
Hiếu Bùi Quang's user avatar
1 vote
0 answers
141 views

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&...
none's user avatar
  • 101
1 vote
0 answers
94 views

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 ...
joacoiudica's user avatar
0 votes
1 answer
165 views

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 ...
JordanS's user avatar
1 vote
0 answers
76 views

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"). ...
Anudeep T's user avatar
0 votes
0 answers
220 views

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. ...
Amanda's user avatar
  • 1
0 votes
0 answers
46 views

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 ...
Mr.Price's user avatar
  • 137
1 vote
1 answer
201 views

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&...
Barry Andrews's user avatar
-3 votes
2 answers
307 views

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 ...
rohan murali's user avatar
0 votes
1 answer
84 views

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 ...
Clueless's user avatar
0 votes
1 answer
149 views

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) ...
Aren Vanyan's user avatar
0 votes
1 answer
177 views

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 ...
NinaNa's user avatar
  • 1,657
0 votes
0 answers
105 views

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 ...
user3523426's user avatar
1 vote
0 answers
178 views

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 ...
hamed elghoul's user avatar
0 votes
1 answer
585 views

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 ...
Marioko53's user avatar
0 votes
0 answers
24 views

It might be that the snippet does not work remotely but running it from a local file works. The problem is that the generated picture is not the light box (as shown in the original) but covered by ...
user26918948's user avatar
0 votes
0 answers
106 views

I am using the html2pdf.js library in my Node.js application to generate a multi-page PDF from HTML content. The content is generated dynamically and displayed in a #slideContainer div. I want to set ...
Arif Ahmed's user avatar
2 votes
0 answers
122 views

I have created a camera app where I send the pictures to a div and ultimately printing that div. const handlePrint = async () => { const grid = document.getElementById("image-grid"); ...
Anshu Patel's user avatar
0 votes
0 answers
308 views

I am using jsPDF for angular and created custom config file and added this code, module.exports = { // ... externals: { canvg: "canvg", html2canvas: "html2canvas&...
Onkar Meherwade's user avatar
1 vote
1 answer
112 views

<div id="content" #content> <div class="skill-view-head"> <div> <label for="emp-id">Emp ID: </label> ...
Alvaro's user avatar
  • 150
1 vote
1 answer
36 views

I am using ant design Bar graph , I am trying to export Bar graph to excel worksheet. I tried to convert <Bar/> from UI to Object using html2canvas. Currently I am getting the converted image ...
Shirish's user avatar
  • 39
0 votes
2 answers
229 views

I am trying to create/download pdf with jspdf using html2canvas. I have certain div made circle around and colored with some value inside. When I download pdf in certain cases this is cut. and is in 2 ...
Presha's user avatar
  • 104
0 votes
1 answer
169 views

I am using html2pdf.js for downloading pdf. I have prepared an html of a form which I want to download as pdf. It works fine with chrome but with firefox I unable to understand why those text ...
Santosh's user avatar
  • 3,897
0 votes
1 answer
82 views

I have an HTML table below there are some social media icons, by using html2Pdf Package I have converted the table and icons into a PDF, and after the PDF is being generated I am not being redirected ...
Nevin Zachariah's user avatar
0 votes
1 answer
127 views

I have a few images, I am arranging them in a grid and trying to print, which works fine. Now, I added a tailwind CSS class 'grayscale' to the div and even the image and tried to print again, but it ...
Anshu Patel's user avatar
0 votes
1 answer
306 views

I am using html2canvas and jsPDF for PDF generation. The downloaded PDF should look like the preview of the document, but I am facing issues with the table layout. Specifically, the text in the table ...
Srushti Sonawane's user avatar
2 votes
1 answer
593 views

I am trying to export visible parts of a webpage to PDF using JavaScript. My content includes elements like tables and charts that often have scrolled views. I've attempted to use both html2canvas and ...
Kristina Garanchuk's user avatar
0 votes
0 answers
145 views

I am trying to use the html2canvas within a chrome extension I am building. For my chrome extension I am directly injecting JS so that the user can toggle the extension so it does not go out of focus ...
Vaughn Hatfield's user avatar
0 votes
2 answers
97 views

$("#download-pdf-template").on("click", function(e) { overallwidthcover = parseFloat(Number(overallwidthcover).toFixed(3)); overallcoverhegiht = parseFloat(Number(...
WonderShare's user avatar
0 votes
0 answers
176 views

I'm trying to use html2canvas library (version 1.4.1) with React 17 to download html as a picture and pdf. I think there is a problem with box-shadows. Here is the code I use to download pictures and ...
Manuel Raso's user avatar
-1 votes
1 answer
84 views

I have a Wordpress site that has a configuration product with a 3d iframe in it. When they use the page and design what they want via applying materials to that 3d image and selecting other variations ...
Joe Bifano's user avatar
5 votes
1 answer
194 views

I use the html2canvas library to capture screenshots by passing in a className and saving the image file as a blob. However, when the image is saved or downloaded, there is an issue with elements that ...
a canh sad chim's user avatar
1 vote
2 answers
206 views

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 ...
Sathya's user avatar
  • 51
0 votes
2 answers
147 views

I am working on an Angular node-based application, the nodes in which are html tables containing <textarea>. When I try to generate project previews using html2canvas, neither the text in <...
Gleb Kiva's user avatar
0 votes
2 answers
84 views

I am using jsPDF and want to generate content from multiple divs. My JavaScript is detecting the divs but is rendering them empty. Why is that? Here is my code: const { jsPDF } = window.jspdf; const ...
Gregor O's user avatar
0 votes
0 answers
62 views

I met a problem during sankey diagram generating with d3 and screenshoting it with html2canvas. D3 looks fine with this code of links: <svg id="svg" width="740" height="400"> <g fill="...
Romanoti's user avatar
  • 1,327
0 votes
1 answer
350 views

Hi I have a few questions regarding the use of html2canvas. I am learning JavaScript and I am making a platform that helps to provide budgets that are downloaded in PDF format. I need the html2canvas ...
Franco Kohler's user avatar
0 votes
1 answer
411 views

I have a simple div with a paragraph in it. when the pdf is generated, the paragraph is pushed down outside the div I'm also using DaisyUI <div class="bg-blue-50"> <p class=&...
Ngalla Juke's user avatar
2 votes
0 answers
116 views

The following urls set in the BrowserComponent uses JavaScript to converts HTML to a PDF which can be downloaded by clicking a button. This works in a web browser, but it doesn't download in Codename ...
Eric's user avatar
  • 622
0 votes
1 answer
187 views

I'm using html2canvas to take screenshots from elements in a page html2canvas(element).then(canvas => canvas.toDataURL()); Works find, but the only thing that goes wrong is that the background ...
Jeanluca Scaljeri's user avatar
0 votes
2 answers
600 views

This is my first time doing a webapplication and therefore my first time using typescript / javascript / node modules. I'm using Webstorm and vanilla html, css and typescript. Everything went fine so ...
Bromanius's user avatar
0 votes
2 answers
488 views

In reactjs I am using html2canvas library to capture the screen and download it as an image. Here is the code const generateImage = async () => { const element = contentRef.current; const ...
Code Guru's user avatar
  • 15.8k
1 vote
1 answer
213 views

I have been generating PDF with Html2canvas for the las 12 months. I resently upgrade to Angular 18. I changed all components to standalone. However when generation a pdf (the generating pdf worked ok)...
Guy Gallant 4321's user avatar
1 vote
1 answer
117 views

I'm drawing an image onto a canvas and trying to apply red dashed outline of approximately 2px but end up with solid red outline. The source image is a .png image with top and bottom texts as part of ...
Tanveer Anjum's user avatar
0 votes
1 answer
85 views

I am working on a project and I am so stuck. I need help. Overview of the project: I am building a project that takes in a web address, goes to the web address, gets all of the images links in that ...
Emeka Dav's user avatar
1 vote
1 answer
81 views

This is the below code where I am using html2canvas to convert html to pdf . Here pdf download in medium screens downloading as per expected but when same is rendered from large screens. In pdf few ...
Shri Raksha Dk's user avatar
2 votes
0 answers
138 views

I need to generate PDF from my web site page. I have used JSPDF and HTML2Canvas for the same. When I have tried to generate the PDF with large amount of data and image it has split image in 2 diffrent ...
Yash Keraliya's user avatar
0 votes
1 answer
177 views

React JS I am using html2canvas to convert a div to image and then pdf, however in the image and pdf view the background color of elements is shifting and hence the bottom part of text is being ...
Harsh Master's user avatar
0 votes
0 answers
113 views

I am trying to build a tool where it is possible to create your own personal poster. The users can modify their poster with different images, colors, text, ... All of it is contained in a single <...
Jan D.M.'s user avatar
  • 2,758
0 votes
1 answer
164 views

Please refer below example: https://stackblitz.com/edit/angular-ivy-eqvhys?file=src%2Fapp%2Fapp.module.ts,src%2Fapp%2Fapp.component.html,src%2Fapp%2Fapp.component.ts,package.json Pleas help me to ...
Sathya's user avatar
  • 51

1
2 3 4 5
36