OoxmlSaveOptions.Password

OoxmlSaveOptions Password property. Gets/sets a password to encrypt document using ECMA376 Standard encryption algorithm.

OoxmlSaveOptions.Password property

Gets/sets a password to encrypt document using ECMA376 Standard encryption algorithm.

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 DOCX.

OoxmlSaveOptions docxSaveOptions = new OoxmlSaveOptions();
docxSaveOptions.Password = "1234";

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "OoxmlSaveOptions.Password.docx", docxSaveOptions)
    .Execute();

See Also