PdfTextLayoutOptions
OfficeIMO.Pdf
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
Accepted by parameters 13
- Method PdfDocument.ExtractHeadingsByPage
- Method PdfDocument.ExtractListItemsByPage
- Method PdfDocument.ExtractParagraphsByPage
- Method PdfDocument.ExtractStructuredPages
- Method PdfDocument.ExtractTablesByPage
- Method PdfDocument.ExtractTextWithColumns
- Method PdfDocumentRedactions.Apply
- Method PdfDocumentRedactions.ApplyWithEvidence
- Method PdfDocumentRedactions.Plan
- Method PdfDocumentRedactions.PlanAnnotations
- Method PdfDocumentRedactions.Search
- Method PdfDocumentRenderer.LayoutDebugOverlay
- Method PdfDocumentRenderer.LayoutDebugOverlayPng
Constructors
public PdfTextLayoutOptions() #Inherited Methods
Properties
public OfficeLength MarginLeft { get; set; } #Left page margin in points used when inferring column bounds. Default: 36.
public OfficeLength MarginRight { get; set; } #Right page margin in points used when inferring column bounds. Default: 36.
public OfficeLength BinWidth { get; set; } #Histogram bin width (points) used for gutter detection. Default: 5.
public OfficeLength 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 OfficeLength LineMergeMax { 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 bool 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 bool 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 OfficeLength IgnoreHeaderHeight { get; set; } #Height from top of page (points) to ignore as header 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.