Skip to content

Latest commit

 

History

History
101 lines (68 loc) · 2.1 KB

README.rst

File metadata and controls

101 lines (68 loc) · 2.1 KB

Convertit

A conversion webservice.

Idea is to make a GET request to the webservice and you ll get a downloadable transformed file: Documents are pulled by the webserver.

GET parameters are:

  • url: a url to a document to be grabbed from transformation
  • output_mt: (optionnal, default to application/pdf if not provided)
  • input_mt: (optionnal, guessed from input url if not provided)

Older transformed documents are cleaned after a defined time, tested at each http request on the application.

base transforms: - odt -> pdf - odt -> doc - svg -> pdf

Feedback

Open an Issue to report a bug or request a new feature.

Dependencies

  • for OpenDocument support: unoconv
  • for SVG support: inkscape

Install

  • Download and extract a released tarball from pypi
  • The bleeding edge version is hosted on github :

    git clone https://github.com/makinacorpus/convertit.git
  • PreInstall it :

    cd convertit
    python bootstrap.py -dc buildout-dev.cfg

Development

cd convertit
bin/buildout -Nc buildout-dev.cfg
pserve --reload etc/wsgi/instance.ini

Run tests:

bin/convertit.test

Once the application is running, you may visit http://localhost:6543/ in your browser.

Production

cd convertit
cp local.cfg.in local.cfg
$ED local.cfg
bin/buildout -Nc buildout-prod.cfg
bin/supervisord
bin/supervisorctl status

Some files have been generated in etc/ for your convenience:

  • An init script
  • A logrotate configuration
  • An Apache vhost sample

Credits

Companies

makinacom_

Authors

  • Antoine Cezar
  • Alex Marandon

Contributors