Skip to content
This repository has been archived by the owner on Apr 21, 2023. It is now read-only.

swisscom/docker-weasyprint

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

docker-weasyprint

Build Status

Weasyprint as a microservice in a docker image.

Usage

Run the docker image, exposing port 5001

docker run -p 5001:5001 aquavitae/weasyprint

A POST to port /pdf on port 5001 with an html body with give a response containing a PDF. The filename may be set using a query parameter, e.g.:

curl -X POST -d @source.html http://127.0.0.1:5001/pdf?filename=result.pdf

This will use the file source.html and return a response with Content-Type: application/pdf and Content-Disposition: inline; filename=result.pdf headers. The body of the response will be the PDF.

In addition /health is a health check endpoint and a GET returns 'ok'.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 91.9%
  • Dockerfile 6.3%
  • HTML 1.8%