An open API service indexing awesome lists of open source software.

https://github.com/timoschwarzer/headless-pdf-renderer

Render PDFs from HTML using a headless Chrome instance
https://github.com/timoschwarzer/headless-pdf-renderer

Last synced: 3 months ago
JSON representation

Render PDFs from HTML using a headless Chrome instance

Awesome Lists containing this project

README

        

# headless-pdf-renderer

This is a simple HTTP server that offers an endpoint to render
HTML to PDF using Google Chrome with Puppeteer.

### Usage

The default Dockerfile installs all dependencies and runs as
an unprivileged user with Chrome in sandboxed mode.
You can reach the API at `/render` on port 8082.

See my blog post for more usage information: https://blog.timo.page/rendering-html-to-pdf-in-laravel-and-docker