# 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
```
没有合适的资源?快使用搜索试试~ 我知道了~
docker-libreoffice-pdf-cli:无需安装LibreOffice及其依赖项即可将任何文档转换为pdf
共4个文件
dockerfile:1个
gitignore:1个
md:1个
1星 需积分: 50 6 下载量 105 浏览量
2021-04-30
04:26:29
上传
评论
收藏 2KB ZIP 举报
温馨提示
docker-libreoffice-pdf-cli 无需安装LibreOffice及其依赖项即可将任何文档转换为pdf 特征 不会因LibreOffice依赖项而使您的系统混乱! UNIX方式- stdin并从stdout获取 因此无需安装Docker卷 --rm arg确保在转换后删除容器。 不会使您的Docker混乱 易于删除: docker rmi vladgolubev/libreoffice-pdf-cli && rm ~/bin/topdf 安装 这只会创建一个方便的速记命令: $ echo " docker run --rm -i vladgolubev/libreoffice-pdf-cli " > ~ /bin/topdf && chmod +x ~ /bin/topdf 用法 $ cat Document.docx | topdf > Document.pdf
资源详情
资源评论
资源推荐
收起资源包目录
docker-libreoffice-pdf-cli-master.zip (4个子文件)
docker-libreoffice-pdf-cli-master
.gitignore 7B
Dockerfile 880B
README.md 840B
renovate.json 41B
共 4 条
- 1
msjhfu
- 粉丝: 27
- 资源: 4607
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1