Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 688 Bytes

getting-started.md

File metadata and controls

30 lines (22 loc) · 688 Bytes
title description previousUrl previousTitle nextUrl nextTitle
Getting Started
Learn how to start using html2canvas
/documentation
About
/configuration
Configuration

Installing

You can install html2canvas through npm or download a built release.

npm

npm install html2canvas
import html2canvas from 'html2canvas';

Usage

To render an element with html2canvas with some (optional) options, simply call html2canvas(element, options);

html2canvas(document.body).then(function(canvas) {
    document.body.appendChild(canvas);
});