Table of Contents

Constructor PageElement

Namespace
LMKit.Extraction.Layout
Assembly
LM-Kit.NET.dll

PageElement(IEnumerable<TextElement>, double, double, int, double)

Initializes a new instance of the PageElement class with structured text elements, page dimensions, rotation, and skew information.

[JsonConstructor]
public PageElement(IEnumerable<TextElement> textElements, double width, double height, int rotation = 0, double skew = 0)

Parameters

textElements IEnumerable<TextElement>

The layout-aware text elements to associate with the page.

width double

The width of the page in points.

height double

The height of the page in points.

rotation int

The detected rotation of the page in degrees clockwise (e.g., 0, 90, 180, or 270).

skew double

The detected skew angle of the page in degrees clockwise.

PageElement(IEnumerable<TextElement>)

Initializes a new instance of the PageElement class with structured text elements only.

public PageElement(IEnumerable<TextElement> textElements)

Parameters

textElements IEnumerable<TextElement>

The layout-aware text elements to associate with the page.

PageElement(string)

Initializes a new instance of the PageElement class with plain unstructured text only. This constructor should be used when no layout or bounding box information is available.

public PageElement(string text)

Parameters

text string

The unstructured textual content of the page.