a tool to export invoice and receipt fromlibreoffice calc into pdf file
Project description
a tool to export invoice and receipt from libreoffice calc into pdf file
virtualenv has to be created with option --system-site-packages as it needs to use system site-packages which has uno module installed by $ sudo apt-get install python3-uno, on Ubuntu. (Unfortunately, uno module is not available from pip.)
The code is based on Christopher5106’s tutorial (many thanks to him):
http://christopher5106.github.io/office/2015/12/06/openoffice-libreoffice-automate-your-office-tasks-with-python-macros.html
How it works
we open LibreOffice with socket open
we use Python to send commands to LibreOffice through the socket (you should use iptables to block incoming connection on the specified TCP port for security reason)
To open LibreOffice with socket open, use the command line below:
libreoffice \ --accept="socket,host=localhost,port=2002;urp;StarOffice.ServiceManager"
INSTALL for USER
TO_BE_CONTINUED - the program is currently shipped as a library only, please see sample codes for how to use it from: /source/sample-code/invrcptexporter/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for invrcptexporter-0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 73821d94d13ae090a86fcc426dccd0f85ecd467ea8dc5e02ca0c1bb490dec285 |
|
MD5 | 4999fb4b3128c6ef8f17a424312ab4e0 |
|
BLAKE2b-256 | 90e6440216fc7cf2cbb74feec351d55989e13e5a5d88ff2e906cd8f5ab23e062 |