https://github.com/chanmo/docker-libreoffice
Libreoffice Restful API
https://github.com/chanmo/docker-libreoffice
Last synced: 8 months ago
JSON representation
Libreoffice Restful API
- Host: GitHub
- URL: https://github.com/chanmo/docker-libreoffice
- Owner: ChanMo
- License: mit
- Created: 2023-03-28T01:20:57.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T06:18:26.000Z (about 3 years ago)
- Last Synced: 2025-03-05T17:49:13.003Z (over 1 year ago)
- Language: Python
- Size: 44.7 MB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
* Docker Libreoffice Restful API
Document Format Convert API, Generate TOC API
** Usage
Start API Service
#+BEGIN_SRC bash
docker run --rm -p 5000:5000 chanmo/libreoffice
#+END_SRC
File Format Convert
#+BEGIN_SRC bash
http -f POST :5000/convert/pdf file@/path/to/doc.docx
#+END_SRC
Generate Doc TOC
#+BEGIN_SRC bash
http -f POST :5000/generate_toc file@/path/to/doc.docx
#+END_SRC
** Custom Fonts
Add your font files to fonts directory, then rebuild docker image.
** References
1. https://github.com/lynxtaa/unoserver-web/blob/master/Dockerfile