mirror of
https://github.com/bigbluebutton/docker.git
synced 2024-11-29 03:23:18 +01:00
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 |