Most voted "html2canvas" questions
html2canvas allows you to take photos of DOM elements using the canvas API, and you can take pictures of the full page. The generated image is not 100% exact because it is not a real screenshot, what it does is redesign the elements.
Learn more…19 questions
Sort by count of
-
3
votes1
answer3318
viewsHow to improve the quality of the saved image?
I use the tool html2canvas in a project to print a certain area of my code and save it as an image. I tried saving in the following formats, JPEG and PNG, but both are of the same quality, I would…
-
2
votes0
answers106
viewsCanvas2image script does not work on Chome
Good afternoon to all, I’m developing an e-mail signature generator here for the service. I took a ready script that uses 'html2canvas' and 'canvas2image' to transform the code into an image and…
-
1
votes1
answer1463
viewsHow to convert an html page to Image and download IE and Safari?
I need to convert an HTML page into an image and download that image. I got it for Chrome and Firefox, but in IE it doesn’t work at all in any of the versions. In Safari 5 I could not download, when…
-
1
votes1
answer98
viewsupdate Hidden value before Submit
I’m trying to update two hiddens with a Base64 code coming from the plugin html2canvas, but it does not update and on the other page where the form is received picked up by $_POST the two fields…
-
1
votes1
answer55
viewsHow to add a header to a captured image with html2canvas?
I am trying to issue a subscription voucher on a page, and in it you have the option to save the voucher as image, on the voucher page DO NOT have the header with the company logo and the name of…
-
0
votes3
answers548
viewsSave image to desktop with html2canvas
How do I save the image to the desktop or some other folder on the user’s machine ? I took the very good example of how to generate the image and save to a server folder here: Take Screen print and…
-
0
votes1
answer1066
viewsDiv for canvas
Hello, I’m having a problem turning a div into canvas, because inside this div has an img, and src contains the FULL image url, with http, when it is a normal image that is already on the server I…
-
0
votes1
answer182
viewsImage dimension rendered by html2canvas
I have a script that creates an image of a div using html2canvas and would like to know if there is any way to change the whidth and the height of that image. <div id="MinhaDiv">Conteúdo a ser…
-
0
votes0
answers565
viewsJS PDF - Export with html Canvas
I am using Jspdf now with the method that it takes the screen print and then exports this print to pdf , but when generating the pdf I would like to leave more adjusted the screen. When I use…
-
0
votes1
answer996
viewsTrouble Generating PDF with hidden content with jsPDF and html2canvas
I am trying to generate a PDF with js using html2canvas and jsPDF. When the content is being viewed, everything works 100%, but I need this content to be hidden. I’ve tried: - display: none; -…
-
0
votes1
answer520
viewshtml2canvas Image in div
I have the following div <div class="jumbotron" ng-app> <div class="row"> <div class="col-md-4"> <input type="text" ng-model="yourName" placeholder="Seu nome"> <br />…
html2canvasasked 6 years, 11 months ago Marceloawq 971 -
0
votes0
answers74
views<img> inside div does not appear when used canvas2image
I’m using a script to save a div in png. Inside this div has one , but this image does not appear in the final result, after saving. The code I’m using is this $(function() {…
-
0
votes1
answer140
viewsHtml2canvas ASP.NET Core
I am trying to add html2canvas to my ASP.NET Core web site. In the documentation, they say to use: npm install html2canvas When I execute this command, the html2canvas is installed in:…
-
0
votes0
answers191
viewsPage loading error when exporting a PDF file using html2canvas and jsPdf
Good afternoon I am developing a system that creates one or more HTML templates and exports them to PDF for creating posters. It takes the html area for each poster, converts it to image with…
-
0
votes0
answers363
viewsScreenshot Capture (Map)
Guys I put a map on my site and I want to make a button that generates a png image when clicked on it, I used html2Canvas but when I click it can not save the image of the map. Code used:…
-
0
votes1
answer846
viewsUncaught (in Promise) error Error: Element is not Attached to a Document when trying to generate a PDF of an HTML page
I am trying to generate a PDF of a page made in HTML. This page has a chart created with Chart Js. I would like to click on the button to generate a PDF of the chart. However, clicking the Button…
-
0
votes1
answer66
viewsHtml2canvas file name to leave with date/time
Add date/time when the "html2canvas" file exits. Html is ok, and only ñ brings the file name to date/time. Type: image_datatime.jpg $('#call').click(function(){ html2canvas($('#lista'), {…
-
0
votes0
answers29
viewsRendering problem with html2canvas
I integrated my system to generate an image from a certain table. But every time I click on "Generate Image" a different image appears (images below, the first one is correct, as it should always…
-
-1
votes0
answers17
viewsPDF does not capture all html
I’d like a hint, I don’t know if anyone’s been there. I have a JS code, which generates pdf, but... when you download the pdf, it doesn’t take all the html, generates all the pages but only prints…