# PDFOptimizerCompressionType Enum

> Specifies the compression algorithm to use when recompressing images during PDF optimization.

- Product: Adobe PDF Library 21
- Language: .NET Framework
- Version: APDFL21.0.0PlusP1e
- HTML page: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/enum/PDFOptimizerCompressionType
- Version index: https://docs.datalogics.com/apdfl21/DotNetFramework/APDFL21.0.0PlusP1e/llms.txt

**Namespace:** `Datalogics::PDFL`

## Description

Specifies the compression algorithm to use when recompressing images during PDF optimization.

## Values

- `PDFOptimizerRecompressNone = 0`: Do not recompress. Used only when the original image is not compressed.
- `PDFOptimizerRecompressSame = 1`: Recompress using the same compression as the original image.
- `PDFOptimizerRecompressFlate = 2`: Recompress the image using Flate (zip/deflate) compression.
- `PDFOptimizerRecompressJpeg = 3`: Recompress the image using JPEG compression.
- `PDFOptimizerRecompressJP2k = 4`: Recompress the image using JPEG 2000 compression.
- `PDFOptimizerRecompressJBig = 5`: Recompress the image using JBIG2 compression.
- `PDFOptimizerRecompressCCITTG4 = 6`: Recompress the image using CCITT Group 4 compression.
- `PDFOptimizerRecompressCCITTG3 = 7`: Recompress the image using CCITT Group 3 compression.
- `PDFOptimizerRecompressFlateJpeg = 8`: Recompress using Flate for lossless portions and JPEG for lossy portions.
