Skip to main content

An easy solution to transform libreoffice/openoffice documents to supported formats

Project description

Overview

This is a rendering server that will wrap an OpenOffice/LibreOffice server and provide a pythonic API which is remotely callable.

The main advantage is that your client code does not need to import pyuno… This is a main plus because pyuno is a pain to get working on Windows and some flavors of Linux, don’t even think of Mac :)

Once you deploy a py3o.renderserver all you need in your python code is to use the py3o.renderclient which is really straightforward…

Deployment

We recommend you use the dockerized versions from the dockerhub

Using this way you’ll get the latest tested version of LibreOffice and py3o.renderserver without the hassle of building all the dependencies…

If you want to have templating fusion & document convertion in one single web service usable from any language with just HTTP/POST you can install py3o.fusion server. Which also exists as a docker image

Manual Installation

Requirements

Install the latest JDK for your plateform. Here is an example for Ubuntu (13.04 or 14.04):

apt-get install default-jdk

This will give you the necessary tools to compile the juno driver.

You will need to install (and compile) the py3o.renderers.juno driver.

Follow the instructions from the driver’s documentation to install it and then you’re ready to start your own RenderServer

Running the server

Here is how we start the server on a Linux host (Ubuntu 13.04):

$ start-py3o-renderserver --java=/usr/lib/jvm/java-7-openjdk-amd64/jre/lib/amd64/server/libjvm.so --ure=/usr/lib --office=/usr/lib/libreoffice --driver=juno --sofficeport=8997

You MUST have a running LibreOffice (OpenOffice) server somewhere. In our example it is running on localhost with port 8997. Here is how you can start such a server on Linux (Ubuntu 13.04 / LibreOffice 4.0.4):

$ libreoffice --nologo --norestore --invisible --headless --nocrashreport --nofirststartwizard --nodefault --accept="socket,host=localhost,port=8997;urp;"

As you can see it works with OpenJDK, LibreOffice and even on 64bit systems :)

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

py3o.renderserver-0.5.zip (21.2 kB view details)

Uploaded Source

py3o.renderserver-0.5.tar.gz (12.1 kB view details)

Uploaded Source

Built Distributions

py3o.renderserver-0.5-py2.7.egg (27.5 kB view details)

Uploaded Source

py3o.renderserver-0.5-py2-none-any.whl (16.5 kB view details)

Uploaded Python 2

File details

Details for the file py3o.renderserver-0.5.zip.

File metadata

File hashes

Hashes for py3o.renderserver-0.5.zip
Algorithm Hash digest
SHA256 11b612adbfa196d86d29574c239b325804010706cf11b03c2877eb716986e884
MD5 a1ccf36d77deba9a590cba8d2a066458
BLAKE2b-256 e34427dadd33bf99160ceb481a7f355373d500f2034e172cf62b26b4f0847055

See more details on using hashes here.

Provenance

File details

Details for the file py3o.renderserver-0.5.tar.gz.

File metadata

File hashes

Hashes for py3o.renderserver-0.5.tar.gz
Algorithm Hash digest
SHA256 6a902cc633bc511d7fdc6366f77c929f90c3296f9fb6b76d735b379a7a55af0c
MD5 0988f8c1d4c61a69ea6c95a0d76550d8
BLAKE2b-256 5565ed49933608b1d81e3d0d8c7edf45a336a5edbc2b458ed4727c2ed795a6d7

See more details on using hashes here.

Provenance

File details

Details for the file py3o.renderserver-0.5-py2.7.egg.

File metadata

File hashes

Hashes for py3o.renderserver-0.5-py2.7.egg
Algorithm Hash digest
SHA256 18767065f31c862c0f24398d35b317cd582fd776bea6c781c83834496c642c15
MD5 f792af4c89f77adc8620d851905f2884
BLAKE2b-256 c83829e7acd9e9a9c1faf1054ff375a23b4a855aa4d02119d07ade85fc9305a5

See more details on using hashes here.

Provenance

File details

Details for the file py3o.renderserver-0.5-py2-none-any.whl.

File metadata

File hashes

Hashes for py3o.renderserver-0.5-py2-none-any.whl
Algorithm Hash digest
SHA256 ccf3302039d28ecdeb06d3887256b26697b35512f7fc964011d767e1f9d0df20
MD5 dd2aabf8a82ed9fe0dcc04ae216e3920
BLAKE2b-256 7031101c498151e51dee13d6ff5afffd2c0868cb2317c2ed8cf893d0fcff626b

See more details on using hashes here.

Provenance

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