API Reference

Class

PdfTextLayoutOptions

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

Public options for column-aware text extraction.

Inheritance

  • Object
  • PdfTextLayoutOptions

Usage

This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.

Accepted by parameters

Constructors

Properties

public Double MarginLeft { get; set; } #

Left page margin in points used when inferring column bounds. Default: 36.

public Double MarginRight { get; set; } #

Right page margin in points used when inferring column bounds. Default: 36.

public Double BinWidth { get; set; } #

Histogram bin width (points) used for gutter detection. Default: 5.

public Double MinGutterWidth { get; set; } #

Minimum detected gutter width (points) to consider a two-column layout. Default: 24.

public Double LineMergeToleranceEm { get; set; } #

Maximum Y delta, expressed in font-size em units, to merge spans into the same text line. Default: 0.6.

public Double LineMergeMaxPoints { get; set; } #

Maximum absolute Y delta (points) to merge spans into the same line. Default: 2.5.

public Boolean ForceSingleColumn { get; set; } #

When true, forces single-column reading order and disables gutter detection. Default: false.

public Boolean JoinHyphenationAcrossLines { get; set; } #

When true, joins hyphenated words broken across line ends. Default: true.

public Double IgnoreHeaderHeight { get; set; } #

Height from top of page (points) to ignore as header when emitting text. Default: 0.

public Double IgnoreFooterHeight { get; set; } #

Height from bottom of page (points) to ignore as footer when emitting text. Default: 0.

public Double GapSpaceThresholdEm { get; set; } #

Threshold in em units to insert a space between adjacent spans on the same line. Default: 0.35.

public Double GapGlyphFactor { get; set; } #

Threshold as a fraction of previous span's average glyph advance to insert a space. Default: 0.60.