Upload .docx-template and data. Get formatted pdf in return
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
config
handlers
routes
test
uploads
.dockerignore
.gitignore
.travis.yml
Dockerfile
LICENSE
README.md
index.js
package.json
renovate.json
server.js
standalone.js

README.md

Build Status js-standard-style Greenkeeper badge

pdftemplater-webservice-docker

Upload .docx-template and data. Get formatted pdf in return

curl \
  -F "title=This is my title" \
  -F "description=Love my description" \
  -F "body=My body is beautiful" \
  -F "file=@test/data/testdoc.docx" \
  http://192.168.99.100 > converted.pdf

returns converted.pdf

Docker

Build the image

$ docker build -t pdftemplater .

Run the image

$ docker run -d -p 80:3000 --name pdf pdftemplater

or use the prebuilt from hub.docker.com

$ docker pull telemark/pdftemplater-webservice-docker

and the run the image

$ docker run -d -p 80:3000 --name pdf telemark/pdftemplater-webservice-docker

License

MIT

Robohash image of pdftemplater-webservice-docker