From 7b9ea038671ca5e51daeb426a251bf586686a467 Mon Sep 17 00:00:00 2001 From: Marijn Ophorst Date: Fri, 7 Oct 2016 17:46:29 +0200 Subject: [PATCH] pass the password as openoffice expects it, so it will work for document-wide decryption (which is what makes sense for a command line flag IMO) --- unoconv | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/unoconv b/unoconv index d57aff1..85ec9b5 100755 --- a/unoconv +++ b/unoconv @@ -915,9 +915,8 @@ class Convertor: ### Load inputfile inputprops = UnoProps(Hidden=True, ReadOnly=True, UpdateDocMode=QUIET_UPDATE) -# if op.password: -# info = UnoProps(algorithm-name="PBKDF2", salt="salt", iteration-count=1024, hash="hash") -# inputprops += UnoProps(ModifyPasswordInfo=info) + if op.password: + inputprops += UnoProps(Password=op.password) ### Cannot use UnoProps for FilterData property if op.importfilteroptions: