Git Product home page Git Product logo

docker-libreoffice-pdf-cli's Introduction

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:

$ echo "docker run --rm -i vladgolubev/libreoffice-pdf-cli" > ~/bin/topdf && chmod +x ~/bin/topdf

Usage

$ 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's People

Contributors

renovate-bot avatar vladgolubev avatar vladholubiev avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

docker-libreoffice-pdf-cli's Issues

can this be used with a second docker container

Hello,

can this service be used together with another web app container (i would include both in one docker-compose), for example when user uploads a file through HTTP to php/node container, that container could trigger a file conversion on this service through a shared volume folder?

Thanks for help.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.