SetTextExtractionWordGap
Version history
This function was introduced in Quick PDF Library version 7.21.
Description
Sets the word gap ratio for the text extraction functionality.
From 8.13, this function sets the text extraction options for the selected document only. It affects the results of any of the text extraction function that use options 3,4,5,6,7 or 8.
To adjust the text extraction for the ExtractFilePageText and DAExtractPageText functions, use the new DASetTextExtractionWordGap function.
The word gap ratio is the maximum distance between two text blocks specified as the ratio of the horizontal distance between the blocks to the height of the text.
The default initial value is 0.7 and smaller values will allow closer distances between words.
Syntax
Delphi
function TDebenuPDFLibrary1811.SetTextExtractionWordGap(NewWordGap: Double): Integer;
ActiveX
Function DebenuPDFLibrary1811.PDFLibrary::SetTextExtractionWordGap(
NewWordGap As Double) As Long
DLL
int DPLSetTextExtractionWordGap(int InstanceID, double NewWordGap)
Parameters
NewWordGap | The new WordGap ratio |
Return values
1 | The word gap ratio was set successfully. |