OoxmlSaveOptions.KeepLegacyControlChars

OoxmlSaveOptions KeepLegacyControlChars property. Keeps original representation of legacy control characters.

OoxmlSaveOptions.KeepLegacyControlChars property

Keeps original representation of legacy control characters.

public bool KeepLegacyControlChars { get; set; }

Examples

Shows how to keep legacy control characters in DOCX.

OoxmlSaveOptions docxSaveOptions = new OoxmlSaveOptions();
docxSaveOptions.KeepLegacyControlChars = true;

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

See Also