Generate PDF documents from ODT templates.
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
contrib
inkpy_jinja
.gitignore
.travis.yml
AUTHORS
CHANGES.rst
Dockerfile
LICENSE
MANIFEST.in
README.rst
setup.cfg
setup.py
tests.py

README.rst

inkpy_jinja

Module provide interface to fill template in odt file and convert odt to pdf file via LibreOffice.

Configurations

To install LibreOffice in Ubuntu use:

$ sudo apt-get install libreoffice-writer openjdk-7-jre unoconv
$ sudo apt-get install libreoffice-script-provider-python uno-libs3

Note

LibreOfficePDFBackend works only with Python 3.x and LibreOffice version 4.x.

To run LibreOffice as a service use:

$ soffice --nologo --headless --nofirststartwizard --accept='socket,host=127.0.0.1,port=2002,tcpNoDelay=1;urp;StarOffice.Service'

If you want use inkpy-jinja like service you must install rq and run following command:

$ RQ_REDIS_URL=redis://host:port rqworker queue_name

where:

* ``host:port`` - connection pair to redis server,
* ``queue_name`` - name of queue.

Docker installation (recommended)

Pull docker image:

$ docker pull inkpy allegro/inkpy

and run it:

$ docker run --net host allegro/inkpy:latest