setPDFCompressionType()

Description

Sets the compression type for PDF files.

Syntax

ImageViewerObject.io.pdfinfo.setPDFCompressionType(iValue);

Parameters

<EnumPDFCompressionType> iValue: the value to set

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

Return value

bool

Remarks

EnumPDFCompressionType is under namespace io.pdfinfo.

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

See also

io.httpUpload()
io.httpUploadAsync()

Is this page helpful?

Leave a Reply

Your email address will not be published.