Skip to content
Snippets Groups Projects
README.txt 1.02 KiB
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 with Java 1.6 and OpenOffice 3.2.1

Usage
=====

    from py3o.renderers.juno import start_jvm, Convertor, formats

    start_jvm(
            "c:/Java/jdk1.6.0_21/jre/bin/client/jvm.dll",
            "c:/py3o.renderserver/java/py3oconvertor/py3oconverter.jar",
            "c:/Program Files/OpenOffice.org 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 API documentation.