Quick PDF logo

SetTextExtractionArea

Text, Extraction

Version history

This function was introduced in Quick PDF Library version 8.12.

Description

Sets the area for text extraction. Any text that appears outside this area will be excluded from the results.

From 8.13, this function sets the text extraction area for the selected document only. It also only affects the results of the GetPageText function.

To adjust the text extraction for the ExtractFilePageText and DAExtractPageText functions, use the new DASetTextExtractionArea function.

The coordinate values passed into this function are specified using the units set with the SetMeasurementUnits function and the origin set with the SetOrigin function.

The area limitation can be removed by calling this function with a value of zero for both the Width and Height parameters.

Syntax

Delphi

function TQuickPDF0815.SetTextExtractionArea(Left, Top, Width, 
  Height: Double): Integer;

ActiveX

Function QuickPDF0815.PDFLibrary::SetTextExtractionArea(Left As Double,
  Top As Double, Width As Double, Height As Double) As Long

DLL

int QuickPDFSetTextExtractionArea(int InstanceID, double Left, double Top,
  double Width, double Height)

Parameters

Left The horizontal coordinate of the left edge of the area
Top The vertical coordinate of the top edge of the area
Width The width of the area
Height The height of the area

Return values

1 The text extraction area was set successfully
2 The text extraction area was cleared

Copyright © 2011 Debenu. All rights reserved. AboutContactBlogNewsletterSupportBuyForum