GetTextBlockColor

Text, Extraction, Color

Description

Returns one component of the color of the text in the specified text block.

The color component value is returned as a value between 0 and 1.

Syntax

Delphi

function TPDFlib.GetTextBlockColor(TextBlockListID, Index, ColorComponent: Integer): Double;

ActiveX

Function PDFlib::GetTextBlockColor(TextBlockListID As Long, Index As Long, ColorComponent As Long) As Double

DLL

double DLGetTextBlockColor(int InstanceID, int TextBlockListID, int Index, int ColorComponent);

Parameters

TextBlockListIDA value returned by the ExtractPageTextBlocks function The index of the text block. The first text block in the list has an index of 1.
Index
ColorComponentFor RGB: 1 = Red 2 = Green 3 = Blue For CMYK: 1 = Cyan 2 = Magenta 3 = Yellow 4 = Black