# PdfLogicalHeading

Heuristic heading line inferred from text size and geometry.

Class 

`OfficeIMO.Pdf`

**Namespace**

`OfficeIMO.Pdf`

**Assembly**

`OfficeIMO.Pdf`

**Source revision**

`be6c300e4ab1` with working tree changes

**Source**

[PdfLogicalTextElements.cs:273](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L273)

**Modifiers**

sealed

Heuristic heading line inferred from text size and geometry.

## Inheritance

- object
- PdfLogicalHeading

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

- Property [PdfDocumentReadResult.Headings](/api/pdf/officeimo-pdf-pdfdocumentreadresult/#property-headings)
- Property [PdfLogicalPage.Headings](/api/pdf/officeimo-pdf-pdflogicalpage/#property-headings)
- Property [PdfLogicalSection.Heading](/api/pdf/officeimo-pdf-pdflogicalsection/#property-heading)

Filter members 

Show inherited

## 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 int PageNumber { get; }` [#](#property-pagenumber)

[PdfLogicalTextElements.cs:273](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L273)

One-based source page number.

`public int Level { get; private set; }` [#](#property-level)

[PdfLogicalTextElements.cs:276](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L276)

Best-effort heading level, where 1 is the largest heading tier.

`public string Text { get; }` [#](#property-text)

[PdfLogicalTextElements.cs:279](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L279)

Heading text.

`public double FontSize { get; }` [#](#property-fontsize)

[PdfLogicalTextElements.cs:282](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L282)

Representative font size in page user-space units.

`public PdfLogicalTextBlock Line { get; }` [#](#property-line)

[PdfLogicalTextElements.cs:285](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L285)

Line-level text block that produced the heading.

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

[PdfLogicalTextElements.cs:287](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L287)

Normalized heading-classification confidence.

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

[PdfLogicalTextElements.cs:289](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L289)

Evidence supporting the heading classification.

`public IReadOnlyList<PdfLogicalTextBlock> Lines { get; }` [#](#property-lines)

[PdfLogicalTextElements.cs:298](https://github.com/EvotecIT/OfficeIMO/blob/be6c300e4ab1859837b961c64fbfb2b2a1886cd0/Sources/OfficeIMO.Pdf/Reading/Logical/PdfLogicalTextElements.cs#L298)

Source lines of the heading in reading order: [PdfLogicalHeading.Line](/api/pdf/officeimo-pdf-pdflogicalheading/) followed by the lines of a heading that wraps (a long title, or one set beside a logo).

<!-- PowerForge markdown artifact sha256:56793D80005AD763A6C998A2EF84DEA14D59577C912FA50178CED63E4784BFF7 -->
