Using XStorable.storeToURL(url, args) and adding a "Password" to args allows an "open password" (ie "read password") to be set on the stored document. This works as expected for ODT and DOC formats - when the documents are opened the user is prompted for a password. It does not seem to work when storing in DOCX format (filter "MS Word 2007 XML") - the saved document can simply be opened and viewed. Is this a bug or is there a different way to set the open-password on a DOCX file? I see MediaDescriptor also mentions EncryptionData, can that be used? If so, is there any information available as to how to do so?
Can you attach an example ODT with a macro that shows the issue when saved as DOCX?
Created attachment 192278 [details] Document with macro showing issue
Document with macro attached. It seems to show the problem that I experience with the UNO (Java) API. It is currently configured to set the password and save the current to c:\temp\Output.docx. The resulting docx file does not require a password. If lines 13 and 14 are uncommented (and 15/16 are commented out), it saves Output.doc and the open password is needed to open the document in Word.