dcpdf_SetImageCompression (deprecated)

Specifies the compression method to use when you convert a PDF file to TIFF. This action is deprecated. Instead, use the actions in Convert, OCRA and OCRS.

Member of namespace

dcpdf

Syntax

bool dcpdf_SetImageCompression (strParam)

Parameters

A numeric value representing one the following Compressions:
  • 1 = NONE (DUMP MODE)
  • 2 = CCITTRLE (CCITT modified Huffman RLE)
  • 3 = CCITTFAX3 (CCITT Group 3 fax encoding)
  • 4 = CCITTFAX4 (CCITT Group 4 fax encoding)
  • 5 = COMPRESSION_LZW (Lempel-Ziv and Welch)
  • 7 = JPEG (%JPEG DCT compression)
  • 32773 = PACKBITS (Macintosh RLE)

Returns

False, if the parameter is not Numeric. Otherwise, True.

Level

Batch or Document level.

Details

Sets the compression that will be used when converting a page from a PDF file to a TIFF file. Group 4 Fax is the most common compression used for text recognition. It produces a lossless compressed black and white image. The default compression value is 4 (CCITT Group 4 fax encoding).
Example:
dcpdf_SetImageCompression("7")
dcpdf_CreateTiffFromPDF("True")