Skip to main content

InkPy - provide tool to fill Django style template in odt file

Project description

Django app provide interface to fill Django style template in odt file, and additionally convert odt to pdf file. Can be run synchronously or asynchronously mode.

Configurations

This tool provide interface to fill Django style template in odt file. Your task is to provide a python script which takes 2 arguments: odt file path, and the path to save the file pdf.

The recommended way is to use the services LibreOffice / OpenOffice.org, which provides conversion from odt file to pdf from the console or Python script.

We recommend to use the library PyODConverter: https://github.com/dieselpoweredkitten/pyodconverter

We need also to define the value in the configuration file, and add the application to INSTALLED_APPS:

INKPY = {
    'script_path': '/path/to/your/convert/script.py',
    'tmp_dir': '/tmp/inkpy'
}
INSTALLED_APPS = INSTALLED_APPS + ['inkpy',]

To install LibreOffice in Ubuntu use:

$ sudo apt-get install libreoffice libreoffice-common openjdk-7-jre unoconv

To run LibreOffice service use:

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

Change Log

0.0.2-alpha

Released on May 14, 2014

This is the bugfix release.

  • bugfix installation error,

0.0.1-alpha

Released on March 14, 2014

This is the alpha release of Inkpy.

  • alpha release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

inkpy-0.0.2-alpha.tar.gz (5.5 kB view details)

Uploaded Source

File details

Details for the file inkpy-0.0.2-alpha.tar.gz.

File metadata

  • Download URL: inkpy-0.0.2-alpha.tar.gz
  • Upload date:
  • Size: 5.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for inkpy-0.0.2-alpha.tar.gz
Algorithm Hash digest
SHA256 28c8f5196e1052f560d3fe465fe043a92cf81561df6a740b8ceed64809d98f2c
MD5 7c209c6eb6103aaa1250f5bae3998dbd
BLAKE2b-256 31006936d372de8e0517975e80f898328396f41b4be57f8f78ef8ebff62c43d6

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page