DynaPDF.GetCompressionFilter
----------------------------

The function returns the standard compression filter for images.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [DynaPDF](component_DynaPDF.md) | [3.1](newinversion31.md) | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes | ✅ Yes |

MBS( "DynaPDF.GetCompressionFilter"; PDF ) 

**MBS**( **"DynaPDF.GetCompressionFilter";** /\* The function returns the standard compression filter for images. \*/  
**$PDF**) /\* The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| PDF | The PDF reference returned from [DynaPDF.New](DynaPDFNew.md). | $pdf |

### Result

Returns compression filter.

### Description

The function returns the standard compression filter for images.   
Note that 1 bit images are always compressed with Flate.  
See also [GetCompressionFilter](https://www.monkeybreadsoftware.com/DynaPDF-Manual/GetCompressionFilter.shtml) function in DynaPDF manual.

### See also

- [DynaPDF.GetCompressionLevel](DynaPDFGetCompressionLevel.md)
- [DynaPDF.New](DynaPDFNew.md)
- [DynaPDF.SetCompressionFilter](DynaPDFSetCompressionFilter.md)
- [DynaPDF.SetCompressionLevel](DynaPDFSetCompressionLevel.md)

This function checks for a license.

Created 18th August 2014 , last changed 18th August 2014

  
[DynaPDF.GetColorSpacesAsJSON](DynaPDFGetColorSpacesAsJSON.md) - [DynaPDF.GetCompressionLevel](DynaPDFGetCompressionLevel.md)

[HTML Version](DynaPDFGetCompressionFilter.shtml)