pyuno for py3o
py3o.renderers.pyuno is a pyuno based driver for py3o to transform an OpenOffice document into a PDF or other supported format.
Prerequisites
You will need an installed version of Open-/LibreOffice.
This has been tested with LibreOffice 4.0 on Linux and LibreOffice 4.2 on Mac OS X.
Important Note
Windows
Windows is currently not supported by the pyuno driver (Patches are welcome!). It is recommended to use the java based driver py3o.renderers.juno which is really easier to deploy on Windows.
Linux / Mac OS X
If you are under Linux or Mac OS X, this driver will work with your system python as long as pyuno is correctly installed. It is not possible to call the pyuno bride directly if python shipped with Open-/LibreOffice has not the same version as the system python. To circumvent this problem the driver tries to determine the paths to the python version of Open-/LibreOffice and spawns a child proccess for the conversion which runs within this python environment.
Usage
Example with explicit output format:
from py3o.renderers.pyuno import Convertor
c = Convertor()
c.convert("py3o_example.odt", "py3o_example.out", "pdf")
Example with guessing the output format:
from py3o.renderers.pyuno import Convertor
c = Convertor()
c.convert("py3o_example.odt", "py3o_example.pdf")
Example with explicit host and port:
from py3o.renderers.pyuno import Convertor
c = Convertor(host="127.0.0.1", port="8997")
c.convert("py3o_example.odt", "py3o_example.pdf")
For more information please read the API documentation.
License
This software is licensed under the MIT License
Changelog
0.5 2014-11-20
Ignore errors of ended spawned office clients if the cause of the error was a signal. Older versions of OpenOffice sometime fail with sigsev (11) after the document conversion.
0.4 2014-11-07
Allow to specify search path for the office installation
Allow to guess the output format from the output file extension
Support the system python environment when running the conversion
Support for older Office-/Libreoffice versions which don’t understand – parameters (e.g. OpenOffice 3.2)
0.3 2014-10-14
Support for Mac OS X
Using the new common package for format declarations py3o.formats
Fixed problems with starting the OfficeSpawnedClient within the Open/-LibreOffice python environment
Contributors by alphabetic order
Aide Florent
Björn Ricks
If anyone is missing to this list please let us know!
Metadata
Release files for py3o.renderers.pyuno 0.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distributions (sdists)
| File | Size | Uploaded | |
|---|---|---|---|
| py3o.renderers.pyuno-0.5.zip | 16.8 kB | Details | |
| py3o.renderers.pyuno-0.5.tar.gz | 10.2 kB | Details |
Built distributions (wheels)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| py3o.renderers.pyuno-0.5-py2.7.egg | Legacy Egg format | - | - | Details |
| py3o.renderers.pyuno-0.5-py2-none-any.whl | Python 2 | none | any | Details |
Total release size: 57.2 kB
Release files / py3o.renderers.pyuno-0.5.zip
| Download URL | py3o.renderers.pyuno-0.5.zip |
|---|---|
| Size | 16.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
00bbdaaaebd240aece0a1d93b122c06aae87dacaf2fd49ead2e8128c86675c65
|
|
BLAKE2b-256 checksum How to use checksums |
d67c36d1adfb2ebc067ed301371ebb953b97b4e537fc8a04f8a203a0f2d813ea
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / py3o.renderers.pyuno-0.5.tar.gz
| Download URL | py3o.renderers.pyuno-0.5.tar.gz |
|---|---|
| Size | 10.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b850c01da72d1b31630ce4be5e629c3cd048756314c1aebc1dd806d3b10a0fe4
|
|
BLAKE2b-256 checksum How to use checksums |
f86098d7561ced29c97dedbaab8ecc7d2d5b5efd7ea278c65584c461c5aa7375
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / py3o.renderers.pyuno-0.5-py2.7.egg
| Download URL | py3o.renderers.pyuno-0.5-py2.7.egg |
|---|---|
| Size | 18.5 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
ea0db6c63eb236ae08f7f456c097cc2650a91a41c78a6a203c9645997ab5b6e4
|
|
BLAKE2b-256 checksum How to use checksums |
f31dd4b534aa3c00963e3d7f3a446172bd25a171a2350401485ef7105b95b377
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / py3o.renderers.pyuno-0.5-py2-none-any.whl
| Download URL | py3o.renderers.pyuno-0.5-py2-none-any.whl |
|---|---|
| Size | 11.6 kB |
| Tags | Python 2 |
|
SHA-256 checksum How to use checksums |
fad5454c67effe6565ec36361f2f176a20b8bd58d7adbc1a98f23b97f80fdc2b
|
|
BLAKE2b-256 checksum How to use checksums |
734ae19a4ec30123f9bfc411755e9e45f01ed4612ae7a417f7e9e4c2d29f4c66
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |