Convert any doc to pdf without installing LibreOffice and its dependencies
4.9K
Convert any doc to pdf without installing LibreOffice and its dependencies
stdin and get from stdout--rm arg ensures container is removed after converting. Doesn't clutter your Dockerdocker rmi vladgolubev/libreoffice-pdf-cli && rm ~/bin/topdfThis will just create a convenient shorthand command:
$ echo "docker run --rm -i vladgolubev/libreoffice-pdf-cli" > ~/bin/topdf && chmod +x ~/bin/topdf
$ 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
Content type
Image
Digest
Size
350.8 MB
Last updated
about 8 years ago
docker pull vladgolubev/libreoffice-pdf-cli