SetTextExtractionArea
Version history
This function was introduced in Quick PDF Library version 8.12.
Description
Sets the area for certain modes of text extraction. Any text that appears outside this area will be excluded from the results. This function has no effect on text extraction using modes 0 to 2.
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 TDebenuPDFLibrary1811.SetTextExtractionArea(Left, Top, Width,
Height: Double): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::SetTextExtractionArea(Left As Double,
Top As Double, Width As Double, Height As Double) As Long
DLL
int DPLSetTextExtractionArea(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 |