A micro service for generating Generate document previews. The most common document and image formats are supported!
docker build -t generate_document_previews .docker run -p 3030:3030 -e KEY=access_key -it --rm generate_document_previews- Method:
POST - Body:
Multipart form - Form data fields:
document: Fileheight: Numberwidth: Number
- Required headers:
Authorization: Bearer $KEY
- Supported file types
- image/png, image/jpeg, image/gif, image/webp
- application/pdf, application/x-pdf, application/x-bzpdf, application/x-gzpdf (requires pdftocairo from poppler OR soffice from openoffice)
- word, powerpoint and excel like files supported by openoffice (requires soffice from openoffice)
- responses
200: Image of content typeimage/webp500: Error string of typetext/plain401: Unauthorized of typetext/plain
$KEYRequired: The Bearer key$SOFFICE_PATH: If the soffice binary is not in the path you can set it in here$PORT: Change the default port number (3030)