FixedPageSaveOptionsOptimizeOutput Property

Flag indicates whether it is required to optimize output. If this flag is set redundant nested canvases and empty canvases are removed, also neighbor glyphs with the same formatting are concatenated. Note: The accuracy of the content display may be affected if this property is set to true. Default is false.

Namespace:  Aspose.Words.Saving
Assembly:  Aspose.Words (in Aspose.Words.dll) Version: 20.3
Syntax
public virtual bool OptimizeOutput { get; set; }

Property Value

Type: Boolean
Examples
Shows how to optimize document objects while saving to xps.
Document doc = new Document(MyDir + "Unoptimized document.docx");

XpsSaveOptions saveOptions = new XpsSaveOptions { OptimizeOutput = false };

doc.Save(ArtifactsDir + "XpsSaveOptions.OptimizeOutputF.xps", saveOptions);
Examples
Shows how to optimize document objects while saving to html.
Document doc = new Document(MyDir + "Unoptimized content.docx");

HtmlFixedSaveOptions saveOptions = new HtmlFixedSaveOptions { OptimizeOutput = true };

doc.Save(ArtifactsDir + "HtmlFixedSaveOptions.OptimizeGraphicsOutput.html", saveOptions);
See Also