Python Forum
Working with LibreOffice file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Working with LibreOffice file
#1
Hello.
I'm newbie in programming, my interests are different but I need to solve problem with Python.

I have to write script: read Openoffice/LibreOffice file (mostly text files- ODT), look for a parcitular string (for example {@NAME@}. After python will found this string, it have to swap it with given string( for example John). Then we have to save progress (other file) and thats all.

There are some rules. It cannot be DOCX library, string ({@NAME@}) sometimes appears in tables inside text file, I don't want to buy any commercial stuff like Office 365 or something like that.

As far as I look for resolution I found UNO library. Script will work for years - do you see any danger for that UNO library after some Libreoffice upgrade or something?

Maybe there are other usefull libraries (have to fallow changes and upgrades of OO or LO) that i don't know about?
I'll appreciate any help or leads.
Thank You !

p.s. Hope my English is good enough to understand what I'm writing :)
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Modify LibreOffice's ods spreadsheet Pavel_47 0 1,146 Jul-13-2022, 11:28 AM
Last Post: Pavel_47
Question apk file not working on android polya001 0 1,114 Feb-06-2022, 11:58 PM
Last Post: polya001
  Subprocess.Popen() not working when reading file path from csv file herwin 13 14,633 May-07-2021, 03:26 PM
Last Post: herwin
  Python File to EXE Not working. MianDoesCoding 9 6,670 Jun-09-2020, 08:21 AM
Last Post: MianDoesCoding
  .py File extension now working Pronger05 5 4,285 Sep-26-2017, 08:50 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020