Debenu Quick PDF logo

DAGetTextBlockColor

Text, Extraction, Color, Direct access functionality

Version history

This function was introduced in Quick PDF Library version 9.13.

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

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DAGetTextBlockColor(
  TextBlockListID As Long, Index As Long, ColorComponent As Long) As Double

DLL

double DPLDAGetTextBlockColor(int InstanceID, int TextBlockListID, int Index,
  int ColorComponent)

Parameters

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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport