view README.rst @ 33:00e12392f8d4

Fix saving uploaded form file to a temporary file The file must be saved to a temporary file for conversion via pyuno. pyuno can only accept filenames. Also the file position must be reset to the start. If the position is not reset we will get a IllegalArgumentException: Unsupported URL from pyuno when converting a file without template rendering.
author Björn Ricks <bjoern.ricks@intevation.de>
date Thu, 16 Oct 2014 11:45:51 +0200
parents f9dbc39ffedf
children 2f03f909d69c
line wrap: on
line source
odfcast
=======

A conversion http service based on py3o and PyPDF2


Installation
------------

Install requirements::

    $ pip install -r requirements.txt

Currently a unreleased version of py3o.renderers.pyuno is required to work
correctly::

   $ hg clone https://bjoernricks@bitbucket.org/faide/py3o.renderers.pyuno pyuno
   $ pip install ./pyuno


Run
---

Start server::

    $ python main.py

Open your webbrowser or user example clients::

    $ ./castclient.py in.odt out.file -f format

    $ ./castclient.py in.odt out.file -f format --json data.json

    $ ./mergeclient.py in1.pdf in2.pdf in3.pdf -o out.pdf

License
-------

MIT License
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)