Search code examples
pythonpython-3.xreportinglibreoffice-writer

modify libreoffice writer document from python for auto reporting


I would like to generate automated reports from my python program. I was using pdf reportlab solution before, but my needs are evolving. I need the possibility to comment / apply modifications in the report.

As a result, I was imagining to create an empty LibreOffice writer document (but with logos, first page, etc. like a template), and from my program, I planned to copy this document, feed it from my python prog data, txt and pictures, and save it with a new name.

Like this, the report is closed to be complete and I can adjust it by myself at the end. Do you know if it is possible to do that ?

Thanks for your help!


Solution

  • One of the solution I found is to use python docx library. It can open and save docx like document. It should work with writer docs