doxbuilder [-c configuration.yml] [-p port]
- Libreoffice commandline tools (soffice)
Send a post request to /convert?format=[format]
as multipart/form-data and set the file paramter to the docx file. You'll get the new document returned.
Example in Curl
curl -i -X POST -H "Content-Type: multipart/form-data" -F "[email protected]" http://localhost:3000/convert?format=pdf
By default doxbuilder wil look for a configuration file in ./configuration.yml
.
You can run doxbuilder with a custom configuration file:
doxbuilder -c <myfile>.yml
Example Configuration:
# configuration.yml
output_dir: /tmp
allowed_formats:
- pdf
- odt