Reputation: 16660
I need to read, programmatically, data from a password-protected ODS (A Libreoffice Spreadsheet file). I know the password.
So far I tried:
none of the tools I found even mention "password" in their code/docs.
Are there other ways to read / convert / open password-protected ODS files?
NOTES:
n.b. I know the password, I own the file, and I can open the file via GUI by entering the password manually.
This questions is NOT related to # 58705829 . That Q is confused, and probably asking about WRITING, not READING.
Upvotes: 2
Views: 1249
Reputation: 186
Use unoconv
to decrypt the files (though not the one from the Ubuntu repo, which is prior to this commit, and not from the FreeBSD packages, which also doesn't work out of the box).
Usage:
unoconv --password=$PASSWORD -d spreadsheet -f ods -o decrypted encrypted.ods
Which will create a decrypted.ods
file.
Also works with encrypted xls/xlsx files.
Confirmed on an Ubuntu variant and also FreeBSD, using both the current github release and also the current pip package (unoconv-0.9.0).
Upvotes: 2