What is H2P?
H2P is a simple and fast service for converting HTML to PDF using Puppeteer.
It’s made to be easy to use in any setup, especially Docker-based environments. H2P is open-source and free for personal and commercial use—without any license fees.
Why use H2P?
Many popular HTML-to-PDF libraries are only free for open-source projects.
If you want to use them in commercial apps, you often need to pay a license fee or expose your codebase. This is a problem for companies and developers who want to:
- generate PDFs from HTML,
- keep their code private,
- and avoid extra costs or legal limits.
H2P solves this.
It gives you a license-free, Docker-ready way to convert HTML to PDF using standard tools.
Features
- Convert raw HTML into clean PDF documents
- Send POST requests with HTML and Puppeteer-style options
- Run with Docker using a simple compose file
- Fully open-source, no license fees
- Free for commercial use
What is Puppeteer?
Puppeteer is a Node.js library that provides a high-level API to control Chromium or Chrome over the DevTools Protocol.
It is often used to generate PDFs, take screenshots, and test websites in a real browser.