API Reference

Class

PdfUnderstandingTableCandidate

Namespace OfficeIMO.Pdf
Assembly OfficeIMO.Pdf
Modifiers sealed

A table candidate recovered before general page segmentation. The candidate owns its source lines so later stages can treat the table as one structural object.

Inheritance

  • Object
  • PdfUnderstandingTableCandidate

Usage

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

Constructors

public PdfUnderstandingTableCandidate(String detectionKind, Double yTop, Double yBottom, IReadOnlyList<PdfUnderstandingTableColumn> columns, IReadOnlyList<IReadOnlyList<String>> rows, IReadOnlyList<PdfUnderstandingLine> sourceLines, Double confidence = 0.5, IEnumerable<PdfInferenceEvidence> evidence = null) #

Creates a table candidate for a custom table-detection stage.

Parameters

detectionKind System.String requiredposition: 0
yTop System.Double requiredposition: 1
yBottom System.Double requiredposition: 2
columns System.Collections.Generic.IReadOnlyList{OfficeIMO.Pdf.PdfUnderstandingTableColumn} requiredposition: 3
rows System.Collections.Generic.IReadOnlyList{System.Collections.Generic.IReadOnlyList{System.String}} requiredposition: 4
sourceLines System.Collections.Generic.IReadOnlyList{OfficeIMO.Pdf.PdfUnderstandingLine} requiredposition: 5
confidence System.Double = 0.5 optionalposition: 6
evidence System.Collections.Generic.IEnumerable{OfficeIMO.Pdf.PdfInferenceEvidence} = null optionalposition: 7

Properties

public String DetectionKind { get; } #

Stable detector identifier that produced this candidate.

public Double YTop { get; set; } #

Top Y coordinate in CoordinateSpace.

public Double YBottom { get; set; } #

Bottom Y coordinate in CoordinateSpace.

public IReadOnlyList<PdfUnderstandingTableColumn> Columns { get; } #

Detected columns in CoordinateSpace.

public IReadOnlyList<IReadOnlyList<String>> Rows { get; } #

Extracted row values aligned to Columns.

public IReadOnlyList<PdfUnderstandingLine> SourceLines { get; } #

Exact native understanding-line fragments owned by this table.

public PdfLogicalContentSourceKind SourceKind { get; } #

Whether the candidate came from native PDF operations or accepted OCR geometry.

public PdfTableCoordinateSpace CoordinateSpace { get; } #

Coordinate system used by YTop, YBottom, and Columns.

public Double Confidence { get; } #

Normalized table-detection confidence from 0 to 1.

public IReadOnlyList<PdfInferenceEvidence> Evidence { get; } #

Evidence supporting the table candidate.