Debenu Quick PDF logo


Text, Extraction

Version history

This function was introduced in Quick PDF Library version 7.21.


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.



function TDebenuPDFLibrary1511.SetTextExtractionWordGap(NewWordGap: Double): Integer;


Function DebenuPDFLibrary1511.PDFLibrary::SetTextExtractionWordGap(
  NewWordGap As Double) As Long


int DPLSetTextExtractionWordGap(int InstanceID, double NewWordGap)


NewWordGap The new WordGap ratio

Return values

1 The word gap ratio was set successfully.

Copyright © 2014 Debenu. All rights reserved. AboutContactBlogNewsletterSupport