OptimizeMemoryUsage

XpsSaveOptions.OptimizeMemoryUsage property

Enables memory optimization mechanisms during document generation from HTML, which degrades performance in as a cost of decreasing memory usage. Setting this option to true can significantly decrease memory consumption while generating large documents at the cost of slower saving time. Default is false (memory optimization is disabled for the sake of better performance).

public bool OptimizeMemoryUsage { get; set; }

See Also