A small stand alone WeasyPrint service
/convert/stream
- Given an input string, streams pdf to client/convert/base64
- Given an input string, will return converted pdf as base64 string
Both endpoints accept both a url
or an html
string as the incoming document
git clone https://github.com/dills122/weasyprint-docker.git
Once the repo has been cloned you will need to build the docker container
sudo docker build -t "repo:tagHere" ./
To run as a background process to test the service
sudo docker run -p 8080:8080 "containerId" &
If you needed to run the container and test stuff inside
sudo docker run -it "containerId" /bin/bash
if you wanted to change the api without worrying about docker
node index.js # npm start