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 LongDLL
int DLExtractPageTextBlocks(int InstanceID, int ExtractOptions);Parameters
| ExtractOptions | 3 = Normal extraction 4 = Split words |
|---|
Return values
| 0 | The text could not be extracted |
|---|---|
| Non-zero | A TextBlockListID value |