/docker-libreoffice

Libreoffice Restful API

Primary LanguagePythonMIT LicenseMIT

Docker Libreoffice Restful API

Document Format Convert API, Generate TOC API

Usage

Start API Service

docker run --rm -p 5000:5000 chanmo/libreoffice

File Format Convert

http -f POST :5000/convert/pdf file@/path/to/doc.docx

Generate Doc TOC

http -f POST :5000/generate_toc file@/path/to/doc.docx

Custom Fonts

Add your font files to fonts directory, then rebuild docker image.

References

  1. https://github.com/lynxtaa/unoserver-web/blob/master/Dockerfile