• DR-IT Software
  • Products
  • Documentation
  • Product page
  • Examples
  • API reference
  • Support
Show / Hide Table of Contents

Class PdfImportLayoutProfile

Deterministic thresholds and sanitization settings used by the PDF import layout stages.

Inheritance
object
PdfImportLayoutProfile
Inherited Members
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
object.GetType()
Namespace: DRIT.Document.Import.Pdf
Assembly: DRIT.Document.dll
Syntax
public sealed class PdfImportLayoutProfile

Constructors

PdfImportLayoutProfile()

Initializes a new PdfImportLayoutProfile from normalized PDF extraction data.

Declaration
public PdfImportLayoutProfile()

Fields

CurrentVersion

Gets the version identifier for the layout profile.

Declaration
public const string CurrentVersion = "1"
Field Value
Type Description
string

Properties

CoordinatePrecisionDigits

Number of decimal places used by deterministic Phase B snapshots.

Declaration
public int CoordinatePrecisionDigits { get; init; }
Property Value
Type Description
int

Default

Gets the default layout profile used when no profile is supplied.

Declaration
public static PdfImportLayoutProfile Default { get; }
Property Value
Type Description
PdfImportLayoutProfile

HeaderFooterMinimumPageCount

Gets the minimum page count used to identify repeated headers and footers.

Declaration
public int HeaderFooterMinimumPageCount { get; init; }
Property Value
Type Description
int

HeaderFooterPositionTolerancePoints

Gets the vertical tolerance used for header and footer matching, in points.

Declaration
public double HeaderFooterPositionTolerancePoints { get; init; }
Property Value
Type Description
double

InlineImageTextGapPoints

Maximum normalized gap in points for associating an image with reconstructed text.

Declaration
public double InlineImageTextGapPoints { get; init; }
Property Value
Type Description
double

LatticeLineSnapTolerancePoints

Maximum point distance used when snapping ruled lattice lines.

Declaration
public double LatticeLineSnapTolerancePoints { get; init; }
Property Value
Type Description
double

LatticeMinimumCellSizePoints

Smallest editable lattice cell dimension in points.

Declaration
public double LatticeMinimumCellSizePoints { get; init; }
Property Value
Type Description
double

LatticeMinimumTableConfidence

Minimum confidence required before a lattice candidate becomes a table.

Declaration
public double LatticeMinimumTableConfidence { get; init; }
Property Value
Type Description
double

MinimumLayoutConfidence

Gets the confidence threshold required for deterministic layout selection.

Declaration
public double MinimumLayoutConfidence { get; init; }
Property Value
Type Description
double

NormalizeBounds

Whether source rectangles are normalized before mapping.

Declaration
public bool NormalizeBounds { get; init; }
Property Value
Type Description
bool

SanitizePrimitives

Whether malformed primitive values are replaced and reported.

Declaration
public bool SanitizePrimitives { get; init; }
Property Value
Type Description
bool

TextLineVerticalTolerancePoints

Gets the vertical tolerance used to group text lines, in points.

Declaration
public double TextLineVerticalTolerancePoints { get; init; }
Property Value
Type Description
double

TextRunGapTolerancePoints

Gets the horizontal gap tolerance used to group text runs, in points.

Declaration
public double TextRunGapTolerancePoints { get; init; }
Property Value
Type Description
double

Version

Gets the profile version used to validate deterministic settings.

Declaration
public string Version { get; init; }
Property Value
Type Description
string

Methods

Validate()

Validates profile values and throws when they cannot be used safely.

Declaration
public void Validate()
Back to top

DR-IT Software documentation

DR-IT Software · Products · Documentation index · Product page · Downloads · Support · Licensing

Generated by DocFX