A pyuno based driver for py3o
Project description
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
=========
Unreleased
----------
* 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!
==============
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
=========
Unreleased
----------
* 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!
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.renderers.pyuno-0.4.zip
(16.4 kB
view hashes)
py3o.renderers.pyuno-0.4.tar.gz
(10.0 kB
view hashes)
Built Distributions
Close
Hashes for py3o.renderers.pyuno-0.4-py2.7.egg
Algorithm | Hash digest | |
---|---|---|
SHA256 | fed103ef1b9d83bce56e83b73e5713bd186d4c26e1af9b6584902120867dd5f1 |
|
MD5 | bdc2aed750539f986c0348ed422b6542 |
|
BLAKE2b-256 | 0154bfd15e4d2f03dc7573b65b26f156c9c6d79f14aa50279c691edef791fc9e |
Close
Hashes for py3o.renderers.pyuno-0.4-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5b270c757ad6d94869e3a740a27d909f71da10f6fe6396425bb50b8e467e803b |
|
MD5 | 9ca3a6256f2cf2694e3943ca2b9e9cc1 |
|
BLAKE2b-256 | d1e1975b19ef519396938c49cae7043f9779919c235d50f829f4d1dea81ee13e |