# CompressionType Enum

> Enumerator used to select type of compression used when images are recompressed.

- Product: Adobe PDF Library 21
- Language: Java
- Version: APDFL21.0.0PlusP1f
- HTML page: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/enum/CompressionType
- Version index: https://docs.datalogics.com/apdfl21/Java/APDFL21.0.0PlusP1f/llms.txt

**Namespace:** `com::datalogics::PDFL`

## Description

Enumerator used to select type of compression used when images are recompressed.

For color or grayscale images: Flate, JPEG or JPEG2000 may be selected. For black and white images: Flate, JBIG2, CCITTG3, or CCITTG4 may be selected.

## Values

- `CCITTG_3COMPRESSION`: Recompress with CCITTG3.
- `CCITTG_4COMPRESSION`: Recompress with CCITTG4.
- `FLATE_COMPRESSION`: Recompress with Flate compression.
- `FLATE_JPEG_COMPRESSION`: Recompress with FlateJpeg.
- `JBIG_2COMPRESSION`: Recompress with JBIG2. JBIG2 Quality is set with compression quality.
- `JPEG_2000_COMPRESSION`: Recompress using JPEG2000. JPEG2000 Quality is set with compression quality.
- `JPEGCOMPRESSION`: Recompress with JPEG. JPEG quality is set with compression quality.
- `NO_COMPRESSION`: Do not replace compression type.
- `SAME_COMPRESSION`: Recompress with the same compression.
