PDFGrayscale

Sets the output by PDFDocumentToImage to be grayscale.

Member of namespace

Convert

Syntax

bool PDFGrayscale (bool p_bVal)

Parameters

p_bVal
Type: bool

Parameters

A Boolean value to set grayscale mode.

True: The resulting TIFF is converted to grayscale.

False: The resulting TIFF is not converted to grayscale.

Returns

Always True.

Level

Page level.

Details

Sets the PDF conversion to TIFF so the output images are grayscale. This action must be called before PDFDocumentToImage. If this action is not called, a default value of False is used by PDFDocumentToImage.
Example:
PDFGrayscale(True)
PDFDocumentToImage()