# PdfUnderstandingTableCandidate

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.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`12511d2fa560` with working tree changes

**Source**

[PdfUnderstandingTableCandidate.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L58)

**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

## Remarks

Native page coordinates use default user-space units: one unit is /UserUnit physical points (1/72 inch each), defaulting to 1. Local text/font and matrix values retain their native coordinate spaces. Explicit visual projections use their documented coordinates.

## Usage

Explore 3 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

- Method [IPdfTableDetectionStage.DetectTables](/api/pdf/officeimo-pdf-ipdftabledetectionstage/#method-detecttables-officeimo-pdf-pdfunderstandingpagecontext-collections-generic-ireadonlylist-officeimo-pdf-pdfunderstandingline)
- Property [PdfUnderstandingPageContext.TableCandidates](/api/pdf/officeimo-pdf-pdfunderstandingpagecontext/#property-tablecandidates)
- Property [PdfUnderstandingPageResult.TableCandidates](/api/pdf/officeimo-pdf-pdfunderstandingpageresult/#property-tablecandidates)

Filter members 

Show inherited

## 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)` [#](#member-660ce9863aabdeeba765da7a)

[PdfUnderstandingTableCandidate.cs:58](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L58)

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

Parameters

**detectionKind string required**

**yTop double required**

**yBottom double required**

**columns System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfUnderstandingTableColumn> required**

**rows System.Collections.Generic.IReadOnlyList<System.Collections.Generic.IReadOnlyList<string>> required**

**sourceLines System.Collections.Generic.IReadOnlyList<OfficeIMO.Pdf.PdfUnderstandingLine> required**

**confidence double = 0.5 optional**

**evidence System.Collections.Generic.IEnumerable<OfficeIMO.Pdf.PdfInferenceEvidence>? = null optional**

## 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 string DetectionKind { get; }` [#](#property-detectionkind)

[PdfUnderstandingTableCandidate.cs:127](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L127)

Stable detector identifier that produced this candidate.

`public double YTop { get; private set; }` [#](#property-ytop)

[PdfUnderstandingTableCandidate.cs:130](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L130)

Top Y coordinate in [PdfUnderstandingTableCandidate.CoordinateSpace](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/).

`public double YBottom { get; private set; }` [#](#property-ybottom)

[PdfUnderstandingTableCandidate.cs:133](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L133)

Bottom Y coordinate in [PdfUnderstandingTableCandidate.CoordinateSpace](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/).

`public IReadOnlyList<PdfUnderstandingTableColumn> Columns { get; }` [#](#property-columns)

[PdfUnderstandingTableCandidate.cs:136](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L136)

Detected columns in [PdfUnderstandingTableCandidate.CoordinateSpace](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/).

`public IReadOnlyList<IReadOnlyList<string>> Rows { get; }` [#](#property-rows)

[PdfUnderstandingTableCandidate.cs:139](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L139)

Extracted row values aligned to [PdfUnderstandingTableCandidate.Columns](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/).

`public IReadOnlyList<PdfUnderstandingLine> SourceLines { get; }` [#](#property-sourcelines)

[PdfUnderstandingTableCandidate.cs:142](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L142)

Exact native understanding-line fragments owned by this table.

`public PdfLogicalContentSourceKind SourceKind { get; }` [#](#property-sourcekind)

[PdfUnderstandingTableCandidate.cs:145](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L145)

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

`public PdfTableCoordinateSpace CoordinateSpace { get; }` [#](#property-coordinatespace)

[PdfUnderstandingTableCandidate.cs:148](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L148)

Coordinate system used by [PdfUnderstandingTableCandidate.YTop](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/), [PdfUnderstandingTableCandidate.YBottom](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/), and [PdfUnderstandingTableCandidate.Columns](/api/pdf/officeimo-pdf-pdfunderstandingtablecandidate/).

`public double Confidence { get; }` [#](#property-confidence)

[PdfUnderstandingTableCandidate.cs:151](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L151)

Normalized table-detection confidence from 0 to 1.

`public IReadOnlyList<PdfInferenceEvidence> Evidence { get; }` [#](#property-evidence)

[PdfUnderstandingTableCandidate.cs:154](https://github.com/EvotecIT/OfficeIMO/blob/12511d2fa560784a40564a2dc62102d2005ed547/OfficeIMO.Pdf/Reading/Understanding/PdfUnderstandingTableCandidate.cs#L154)

Evidence supporting the table candidate.

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