SaveOptions.PrettyFormat

SaveOptions PrettyFormat property. When true pretty formats output where applicable. Default value is false.

SaveOptions.PrettyFormat property

When true, pretty formats output where applicable. Default value is false.

public bool PrettyFormat { get; set; }

Remarks

Set to true to make HTML, MHTML, EPUB, WordML, RTF, DOCX and ODT output human readable. Useful for testing or debugging.

Examples

Shows how to export XML based documents in pretty format.

SaveOptions so = SaveOptions.CreateSaveOptions(SaveFormat.WordML);
so.PrettyFormat = true;

Converter.Create()
    .From(MyDir + "Simple.docx")
    .To(ArtifactsDir + "SaveOptions.PrettyFormat.xml", so)
    .Execute();

See Also