Microservice to render POD-Templated ODT-Files into PDFs given the contextual data.
It's a post to /render/template/API_KEY with a json payload looking like this:
{
template: {
url: "http://something.com/file.odt",
headers: {
// optional headers to pass through to requests
"X-AUTH-EXTRA": "SECRECT"
},
// any extra data is passed to the requests.get
auth: ["A", "B"]
},
format: "PDF",
// optional support for the target format. Default: PDF.
}
Easiest to just deploy with docker. Just run the following:
export API_KEY=`tr -dc A-Za-z0-9_ < /dev/urandom | head -c 16 | xargs`
docker run --name odt2pdf -p 5000:5000 -e API_KEY=$API_KEY hackership/odt2pdf
echo "You can now access your odt2pdf server at http://localhost:5000/"
echo "And the API key is $API_KEY"
Content type
Image
Digest
sha256:1279aefd4…
Size
428.3 MB
Last updated
over 11 years ago
docker pull hackership/odt2pdf