ExtractFilePageTextBlocksA
Text, Extraction, Page properties
Description
The trailing A denotes the ANSI (char) DLL entry point; the ActiveX/COM surface exposes only the Unicode form. Behaviour is identical to ExtractFilePageTextBlocks and string arguments are interpreted using the current SetAnsiMode code page
Similar to the ExtractFilePageText function but the results are stored in a text block list rather than returned as a CSV string.
This function internally uses the direct access functionality.
Once the results are in the text block list, functions such as DAGetTextBlockCount, DAGetTextBlockText and DAGetTextBlockColor can be used to retrieve the properties of each block of text.
Syntax
Delphi
Function DLExtractFilePageTextBlocksA(InstanceID: Integer; InputFileName, Password: PAnsiChar; Page, Options: Integer): Integer;
DLL
int DLExtractFilePageTextBlocksA(int InstanceID, const char * InputFileName, const char * Password, int Page, int Options);
Parameters
| InputFileName | The path and file name of the file to extract text from. The password to use, if any, when opening the file |
|---|---|
| Password | |
| Page | The number of the page that must be extracts. The first page in the document is page 1. |
| Options | 3 = Normal extraction 4 = Split words |
Return values
| 0 | The text could not be extracted |
|---|---|
| 1 | A TextBlockListID value |