SetTextExtractionWordGap

Text, Extraction

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 TPDFlib.SetTextExtractionWordGap(NewWordGap: Double): Integer;

ActiveX

Function PDFlib::SetTextExtractionWordGap(NewWordGap As Double) As Long

DLL

int DLSetTextExtractionWordGap(int InstanceID, double NewWordGap);

Parameters

NewWordGapThe new WordGap ratio

Return values

1The word gap ratio was set successfully.