Skip to main content

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
28 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
14 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
15 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
54 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
33 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
49 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
42 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
39 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
0 votes
0 answers
12 views

Is there any way in html2Canvas to append elments but they should not be append on the browser?

I am using html2Canvas package to take the screenshot and I want to add some extra text in image but if i did this its also appending the text in my div /section tag and i don't want that text in that ...
Shyam's user avatar
  • 1
0 votes
1 answer
33 views

html2canvas download the image like desktop view instead of mobile view for dom content reactjs

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 ...
Sunil Garg's user avatar
  • 15.4k

15 30 50 per page
1
2 3 4 5
122