Skip to content
This repository was archived by the owner on Jun 7, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

telemark/pdftemplater-webservice-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

9052df7 · May 9, 2021
Feb 19, 2016
Nov 28, 2016
Jan 13, 2017
Nov 28, 2016
Feb 19, 2016
Nov 28, 2016
Jan 2, 2019
Jan 2, 2019
May 29, 2019
Feb 19, 2016
Jan 2, 2019
Feb 19, 2016
May 9, 2021
Nov 5, 2020
Feb 19, 2016
Feb 19, 2016

Repository files navigation

Build Status js-standard-style

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