Debenu Quick PDF logo

DAExtractPageTextBlocks

Text, Extraction, Direct access functionality

Version history

This function was introduced in Quick PDF Library version 9.13.

Description

Similar to the DAExtractPageText 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 DAGetTextBlockCount, DAGetTextBlockText and DAGetTextBlockColor can be used to retrieve the properties of each block of text.

Syntax

Delphi

function TDebenuPDFLibrary1511.DAExtractPageTextBlocks(FileHandle, PageRef, 
  ExtractOptions: Integer): Integer;

ActiveX

Function DebenuPDFLibrary1511.PDFLibrary::DAExtractPageTextBlocks(
  FileHandle As Long, PageRef As Long, ExtractOptions As Long) As Long

DLL

int DPLDAExtractPageTextBlocks(int InstanceID, int FileHandle, int PageRef,
  int ExtractOptions)

Parameters

FileHandle A handle returned by the DAOpenFile, DAOpenFileReadOnly or DAOpenFromStream functions
PageRef A page reference returned by the DAFindPage or DANewPage functions
ExtractOptions 3 = Normal extraction
4 = Split words

Return values

0 Text could not be extracted from the page
Non-zero A TextBlockListID value

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport