Skip to main content

Search OfficeIMO

Enter a topic, API type, or PowerShell command.

Documentation Search all OfficeIMO/

API Reference

Class

PdfTextLayoutOptions

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Source revision c8404474f9f2 with working tree changes
Modifiers sealed

Public options for column-aware text extraction.

Inheritance

  • Object
  • PdfTextLayoutOptions

Usage

Explore 29 API references to this type

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

Accepted by parameters 26

Constructors

public PdfTextLayoutOptions() #

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 baseline-normal delta in font-size em units for ordinary line clustering. Default: 0.6. A stricter value disables conservative inline-script attachment.

public Double LineMergeMaxPoints { get; set; } #

Maximum absolute baseline-normal delta for ordinary line clustering. Default: 2.5 points. With both merge limits at least their defaults, adjacent smaller-font scripts may attach to a unique base line; a stricter value retains baseline-only grouping.

public Boolean ForceSingleColumn { get; set; } #

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

public PdfReadingDirection ReadingDirection { get; set; } #

Horizontal reading direction used for words and column partitions. Default: Auto.

public Boolean JoinSoftHyphensAcrossLines { get; set; } #

When true, removes an explicit soft hyphen before a line break. Visible hyphens are preserved because PDF layout and letter case cannot prove that they are discretionary. Default: false.

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.