CompressionLevel

Inheritance: java.lang.Object, com.aspose.ms.System.ValueType, com.aspose.ms.System.Enum

public final class CompressionLevel extends System.Enum

Specifies ZIP compression levels for OpenXML file. Higher levels provide better compression at the cost of slower processing.

Fields

FieldDescription
NoneNo compression is applied.
Level1Fastest compression with the lowest compression ratio.
Level2Faster compression with slightly better compression ratio than Level1.
Level3Provides better compression than Level2 with moderate performance impact.
Level4Provides better compression than Level3.
Level5Provides improved compression over Level4 with additional processing time.
Level6Standard compression, offering a good balance between compression speed and file size.
Level7Provides higher compression than Level6 with slower processing.
Level8Provides higher compression than Level7.
Level9Maximum compression.

None

public static final int None

No compression is applied. Files are stored as-is.

Level1

public static final int Level1

Fastest compression with the lowest compression ratio.

Level2

public static final int Level2

Faster compression with slightly better compression ratio than Level1.

Level3

public static final int Level3

Provides better compression than Level2 with moderate performance impact.

Level4

public static final int Level4

Provides better compression than Level3.

Level5

public static final int Level5

Provides improved compression over Level4 with additional processing time.

Level6

public static final int Level6

Standard compression, offering a good balance between compression speed and file size. The default compression level.

Level7

public static final int Level7

Provides higher compression than Level6 with slower processing.

Level8

public static final int Level8

Provides higher compression than Level7.

Level9

public static final int Level9

Maximum compression. Produces the smallest file size with the slowest processing speed.