awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
eKoopmans avatar

eKoopmans/html2pdf.js

0
View on GitHub↗
4,880 stars·1,468 forks·JavaScript·MIT·13 views

Html2pdf.js

html2pdf.js is a client-side JavaScript library used to convert HTML elements and webpages into downloadable PDF documents. It operates entirely within the browser, removing the need for a backend server to generate files.

The library employs a conversion pipeline that renders HTML to a canvas before generating the final PDF layout. This process includes the ability to preserve active hyperlinks by overlaying clickable regions on anchor tags and managing page breaks through specific style rules or selectors.

Users can configure document appearance through settings for page margins, filenames, and image quality. The conversion process is managed via a promise-based workflow, allowing for sequential processing steps and the insertion of custom functions to modify the data flow.

Features

  • Client-Side PDF Generators - Provides the core capability to generate PDF documents entirely within the browser from HTML or canvas content.
  • Web-to-PDF Converters - Renders web pages and HTML content into static PDF documents using a browser-based approach.
  • HTML to PDF Converters - Transforms web-based HTML and CSS layouts into portable PDF files directly in the browser.
  • Web Content Export Tools - Converts specific HTML elements or full webpages into portable PDF files for users to download.
  • Client-Side Conversion Engines - Executes the entire HTML-to-PDF conversion pipeline in the browser using JavaScript without server round-trips.
  • HTML-to-PDF Canvas Renderers - Implements a conversion pipeline that renders HTML to canvas before generating the final PDF layout.
  • Canvas Rasterizers - Converts HTML elements into pixel-based canvas images as an intermediate step before PDF generation.
  • DOM-to-Canvas Renderers - Translates the current DOM tree and styles into a canvas-based pixel representation for consistent rendering.
  • PDF Hyperlink Overlays - Preserves active hyperlinks by calculating anchor coordinates and overlaying clickable regions on the final PDF.
  • Page Break Management - Allows the injection of manual page breaks using CSS style rules to prevent content splitting across pages.
  • Visual Layout Controls - Allows adjusting page margins and image quality to define the visual appearance of generated documents.

Star history

Star history chart for ekoopmans/html2pdf.jsStar history chart for ekoopmans/html2pdf.js

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Frequently asked questions

What does ekoopmans/html2pdf.js do?

html2pdf.js is a client-side JavaScript library used to convert HTML elements and webpages into downloadable PDF documents. It operates entirely within the browser, removing the need for a backend server to generate files.

What are the main features of ekoopmans/html2pdf.js?

The main features of ekoopmans/html2pdf.js are: Client-Side PDF Generators, Web-to-PDF Converters, HTML to PDF Converters, Web Content Export Tools, Client-Side Conversion Engines, HTML-to-PDF Canvas Renderers, Canvas Rasterizers, DOM-to-Canvas Renderers.

What are some open-source alternatives to ekoopmans/html2pdf.js?

Open-source alternatives to ekoopmans/html2pdf.js include: alvarcarto/url-to-pdf-api — This project is a browser rendering service and headless Chrome PDF generator built on Puppeteer. It functions as a… bubkoo/html-to-image — html-to-image is a JavaScript library and client-side screenshot utility that transforms DOM elements into image… tsayen/dom-to-image — dom-to-image is a programmatic tool for capturing the visual state of HTML elements as downloadable images or raw… mpdf/mpdf — mPDF is a PHP library that transforms UTF-8 encoded HTML and CSS into formatted PDF documents. It serves as a PDF… bafs/gutenberg — Gutenberg is a CSS print formatting framework and web-to-PDF layout engine. It provides a system for managing… niklasvh/html2canvas — This project is a browser-based rendering engine that captures visual snapshots of web page elements. It functions as…

Open-source alternatives to Html2pdf.js

Similar open-source projects, ranked by how many features they share with Html2pdf.js.
  • alvarcarto/url-to-pdf-apialvarcarto avatar

    alvarcarto/url-to-pdf-api

    7,114View on GitHub↗

    This project is a browser rendering service and headless Chrome PDF generator built on Puppeteer. It functions as a backend tool for converting web pages and raw HTML content into PDF documents and screenshots. The service distinguishes itself through browser session control, allowing for the injection of session cookies and the configuration of navigation timeouts to handle authenticated pages. It also includes viewport-based layout scaling to adjust browser dimensions and device scale factors during the rendering process. The broader capability surface covers HTML content export and automa

    HTMLchromeheadlessheadless-chrome
    View on GitHub↗7,114
  • bubkoo/html-to-imagebubkoo avatar

    bubkoo/html-to-image

    7,033View on GitHub↗

    html-to-image is a JavaScript library and client-side screenshot utility that transforms DOM elements into image formats such as PNG, JPEG, or SVG. It functions as a DOM-to-canvas renderer, using the browser's native rendering capabilities to convert document nodes into rasterized images or canvas elements. The library leverages SVG foreignObject serialization to capture live DOM content, which is then rasterized into pixel-based formats. It includes specialized exporters for generating binary Blobs or raw RGBA pixel data as typed arrays. The tool provides configurations for image appearance

    TypeScriptcanvasdataurldom
    View on GitHub↗7,033
  • tsayen/dom-to-imagetsayen avatar

    tsayen/dom-to-image

    10,777View on GitHub↗

    dom-to-image is a programmatic tool for capturing the visual state of HTML elements as downloadable images or raw image data. It functions as a DOM to image converter that renders specific nodes as base64 data URLs, binary blobs, or pixel arrays. The library transforms HTML elements into raster or vector images by utilizing the HTML5 canvas API. It can retrieve raw byte arrays of a DOM node for low-level image manipulation as an RGBA pixel data extractor. The project covers web content rasterization and the generation of dynamic screenshots from live HTML content. It handles the conversion o

    JavaScriptcanvascssdom
    View on GitHub↗10,777
  • mpdf/mpdfmpdf avatar

    mpdf/mpdf

    4,693View on GitHub↗

    mPDF is a PHP library that transforms UTF-8 encoded HTML and CSS into formatted PDF documents. It serves as a PDF generation engine and document architect capable of converting web pages and HTML forms into professional files. The project is distinguished by its multilingual rendering capabilities, providing comprehensive support for bidirectional text, right-to-left scripts, and CJK languages using Unicode font embedding and OpenType layout processing. It further enables professional print-ready design through advanced color modeling in CMYK, precise page dimensioning, and compliance with PD

    PHPcjkcsshtml
    View on GitHub↗4,693
  • See all 30 alternatives to Html2pdf.js→