Skip to content

sl45sms/fio2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fio2pdf

Docker Service, Convert Form Submission to PDF

build

docker build -t skarvelis/fio2pdf:1.0 .

run

You can use enviroment variables

docker run -e FORMIO_ADMIN_EMAIL="[email protected]" -e FORMIO_ADMIN_PASSWORD="something" -p6112:6112 -d skarvelis/fio2pdf:1.0

or a config file

docker run -v ${PWD}/config.json:/config.json -p6112:6112 -d skarvelis/fio2pdf:1.0

  • look at config.json.template for available variables.

usage

You have to post the form and submition id,for example:

{
"submission":{
        "_id":"5b44c168347456002cd7b425",
        "form":"5b37565f076e80002c4969f6"
    }
} 
curl --header "Content-Type: application/json" \
  --request POST \
  --data '{"submission":{"_id":"5b44c168347456002cd7b425",form":"5b37565f076e80002c4969f6"}}' \
  https://localhost:6112/ -o form.pdf 
  • note the / at the end!

About

Docker Service, Corvert Form to PDF

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published