Convert document into various formats
2.4K
The Document Converter image provides an HTTP API to convert Document into other format (ex: OpenDocument to PDF).
$ docker run -p 8000:8000 -e API_KEY=mysecretkey tryton/document-converter
| name | data type | description |
|---|---|---|
| API_KEY | string | The shared secret to access the service |
| MAX_CONTENT_LENGTH | integer | The maximum content length for the request (default: 200Mb) |
| MAX_FORM_MEMORY_SIZE | integer | The maximum form field size (default: MAX_CONTENT_LENGTH) |
POST /
| name | type | data type | description |
|---|---|---|---|
| Authorization | optional | string | The API key of the service |
multipart/form-data| name | type | data type | description |
|---|---|---|---|
| document | required | file | The file to convert |
| format | optional | string | The format to convert to (default: pdf) |
| HTTP code | Content-Type | response |
|---|---|---|
200 | the mimetype of the requested format | data |
400 | text/html | string |
401 | text/html | string |
405 | text/html | string |
413 | text/html | string |
500 | text/html | string |
$ curl -X POST -F "document=@/path/document.odt" -F "format=pdf" -H "Authorization: mysecretkey" http://localhost:8000/
Content type
Image
Digest
sha256:9c27bca94…
Size
243.1 MB
Last updated
29 days ago
docker pull tryton/document-converterPulls:
163
Last week