Skip to content

Getting Started

Installing

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

sh
npm install html2canvas-pro
pnpm / yarn add html2canvas-pro

Usage

javascript
import html2canvas from 'html2canvas-pro';

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

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

Interactive Demo

🎨 Demo Area

👋 Hello html2canvas-pro!

This is an HTML element that can be captured

🎯 High AccuracyPixel-perfect rendering
⚡ High PerformanceOptimized rendering engine
🎨 Full FeaturedModern CSS support

✨ Supports modern CSS features like gradients, shadows, rounded corners, transforms, and more