getPDFCompressionType()

Description

Gets the compression type for PDF files.

Syntax

ImageViewerObject.io.pdfinfo.getPDFCompressionType();

Parameters

None

Return value

EnumPDFCompressionType

If it fails to get the compression type, it returns null.

Remarks

PDF compression type Description Supported image format
EnumPDFCompressionType.AUTO Auto mode 1, 4, 8, 24 bit
EnumPDFCompressionType.FAX3 CCITT Group 3 fax encoding 1 bit
EnumPDFCompressionType.FAX4 CCITT Group 4 fax encoding 1 bit
EnumPDFCompressionType.LZW Lempel-Ziv & Welch 1, 4, 8, 24 bit
EnumPDFCompressionType.JPEG JPEG encoding 4, 8, 24 bit

When an error occurs, check getErrorCode() or getErrorString() for error information.

See also

io.pdfinfo.setPDFCompressionType()