Hierarchy
Properties
id
An ID that is unique inside one page to reference the text line across the document.
pageIndex
The page index on which the text line is placed.
pageIndex is zero-based and has a maximum value of totalPageCount - 1.
Immutable Record API
31
"[iterator]"(): IterableIterator<
[
keyof { … },
| string
| number
| NutrientViewer.Geometry.Rect
| { length: number; start: number }
| Hints
| { … }
| { … }[]
| null,
],
>Returns
IterableIterator<
[
keyof { … },
| string
| number
| NutrientViewer.Geometry.Rect
| { length: number; start: number }
| Hints
| { … }
| { … }[]
| null
]
>
Returns
thisSee Also
Map#asImmutable
Returns
thisSee Also
Map#asMutable
Returns a new instance of this Record type with all values set to their default values.
Returns
this
delete<K extends keyof { … }>(key: K): this
Returns a new instance of this Record type with the value for the specific key set to its default value.
Parameters
otherunknownReturns
boolean
Returns the value associated with the provided key, which may be the default value defined when creating the Record factory function.
If the requested key is not defined by this Record type, then notSetValue will be returned if provided. Note that this scenario would produce an error when using Flow or TypeScript.
- has(
key: string,
): key is
| "id"
| "pageIndex"
| "boundingBox"
| "contents"
| "visualTextRange"
| "hints"
| "syntheticTextSelectionFont"
| "syntheticTextSelectionRuns"Parameters
keystringReturns
key is
| "id"
| "pageIndex"
| "boundingBox"
| "contents"
| "visualTextRange"
| "hints"
| "syntheticTextSelectionFont"
| "syntheticTextSelectionRuns"
Returns
number
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
Parameters
keyPathIterable<unknown>...collectionsunknown[]Returns
this
remove<K extends keyof { … }>(key: K): this
Parameters
keyPathIterable<unknown>valueunknownReturns
this
Deeply converts this Record to equivalent native JavaScript Object.
Note: This method may not be overridden. Objects with custom serialization to plain JS may override toJSON() instead.
Returns
{ … }
boundingBox: unknown
Position of this text line on the page.
contents: string
Content of the text line.
Text lines end with CRLF (
\r\n).hints: unknown
Hints for the text line.
id: number | null
An ID that is unique inside one page to reference the text line across the document.
pageIndex: number | null
The page index on which the text line is placed.
pageIndexis zero-based and has a maximum value oftotalPageCount - 1.
Shallowly converts this Record to equivalent native JavaScript Object.
Returns
{ … }
boundingBox: NutrientViewer.Geometry.Rect
Position of this text line on the page.
contents: string
Content of the text line.
Text lines end with CRLF (
\r\n).hints: Hints | null
Hints for the text line.
id: number | null
An ID that is unique inside one page to reference the text line across the document.
pageIndex: number | null
The page index on which the text line is placed.
pageIndexis zero-based and has a maximum value oftotalPageCount - 1.
Shallowly converts this Record to equivalent JavaScript Object.
Returns
{ … }
boundingBox: NutrientViewer.Geometry.Rect
Position of this text line on the page.
contents: string
Content of the text line.
Text lines end with CRLF (
\r\n).hints: Hints | null
Hints for the text line.
id: number | null
An ID that is unique inside one page to reference the text line across the document.
pageIndex: number | null
The page index on which the text line is placed.
pageIndexis zero-based and has a maximum value oftotalPageCount - 1.
toSeq(): Keyed<
keyof { … },
| string
| number
| NutrientViewer.Geometry.Rect
| { length: number; start: number }
| Hints
| { … }
| { … }[]
| null,
>Returns
Keyed<
keyof { … },
| string
| number
| NutrientViewer.Geometry.Rect
| { length: number; start: number }
| Hints
| { … }
| { … }[]
| null
>
Parameters
keyPathIterable<unknown>updater(value: unknown) => unknownReturns
this
Returns
booleanSee Also
Map#wasAltered
Note: Not all methods can be used on a mutable collection or within
withMutations! Onlysetmay be used mutatively.Parameters
mutator(mutable: this) => unknownReturns
thisSee Also
Map#withMutations
A line of text displayed at a specific bounding box in the PDF file.
You can retrieve text lines using NutrientViewer.Instance#textLinesForPageIndex.