diff options
author | Hossein <hossein@libreoffice.org> | 2021-06-30 05:49:01 +0200 |
---|---|---|
committer | Thorsten Behrens <thorsten.behrens@allotropia.de> | 2021-07-16 16:05:01 +0200 |
commit | ff93afcc76d5f82e74174825173075cd938a230c (patch) | |
tree | c7f7a0c65f76f7bd67e117dcbb9d238de887f299 /odk/examples/python/DocumentLoader/README.md | |
parent | -Werror=class-memaccess (diff) | |
download | core-ff93afcc76d5f82e74174825173075cd938a230c.tar.gz core-ff93afcc76d5f82e74174825173075cd938a230c.zip |
Porting C++/Java DocumentLoader example to Python
* Using UNO for Python
* Opening the file in LibreOffice if it is listeing on port 2083
Change-Id: I14b1a38da5d66dd2ee8c859071c148ce08a080d1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118142
Reviewed-by: Thorsten Behrens <thorsten.behrens@allotropia.de>
Tested-by: Jenkins
Diffstat (limited to 'odk/examples/python/DocumentLoader/README.md')
-rw-r--r-- | odk/examples/python/DocumentLoader/README.md | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/odk/examples/python/DocumentLoader/README.md b/odk/examples/python/DocumentLoader/README.md new file mode 100644 index 000000000000..c5a80f0f69c3 --- /dev/null +++ b/odk/examples/python/DocumentLoader/README.md @@ -0,0 +1,12 @@ +# DocumentLoader +This example is somehow similar to DocumentLoader in C++ and Java. +to get started, first start LibreOffice listening on port 2083 + + $OFFICE_PROGRAM_PATH/soffice "--accept=socket,port=2083;urp;" + +The synatx for executing this example is: + + $OFFICE_PROGRAM_PATH/python DocumentLoader.py <path> + +You should use 'setsdkenv_unix' for Unix/Linux and setsdkenv_windows.bat for Windows. In this way, +the LibreOffice internal Python interpretor will be used. |