docker/mod/bbb-web/office-convert.sh

11 lines
343 B
Bash
Raw Normal View History

2021-04-02 18:23:05 +02:00
#!/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