A Java based driver for py3o
Project description
Juno for py3o
py3o.renderers.juno is a Java driver for py3o to transform an OpenOffice document into a PDF
Prerequisites
Since this is a Java implementation you will need to install jpype and to have a recent Java runtime on the rendering machine. You will also need a running OpenOffice instance. (If you are on windows this can be addressed by using the py3o.renderserver Open Office service.)
This has been tested to build correctly with:
Oracle JDK 1.6 and OpenOffice 3.2.1 on Windows 7 and Windows server 2003
Oracle JDK 1.6 and LibreOffice 3.4 on Windows 7 64bit
OpenJDK and LibreOffice 3.4 on Linux (Ubuntu and RHEL 5)
Usage
from py3o.renderers.juno import start_jvm, Convertor, formats import datetime # first arg is the jvm.so or .dll # second arg is the basedir where we can find the basis3.3/program/classes/unoil.jar # third argument it the ure basedir where we can find ure/share/java/*.jar containing # java_uno.jar, juh.jar, jurt.jar, unoloader.jar # fourth argument is the max memory you want to give to the JVM start_jvm( "/usr/lib/jvm/java-6-openjdk/jre/lib/amd64/server/libjvm.so", "/usr/lib64/libreoffice", "/usr/lib", "3.3", 140) c = Convertor("127.0.0.1", "8997") t1 = datetime.datetime.now() c.convert("py3o_example.odt", "py3o_example.pdf", formats['PDF']) t2 = datetime.datetime.now()
For more information please read the example provided in the examples dir and read the API documentation.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file py3o.renderers.juno-0.3.1.zip
.
File metadata
- Download URL: py3o.renderers.juno-0.3.1.zip
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 69e63a611af0e4c8cfbfb4cdc52c817782ac0f0ffd2cda532c254ebae459be6f |
|
MD5 | 0fd6426aa7d2d158f29f44bbf228d1e9 |
|
BLAKE2b-256 | 48583f7495b727539485b11210a84e0408154e17897eff9261b6d0c2fa778999 |
File details
Details for the file py3o.renderers.juno-0.3.1.tar.gz
.
File metadata
- Download URL: py3o.renderers.juno-0.3.1.tar.gz
- Upload date:
- Size: 8.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5da3edfb93c892507202cecf46c5c65dcdb8b9f420e159436e19aff44d5408bb |
|
MD5 | 9ae41aa125f6bf8fe795224eb2070c71 |
|
BLAKE2b-256 | d76cbed0b4689ea7395d6a839d40b66c7202dad3158a35dea853d4d4fbdd6957 |
File details
Details for the file py3o.renderers.juno-0.3.1-py2.6.egg
.
File metadata
- Download URL: py3o.renderers.juno-0.3.1-py2.6.egg
- Upload date:
- Size: 11.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39a96de1abb377f9d8d48a62752829d7d12b417162e20b99f33ac643fa9968d1 |
|
MD5 | 2ae0cb13879c632a355bbdf4574612ac |
|
BLAKE2b-256 | 78302284a59d73916005e2111abb03a8e366bf7596de9678ecbd26fc624676c1 |