DAGetTextBlockColor

Text, Extraction, Color, Direct access functionality

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.DAGetTextBlockColor(TextBlockListID, Index, ColorComponent: Integer): Double;

ActiveX

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

DLL

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

Parameters

TextBlockListIDA value returned by the DAExtractPageTextBlocks or ExtractFilePageTextBlocks functions
IndexThe index of the text block. The first text block in the list has an index of 1. For RGB: 1 = Red 2 = Green 3 = Blue For CMYK: 1 = Cyan 2 = Magenta 3 = Yellow 4 = Black
ColorComponent