Debenu Quick PDF logo

ExtractFilePageTextBlocks

Text, Extraction, Page properties

Version history

This function was introduced in Quick PDF Library version 9.13.

Description

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 TDebenuPDFLibrary1511.ExtractFilePageTextBlocks(InputFileName, 
  Password: WideString; Page, Options: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::ExtractFilePageTextBlocks(
  InputFileName As String, Password As String, Page As Long,
  Options As Long) As Long

DLL

int DPLExtractFilePageTextBlocks(int InstanceID, wchar_t * InputFileName,
  wchar_t * Password, int Page, int Options)

Parameters

InputFileName The path and file name of the file to extract text from.
Password The password to use, if any, when opening the file
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

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport