PDFBitDepth

Sets the bit depth of the image output by PDFDocumentToImage.

Member of namespace

Convert

Syntax

bool PDFBitDepth (int p_iVal)

Parameters

p_iVal
Type: int

Parameters

One of the following bit depth values are allowed.
  • 1 : black and white.
  • 8 : 256 color.
  • 24 : True color.

Returns

Always True.

Level

Page level.

Details

Sets the bit depth for the output TIFF. The number of bits determine the color capacity of an image. If this action is not called, a default value of 1 is used. This action must be called before PDFDocumentToImage.
Example:
PDFBitDepth(1)
PDFDocumentToImage()