Sample Header Ad - 728x90

Password-protect a LibreOffice or OpenOffice ODT file from Bash

2 votes
1 answer
2957 views
From a Bash terminal in a popular GNU/Linux distro, how can a non-password-protected [OpenDocument Text (.odt)](OpenDocument Text) document be transformed into a password-protected one? Unfortunately, the LibreOffice man-page does not even contain the string "password", so is not much help here. I do not wish to wrap the file in an encrypted container such as a [ZIP file](https://en.wikipedia.org/wiki/Zip_%28file_format%29) that will require it to be extracted before it can be opened by LibreOffice. It is important the the recipient of the file will be able to open it without needing anything except LibreOffice and knowledge of the file's password. I would prefer to achieve the desired result using LibreOffice itself and/or standard GNU/Linux utilities, if possible. Otherwise, I would prefer to use only free software applications that are commonly packaged for GNU/Linux distros.
Asked by user6860
Mar 26, 2017, 04:50 PM
Last activity: Apr 28, 2017, 08:26 AM