ExtractPageTextBlocks

Text, Extraction

Description

Similar to the GetPageText function but the results are stored in a text block list rather than returned as a CSV string.

Once the results are in the text block list, functions such as GetTextBlockCount, GetTextBlockText and GetTextBlockColor can be used to retrieve the properties of each block of text.

Syntax

Delphi

function TPDFlib.ExtractPageTextBlocks(ExtractOptions: Integer): Integer;

ActiveX

Function PDFlib::ExtractPageTextBlocks(ExtractOptions As Long) As Long

DLL

int DLExtractPageTextBlocks(int InstanceID, int ExtractOptions);

Parameters

ExtractOptions3 = Normal extraction 4 = Split words

Return values

0The text could not be extracted
Non-zeroA TextBlockListID value