OdtSaveOptions.Password

OdtSaveOptions Password property. Gets or sets a password to encrypt document.

OdtSaveOptions.Password property

Gets or sets a password to encrypt document.

public string Password { get; set; }

Remarks

In order to save document without encryption this property should be null or empty string.

Examples

Shows how to save password encrypted ODT document.

OdtSaveOptions odtSaveOptions = new OdtSaveOptions();
odtSaveOptions.Password = "1234";

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "OdtSaveOptions.Password.odt", odtSaveOptions)
    .Execute();

See Also