Ask Your Question
0

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

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

cataclyptic 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 close merge delete

1 Answer

Sort by » oldest newest most voted
0

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

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

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
Login/Signup to Answer

Question Tools

1 follower

Stats

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

Seen: 386 times

Last updated: Feb 19 '17