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 16.04):

$ start-py3o-renderserver --java=/usr/lib/jvm/java-8-openjdk-amd64/jre/lib/amd64/server/libjvm.so --ure=/usr/lib/libreoffice --office=/usr/share --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.1.zip (21.3 kB view details)

Uploaded Source

py3o.renderserver-0.5.1.tar.gz (12.2 kB view details)

Uploaded Source

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

py3o.renderserver-0.5.1-py2.7.egg (27.4 kB view details)

Uploaded Egg

py3o.renderserver-0.5.1-py2-none-any.whl (16.6 kB view details)

Uploaded Python 2

File details

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

File metadata

File hashes

Hashes for py3o.renderserver-0.5.1.zip
Algorithm Hash digest
SHA256 a459f76fb78e1f80fdff34e761325ae20fe80b7ca14d4ea07b77dc6a2b1880ed
MD5 e9a0f19a8da52112beb295a55b0ca4a7
BLAKE2b-256 1b868423e3166c9c64455d20fdd5d33d2a5f93b872f0c58b5e40652479992697

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py3o.renderserver-0.5.1.tar.gz
Algorithm Hash digest
SHA256 98e2a6b79ab08b81fd0b6a140c4d8a04c55d8cdda0cc39b6dc9649d515d0ad03
MD5 f9f68cf805b3d5d2af0b187a133fd823
BLAKE2b-256 87238e57cf005733ee37239267c5639df5726135fad6ebb93146b89d01874f90

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py3o.renderserver-0.5.1-py2.7.egg
Algorithm Hash digest
SHA256 b82ded377fd2ff45b5c9bf6865c9d992d43dd894dc1361da5b06871ce13172b2
MD5 3311b4215d6b5c35860a80fa3db187b6
BLAKE2b-256 89ad383ca9cdee6e91a6eb544be42f5c992f9f35a3114d222ace640fac416d2a

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for py3o.renderserver-0.5.1-py2-none-any.whl
Algorithm Hash digest
SHA256 a3d4741ec28cc83987706f722ddd27d6bca1321e51363e9af00379e204597b9f
MD5 b6ec88a879eca03e1f68c8bdbefd8ff6
BLAKE2b-256 2c8d4f5e6fb0986c3237bce1d921ccae0186ccb58716c5e04a48e483a1a2be81

See more details on using hashes here.

Supported by

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