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
Syntaxpublic virtual bool OptimizeOutput { get; set; }
Public Overridable Property OptimizeOutput As Boolean
Get
Set
public:
virtual property bool OptimizeOutput {
bool get ();
void set (bool value);
}
abstract OptimizeOutput : bool with get, set
override OptimizeOutput : bool with get, set
Property Value
Type:
Boolean
ExamplesShows 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);
ExamplesShows 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