Skip to content

A micro service for generating Generate document previews. The most common document and image formats are supported!

License

Notifications You must be signed in to change notification settings

script-development/document-preview-microservice

Repository files navigation

Generate document previews micro service

Generate image previews

/api/preview

  • Method: POST
  • Body: Multipart form
  • Supported file types
    • image/png, image/jpeg, image/gif, image/webp
    • application/pdf, application/x-pdf, application/x-bzpdf, application/x-gzpdf (requires poppler)

Required fields:

  • document: File
  • height: Number
  • width: Number

Response:

  • 200: image of content type image/webp
  • 500: error string of type text/plain

Note on container:

The container uses the Microsoft TrueType core fonts that have a proprietary license

About

A micro service for generating Generate document previews. The most common document and image formats are supported!

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Contributors 3

  •  
  •  
  •