Welcome to the Fast HTML to PDF, Screenshots, and Video API! 🚀
This is a lightweight version of the software used at html2pdfapi.com.
It provides a basic yet performant wrapper along with additional features to enhance the standard Puppeteer experience.
✅ Generate PNG images from any URL
✅ Generate PDFs from any URL
✅ Generate Videos from any URL with smooth animation
✅ Support for custom headers (like Authorization)
✅ Support to render Lazy animations
✅ Additional support for blocking: Cookies, Ads, Trackers, Banner
✅ High-Performance webserver
✅ Extended and simplified API wrapper to Puppeteer
For usage in commercial services, please refer to the license.txt
file in this repository.
Note: License is not enforced, but we are a small team, and any support to further develop this product would be greatly appreciated! 🙏
Use the Playground at html2pdfapi (a free account is required), to create the API request in your favorite language.
You can omit the apiKey
parameter.
The Saas solution of our service provides out-of-the-box async support so that you don't have to implement your own.
There are many libraries you can use to achieve it, it depends on the language you are using, this is a very lightweight and versatile solution if you are looking for a simple, yet performant solution.
To get started, run the following commands:
npm i
npm run dev
- Docker installed on your system
To build the Docker image, run the following command in the project root directory:
docker build --platform linux/amd64 . -t render
To run the Docker container, use the following command:
docker run --platform linux/amd64 -p 3000:3000 render