https://github.com/vladholubiev/docker-libreoffice-pdf-cli
Convert any doc to pdf without installing LibreOffice and its dependencies
https://github.com/vladholubiev/docker-libreoffice-pdf-cli
cli converter docker libreoffice pdf
Last synced: 9 months ago
JSON representation
Convert any doc to pdf without installing LibreOffice and its dependencies
- Host: GitHub
- URL: https://github.com/vladholubiev/docker-libreoffice-pdf-cli
- Owner: vladholubiev
- Created: 2016-12-14T20:49:05.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-03-17T08:59:36.000Z (over 4 years ago)
- Last Synced: 2025-04-30T22:39:20.333Z (about 1 year ago)
- Topics: cli, converter, docker, libreoffice, pdf
- Language: Dockerfile
- Homepage:
- Size: 2.93 KB
- Stars: 29
- Watchers: 1
- Forks: 4
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# docker-libreoffice-pdf-cli
> Convert any doc to pdf without installing LibreOffice and its dependencies
## Features
* Doesn't clutter your system with shit-ton of LibreOffice dependencies!
* UNIX way - feed in `stdin` and get from `stdout`
* So no docker volumes mounting needed
* `--rm` arg ensures container is removed after converting. Doesn't clutter your Docker
* Easy removing: `docker rmi vladgolubev/libreoffice-pdf-cli && rm ~/bin/topdf`
## Install
This will just create a convenient shorthand command:
```bash
$ echo "docker run --rm -i vladgolubev/libreoffice-pdf-cli" > ~/bin/topdf && chmod +x ~/bin/topdf
```
## Usage
```bash
$ cat Document.docx | topdf > Document.pdf
```
Optionally, if you have `pdftk` installed, you can for example cut 1st page:
```
$ cat Document.docx | topdf | pdftk cat 1 > Document.pdf
```