Skip to main content
The 2024 Developer Survey results are live! See the results

Questions tagged [html2canvas]

html2canvas is a JavaScript HTML-rendering library that lets you take "screenshots" of webpages based on the DOM.

html2canvas
0 votes
0 answers
9 views

D3 Sankey SVG to PNG react.js convertation strange behaviour

guys, experiencing very weird behaviour during converting SVG Sankey diagram made wth D3.js to .png image. here is the maximum simplified code - https://github.com/romangordeew/svg-test Here are the ...
Romanoti's user avatar
  • 1,267
0 votes
0 answers
29 views

html2pdf rendering partial DOM

I am using the html2pdf JS library to generate a PDF page with a title with a table. function generatePDF(form_id, user_id, title) { console.log('Ready'); var element = document.getElementById(...
ffabrice's user avatar
0 votes
0 answers
47 views

SVG rounds edges with large stroke-width

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,267
-1 votes
0 answers
18 views

Using html2pdf the in case of more than 1 pages content is cutting

I am using html2pdf to create PDF from HTML, with the following configurations for html2pdf still i am getting cut of text at the bottom and top of the pages as follow: Here is my configuration to ...
Shoaib Fareed's user avatar
-1 votes
0 answers
16 views

Accurately Capture DOM Element as JPG/PNG in Different Environments?

How to Accurately Capture DOM Element as JPG/PNG in Different Environments? I'm developing a resume generator app and need to capture a specific DOM element (containing the resume) as an image in JPG ...
Muhammad Sarim's user avatar
0 votes
1 answer
56 views

Use of html2canvas in pdf-lib with JavaScript

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
0 answers
35 views

Html2canvas push text outside of con

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
85 views

Download PDF Failing

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
  • 475
-1 votes
0 answers
19 views

How can prevent scrolled to the top when i use Html2Canvas

I am using html2canvas library, for take photo and download photo. But I see following code preventing my webpage going down. Like "window.scrollBy(0, 500);" related all code not working. ...
wowfi pax's user avatar
0 votes
0 answers
51 views

PNG images getting cropped using jspdf and html2canvas library

When I click the download button to generate the PDF, everything is downloaded correctly except for PNG images, which are getting cropped. SVG images are downloaded as expected. I’m attaching a ...
Tanishq Agarwal's user avatar
0 votes
0 answers
43 views

I want to export a PowerPoint presentation using HTML2Canvas in Angular

I want to export a PowerPoint presentation using HTML2Canvas. The export works when I have only one gridster-item, but it doesn't work when I have two or more. Can you help me fix this issue? Even ...
Subash P's user avatar
0 votes
0 answers
11 views

html2canvas ignores mat-label since material 15

I use html2canvas for creating a pdf-documunent. Since material version 15 the mat-label in the form-field is not visible in the pdf anymore. This is the usual structure of form-field with label: <...
Tweety's user avatar
  • 11
0 votes
1 answer
41 views

Set background color of canvas with html2canvas

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
42 views

Import module ts: Uncaught TypeError: Failed to resolve module specifier "html2canvas". Relative references must start with either "/", "./", or "../"

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
0 answers
28 views

Not able to download different tab components data containing graph data in pdf format

I have two tabs with different graphs created using chart.js. TabOne.vue <template> <div class="tab-content tab-one" :class="{ active: isActive }"> <h3>Tab ...
ThejasNS Shetty's user avatar

15 30 50 per page
1
2 3 4 5
122