Ask Your Question

Is it possible to modify placeholders in a .odt file using python? [closed]

asked 2017-02-19 14:24:13 +0100

cataclyptic gravatar image

updated 2020-08-05 23:15:14 +0100

Alex Kemp gravatar image

.odt files appear to be encrypted so I can't find the placeholders.

I'd like to be able to modify the placeholders and then email the new file? Is it possible to save from libre office without encryption even?

thanks cat

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by Alex Kemp
close date 2020-08-05 23:15:22.885080

1 Answer

Sort by » oldest newest most voted

answered 2017-02-19 21:31:12 +0100

updated 2017-02-19 21:35:21 +0100

ODT files are zipped archives with XML files and binary embeddings. You may unzip/modify/zip.

You also may like to look at FODT which is plain XML without compression (for a price of size).

Another option is to use Python-UNO bridge to control LibreOffice itself. But that may be overkill in some simple scenarios.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2017-02-19 14:24:13 +0100

Seen: 681 times

Last updated: Feb 19 '17