checkPageColorUsage
Analyze a page for color usage.
checkPageColorUsage([in] int page, [out, retval] int *color)
The checkPageColorUsage function analyzes the specified page in the
PDF file, and returns one of the following values:
- 1 - if the page is monochrome (black & white)
- 2 - if the page is grayscale
- 3 - if the page is color
- 0 - on error (e.g., invalid page number)
VB:
color = pdf.checkPageColorUsage(page)
If color = 1 Then
' monochrome
ElseIf color = 2 Then
' grayscale
ElseIf color = 3 Then
' color
Else
' error
End If