XpsExportOptions.Compression Property
Gets or sets a value specifying the compression level of the XPS document.
Namespace: DevExpress.XtraPrinting
Assembly: DevExpress.Printing.v24.2.Core.dll
Declaration
[DefaultValue(XpsCompressionOption.Normal)]
public XpsCompressionOption Compression { get; set; }
Property Value
Type | Default | Description |
---|---|---|
XpsCompressionOption | Normal | An XpsCompressionOption enumeration level. |
Available values:
Name | Description |
---|---|
NotCompressed | XPS document is not compressed. |
Normal | XPS document is compressed with a normal level of compression. |
Maximum | XPS document is compressed with the best level of compression, but it requires more time. |
Fast | XPS document is compressed fast, but with a lower level of compression. |
SuperFast | XPS document is compressed very fast, but with the lowest level of compression. |
Property Paths
You can access this nested property as listed below:
Object Type | Path to Compression |
---|---|
ExportOptionsContainer |
|
Remarks
Use the Compression property to choose whether the resulting document shouldn’t be compressed (XpsCompressionOption.NotCompressed), or it should be compressed quickly (XpsCompressionOption.Fast or XpsCompressionOption.SuperFast). Or, compressed with the best compression level but utilizing more time (XpsCompressionOption.Normal or XpsCompressionOption.Maximum).