ekoopmans/html2pdf.js

Client-side HTML-to-PDF rendering using pure JS.

View on GitHub ↗Jump to charts ↓

Summary Information

Updated 54 minutes ago
Type:Library / SDKCategory(s):API Development ToolsDeveloper Tools
Added to GitGenius on September 14th, 2026
Created on March 29th, 2017
Open Issues & Pull Requests: 501 (+0)
GitHub issues: Enabled
Number of forks: 1,717
Total Stargazers: 4,924 (+0)
Total Subscribers: 66 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 14.2 days
Mean response time: 156.3 days
90th percentile: 510.5 days
Tracked items: 111

Most active contributors

Sign in to see contributor activity.

How this project is maintained

100% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Three people close 62% of everything that gets resolved.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 88
New in 7 days: 0
Closed in 7 days: 0
Avg open age: 1,356 days
Stale 30+ days: 88
Stale 90+ days: 81

Recent activity

Opened in 7 days: 0
Closed in 7 days: 0
Comments in 7 days: 0
Events in 7 days: 0

Top labels

  • bug (5)
  • enhancement (5)
  • released (3)
  • question (2)
  • semantic-release (1)

Most active issues this week

No issue events were indexed in the last 7 days.

Detailed Description

html2pdf.js is a client-side HTML-to-PDF converter that renders webpages or DOM elements into PDF files entirely in the browser using JavaScript.

The tool solves the problem of generating PDFs without server-side processing by combining html2canvas for rendering HTML to canvas and jsPDF for converting canvas output to PDF format. It works entirely on the client side, meaning no backend infrastructure is required and users can generate PDFs directly in their browsers. The library provides both a simple one-line API for basic use cases and a Promise-based Worker API for advanced scenarios where individual steps of the conversion workflow need to be customized or chained together.

Developers should choose this tool when they need lightweight, client-side PDF generation without server dependencies. It suits projects where users want to export page content as PDFs without network round trips, such as report generation, invoice downloads, or document capture from web interfaces. The tool can be integrated via CDN, NPM, Bower, or as a raw JavaScript file, and it even supports execution from the browser console on pages you do not control. The library includes configurable options for image quality and type, page-break handling with multiple break modes, and progress tracking during conversion.

The project shows consistent maintenance with regular updates addressing issues and pull requests. Development activity demonstrates responsiveness to user-reported problems and a structured approach to testing and contributions.