OdtSaveOptionsPassword Property |
Namespace: Aspose.Words.Saving
In order to save document without encryption this property should be null or empty string.
Document doc = new Document(MyDir + "Document.docx"); OdtSaveOptions saveOptions = new OdtSaveOptions(saveFormat); saveOptions.Password = "@sposeEncrypted_1145"; // Saving document using password property of OdtSaveOptions doc.Save(ArtifactsDir + "OdtSaveOptions.Encrypt" + FileFormatUtil.SaveFormatToExtension(saveFormat), saveOptions);