---
title: "PdfEncoderOptions..::.Compression Property "
canonical: https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_PdfEncoderOptions_Compression.htm
product: "Graphics Mill 5.5 for .NET"
---

This documentation is for the old version. [Go to the latest Graphics Mill docs](https://www.graphicsmill.com/docs/gm/)

# PdfEncoderOptions.Compression Property 
 
Gets/sets PDF compression type.
 
**Namespace:** [Aurigma.GraphicsMill.Codecs](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
 **Assembly:** Aurigma.GraphicsMill (in Aurigma.GraphicsMill.dll)
 
## Syntax
  
```
Public Property Compression As CompressionType
```
 
```csharp
public CompressionType Compression { get; set; }
```
 
### Property Value
Value that specifies necessary PDF compression type.
 
## Remarks
  
PDF format supports the following compression types:
 
|  Compression Type |  Limitations |
| --- | --- |
 |  [None](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) compression type. |  No limitations. Supported with all pixel formats allowed for PDF files. |
 |  [Zip](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) compression type. |  No limitations. Supported with all pixel formats allowed for PDF files. |
 |  [Jpeg](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) compression type. |  Can be used only with those pixel formats which are supported by JPEG (non-extended and non-indexed grayscale, RGB, and CMYK images). To adjust JPEG quality, use [Quality](https://www.graphicsmill.com/docs/gm5/P_Aurigma_GraphicsMill_Codecs_PdfEncoderOptions_Quality.htm.md) property. |
 
Default value is [Zip](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_CompressionType.htm.md) unless you pass JPEG quality into [constructor](https://www.graphicsmill.com/docs/gm5/C_Aurigma_GraphicsMill_Codecs_PdfEncoderOptions_ctor_1_25c8efd2.htm.md).
   
## See Also

### Reference

- [PdfEncoderOptions Class](https://www.graphicsmill.com/docs/gm5/T_Aurigma_GraphicsMill_Codecs_PdfEncoderOptions.htm.md)
- [Aurigma.GraphicsMill.Codecs Namespace](https://www.graphicsmill.com/docs/gm5/N_Aurigma_GraphicsMill_Codecs.htm.md)
