https://github.com/ferhatelmas/ubuntu-libreoffice-headless
https://github.com/ferhatelmas/ubuntu-libreoffice-headless
docker-image headless libreoffice ubuntu
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/ferhatelmas/ubuntu-libreoffice-headless
- Owner: ferhatelmas
- Created: 2017-02-16T23:17:27.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-14T18:58:48.000Z (over 5 years ago)
- Last Synced: 2025-01-24T14:39:11.928Z (4 months ago)
- Topics: docker-image, headless, libreoffice, ubuntu
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Build Image
> docker build -t ubuntu-libreoffice-headless .
## Convert office documents
> docker run -v /HOST_PATH/:/tmp ubuntu-libreoffice-headless libreoffice --headless --convert-to CONVERSION_PARAMS /tmp/OFFICE_FILE --outdir /tmp
Where `HOST_PATH` is the place your file located in your host filesystem and `OFFICE_FILE` is the office file name.
Conversion parameters change according to your needs:
* PDF: pdf
* CSV: csv:"Text - txt - csv (StarCalc)":59,34,76,1,1,0,trueFor details, see filter options in [wiki](https://wiki.openoffice.org/wiki/Documentation/DevGuide/Spreadsheets/Filter_Options).
Base image is `Ubuntu 16.04 latest`.