OdtSaveOptions Constructor (String)

Initializes a new instance of this class that can be used to save a document in the Odt format encrypted with a password.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public OdtSaveOptions(
	string password
)

Parameters

password
Type: SystemString
Examples
Shows how to load and change odt/ott encrypted document.
Document doc = new Document(MyDir + "Encrypted" +
                            FileFormatUtil.SaveFormatToExtension(saveFormat),
    new LoadOptions("@sposeEncrypted_1145"));

DocumentBuilder builder = new DocumentBuilder(doc);
builder.MoveToDocumentEnd();
builder.Writeln("Encrypted document after changes.");

// Saving document using new instance of OdtSaveOptions
doc.Save(ArtifactsDir + "OdtSaveOptions.WorkWithEncryptedDocument" +
         FileFormatUtil.SaveFormatToExtension(saveFormat), new OdtSaveOptions("@sposeEncrypted_1145"));
See Also