Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DocumentPage

Package version

Content and layout elements extracted from a page from the input. Content and layout elements extracted from a page from the input.

Hierarchy

  • DocumentPage

Index

Properties

Optional angle

angle: undefined | number

The general orientation of the content in clockwise direction, measured in degrees between (-180, 180]. The general orientation of the content in clockwise direction, measured in degrees between (-180, 180].

Optional height

height: undefined | number

The height of the image/PDF in pixels/inches, respectively. The height of the image/PDF in pixels/inches, respectively.

Optional lines

lines: DocumentLine[]

Extracted lines from the page, potentially containing both textual and visual elements. Extracted lines from the page, potentially containing both textual and visual elements.

pageNumber

pageNumber: number

1-based page number in the input document. 1-based page number in the input document.

Optional selectionMarks

selectionMarks: DocumentSelectionMark[]

Extracted selection marks from the page. Extracted selection marks from the page.

spans

spans: DocumentSpan[]

Location of the page in the reading order concatenated content. Location of the page in the reading order concatenated content.

Optional unit

The unit used by the width, height, and polygon properties. For images, the unit is "pixel". For PDF, the unit is "inch". The unit used by the width, height, and polygon properties. For images, the unit is "pixel". PDF, the unit is "inch".

Optional width

width: undefined | number

The width of the image/PDF in pixels/inches, respectively. The width of the image/PDF in pixels/inches, respectively.

Optional words

words: DocumentWord[]

Extracted words from the page. Extracted words from the page.

Generated using TypeDoc