# PdfTextLayoutOptions

Public options for column-aware text extraction.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfTextLayoutOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L18)

**Modifiers**

sealed

Public options for column-aware text extraction.

## Inheritance

- object
- PdfTextLayoutOptions

## Usage

Explore 16 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.

### Returned or exposed by 3

- Property [PdfLoadOptions.LayoutOptions](/api/pdf/officeimo-pdf-pdfloadoptions/#property-layoutoptions)
- Property [PdfLogicalTableTextExportOptions.LayoutOptions](/api/pdf/officeimo-pdf-pdflogicaltabletextexportoptions/#property-layoutoptions)
- Property [PdfUnderstandingPageContext.LayoutOptions](/api/pdf/officeimo-pdf-pdfunderstandingpagecontext/#property-layoutoptions)

### Accepted by parameters 13

- Method [PdfDocument.ExtractHeadingsByPage](/api/pdf/officeimo-pdf-pdfdocument/#method-extractheadingsbypage-officeimo-pdf-pdftextlayoutoptions) parameter `options`
- Method [PdfDocument.ExtractListItemsByPage](/api/pdf/officeimo-pdf-pdfdocument/#method-extractlistitemsbypage-officeimo-pdf-pdftextlayoutoptions) parameter `options`
- Method [PdfDocument.ExtractParagraphsByPage](/api/pdf/officeimo-pdf-pdfdocument/#method-extractparagraphsbypage-officeimo-pdf-pdftextlayoutoptions) parameter `options`
- Method [PdfDocument.ExtractStructuredPages](/api/pdf/officeimo-pdf-pdfdocument/#method-extractstructuredpages-officeimo-pdf-pdftextlayoutoptions) parameter `options`
- Method [PdfDocument.ExtractTablesByPage](/api/pdf/officeimo-pdf-pdfdocument/#method-extracttablesbypage-officeimo-pdf-pdftextlayoutoptions) parameter `options`
- Method [PdfDocument.ExtractTextWithColumns](/api/pdf/officeimo-pdf-pdfdocument/#method-extracttextwithcolumns-officeimo-pdf-pdftextlayoutoptions) parameter `options`
- Method [PdfDocumentRedactions.Apply](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-apply-collections-generic-ienumerable-officeimo-pdf-pdfredactionarea-officeimo-pdf-pdfredactionapplyoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `layoutOptions`
- Method [PdfDocumentRedactions.ApplyWithEvidence](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-applywithevidence-officeimo-pdf-pdfredactionplan-officeimo-pdf-pdfredactionapplyoptions-officeimo-pdf-pdfredactionverificationoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `layoutOptions`
- Method [PdfDocumentRedactions.Plan](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-plan-collections-generic-ienumerable-officeimo-pdf-pdfredactionregion-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `layoutOptions`
- Method [PdfDocumentRedactions.PlanAnnotations](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-planannotations-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions) parameter `layoutOptions`
- Method [PdfDocumentRedactions.Search](/api/pdf/officeimo-pdf-pdfdocumentredactions/#method-search-officeimo-pdf-pdfredactionsearchoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions-threading-cancellationtoken) parameter `layoutOptions`
- Method [PdfDocumentRenderer.LayoutDebugOverlay](/api/pdf/officeimo-pdf-pdfdocumentrenderer/#method-layoutdebugoverlay-int32-officeimo-pdf-pdflayoutdebugoverlayoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions) parameter `layoutOptions`
- Method [PdfDocumentRenderer.LayoutDebugOverlayPng](/api/pdf/officeimo-pdf-pdfdocumentrenderer/#method-layoutdebugoverlaypng-int32-double-officeimo-pdf-pdflayoutdebugoverlayoptions-officeimo-pdf-pdftextlayoutoptions-officeimo-pdf-pdfloadoptions) parameter `layoutOptions`

Filter members 

Show inherited

## Constructors

`public PdfTextLayoutOptions()` [#](#constructor-ctor)

[PdfTextLayoutOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L18)

## Inherited Methods

`public virtual bool Equals(object? obj)` [#](#method-equals-object)

Inherited from object

Parameters

**obj object? required**

Returns

`bool`

`public virtual int GetHashCode()` [#](#method-gethashcode)

Inherited from object

Returns

`int`

`public Type GetType()` [#](#method-gettype)

Inherited from object

Returns

`Type`

`public virtual string? ToString()` [#](#method-tostring)

Inherited from object

Returns

`string?`

## Properties

`public OfficeLength MarginLeft { get; set; }` [#](#property-marginleft)

[PdfTextLayoutOptions.cs:18](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L18)

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

`public OfficeLength MarginRight { get; set; }` [#](#property-marginright)

[PdfTextLayoutOptions.cs:20](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L20)

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

`public OfficeLength BinWidth { get; set; }` [#](#property-binwidth)

[PdfTextLayoutOptions.cs:22](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L22)

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

`public OfficeLength MinGutterWidth { get; set; }` [#](#property-mingutterwidth)

[PdfTextLayoutOptions.cs:24](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L24)

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

`public double LineMergeToleranceEm { get; set; }` [#](#property-linemergetoleranceem)

[PdfTextLayoutOptions.cs:26](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L26)

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 OfficeLength LineMergeMax { get; set; }` [#](#property-linemergemax)

[PdfTextLayoutOptions.cs:28](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L28)

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 bool ForceSingleColumn { get; set; }` [#](#property-forcesinglecolumn)

[PdfTextLayoutOptions.cs:30](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L30)

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

`public PdfReadingDirection ReadingDirection { get; set; }` [#](#property-readingdirection)

[PdfTextLayoutOptions.cs:32](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L32)

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

`public bool JoinSoftHyphensAcrossLines { get; set; }` [#](#property-joinsofthyphensacrosslines)

[PdfTextLayoutOptions.cs:38](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L38)

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 OfficeLength IgnoreHeaderHeight { get; set; }` [#](#property-ignoreheaderheight)

[PdfTextLayoutOptions.cs:40](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L40)

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

`public OfficeLength IgnoreFooterHeight { get; set; }` [#](#property-ignorefooterheight)

[PdfTextLayoutOptions.cs:42](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L42)

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

`public double GapSpaceThresholdEm { get; set; }` [#](#property-gapspacethresholdem)

[PdfTextLayoutOptions.cs:44](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L44)

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

`public double GapGlyphFactor { get; set; }` [#](#property-gapglyphfactor)

[PdfTextLayoutOptions.cs:46](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Layout/PdfTextLayoutOptions.cs#L46)

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

<!-- PowerForge markdown artifact sha256:A9736CE50DF9D24DF259ED09F94559092183310D90730FE6BACF4063E40CA927 -->
