GithubHelp home page GithubHelp logo

fforbeck / convert-document Goto Github PK

View Code? Open in Web Editor NEW

This project forked from occrp-attic/convert-document

0.0 1.0 0.0 2.15 MB

A docker container for LibreOffice and unoconv, used to generate PDF files from office-type documents.

License: MIT License

Makefile 3.94% Python 83.52% Dockerfile 12.54%

convert-document's Introduction

convert-document

A docker container environment to bundle the execution of LibreOffice to convert documents of various types (such as Word, OpenDocument, etc.) to PDF. An instance of LibreOffice will be run in the background, and controlled via a local socket (i.e. the UNO protocol).

Usage

This service is intended for use exclusively as a docker container. While it may be possible to run this application stand-alone, this is not recommended. For normal usage, you should pull the latest stable image off DockerHub and run it like this:

docker pull alephdata/convert-document
docker run -p 3000:3000 -ti alephdata/convert-document

Once the service has initialised, files can be sent to the /convert endpoint, and a PDF version will be returned as a download:

curl -o out.pdf -F format=pdf -F '[email protected]' http://localhost:3000/convert

Development

To build, run:

docker build --rm -t alephdata/convert-document .

To get a development shell:

make shell

Forced restart

make build && docker-compose -f docker-compose.dev.yml stop convert-document && docker-compose -f docker-compose.dev.yml up -d convert-document

License

MIT, see LICENSE.

convert-document's People

Contributors

dependabot-preview[bot] avatar pudo avatar sunu avatar

Watchers

 avatar

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.