Skip to content

Webserver that takes a HTML webpage and renders it to a PDF document.

License

Notifications You must be signed in to change notification settings

mboboc/pdf-printer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HTML to PDF printer service

A headless browser in a Docker container that can login to a platform and print any URL to a PDF. It loads credentials for the platform user from environment variables.

Setup

The container can be built and started from the project's main docker-compose.yml or standalone with the following commands:

docker build -t printer .
docker run -d --name printer --restart unless-stopped -p 3000:3000 printer

API

  • GET /pdf - Check if the service is up.
  • POST /pdf?url={url} – Open url in Chrome, log in, and print to PDF. The PDF is returned in the response body.

About

Webserver that takes a HTML webpage and renders it to a PDF document.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published