PDFCompression

Sets the compression method used in the TIFF output by PDFDocumentToImage.

Member of namespace

Convert

Syntax

bool PDFCompression (int p_iVal)

Parameters

p_iVal
Type: int

Parameters

One of the following compression values are allowed.
  • 1 : No compression.
  • 2 : CCITT modified Huffman RLE.
  • 3: CCITT Group 3 fax.
  • 4: CCITT Group 4 fax.
  • 5: LZW Lempel-Ziv and Welch
  • 7 : JPEG

Returns

Always True.

Level

Page level.

Details

Sets the compression of the output image from PDFDocumentToImage. If this action is not called, the default value of CCITT4 will be used. Typically, input documents for recognition are black and white with fax compression.
Example:
PDFBitDepth(1)
PDFCompression(4)
PDFDocumentToImage()