Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface DocumentLine

Package version

A content line object consisting of an adjacent sequence of content elements, such as words and selection marks. A line of adjacent content elements on a page.

Hierarchy

  • DocumentLine

Index

Properties

Optional boundingBox

boundingBox: number[]

Bounding box of the line. Bounding box of the line.

content

content: string

Concatenated content of the contained elements in reading order. Concatenated content of the contained elements in reading order.

spans

spans: DocumentSpan[]

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

words

words: () => IterableIterator<DocumentWord>

Compute the DocumentWords that are related to this line.

This function produces a lazy iterator that will yield one word before computing the next.

Type declaration

Generated using TypeDoc