Yearly Archive: 2025

Embedding vs. Storing Python Macros in LibreOffice

This article helps you decide whether to embed your python macro in the file. It also explores saving it in a macro repository. With the APSO add-on (see previous article) you can embed your macro within the LibreOffice File. This…
Read more

Create Documents from Templates Using Python in LibreOffice

Let’s start with the full code, then dive down First we need to import the uno library and the specific PropertyValue function Then let’s set the couple of service definitions that we need: We create 3 functions: create_instance: new_document_from_template: This…
Read more