pdfSetTextExtractionWordGap
Set the horizontal gap threshold (in text-space units) above
| Category | Text extraction tuning |
|---|
Purpose — Set the horizontal gap threshold (in text-space units) above which the text-extraction routines insert a space between two adjacent runs that don't already have one.
Description — Consumed by the run-to-text assembler (RunsToText) used by the extraction APIs; confirmed live (not a stored-only field) by tracing its two call sites in the extraction path.
Declarations
int32_t __stdcall pdfSetTextExtractionWordGap(PPDF IPDF, double NewWordGap);
function pdfSetTextExtractionWordGap(const IPDF: PPDF; NewWordGap: Double): Integer; stdcall; external 'LumasPdf.dll';
Parameters
| Parameter | Type | Description |
|---|---|---|
IPDF | PPDF | Instance handle. |
NewWordGap | Double | Gap threshold in text-space units above which a synthetic space is inserted between runs during extraction. |
Return value — 1 on a valid handle; 0 on an invalid handle.
See also — pdfSetTextExtractionScaling
C# (P/Invoke)
public static extern int pdfSetTextExtractionWordGap(IntPtr IPDF, double NewWordGap);
Setters
pdfSetTextExtractionWordGap
The …A form takes UTF-8, …W
takes UTF-16; a bare name aliases the ANSI form.
Worked examples — complete programs in ten languages.