forked from extern/docker
11 lines
343 B
Bash
Executable File
11 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
# This script receives two params
|
|
# Param 1: Input office file path (e.g. "/tmp/test.odt")
|
|
# Param 2: Output pdf file path (e.g. "/tmp/test.pdf")
|
|
|
|
curl -v -X POST "http://jodconverter:8080/lool/convert-to/pdf" \
|
|
-H "accept: application/octet-stream" \
|
|
-H "Content-Type: multipart/form-data" \
|
|
-F "data=@$1" > $2
|
|
|
|
exit 0 |