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
| TextBlockListID | A 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 | |
| ColorComponent | For RGB: 1 = Vermelho 2 = Verde 3 = Azul For CMYK: 1 = Cyan 2 = Magenta 3 = Yellow 4 = Black |