TextLayer
type TextLayer = object;Defined in: packages/sdk/src/generated/extract.ts:312
What a page’s text layer is: whether its extracted text is the page’s text, or the page needs OCR. The measures let a pipeline apply its own cut-offs.
0.2.0
Properties
Section titled “Properties”chars: number;Defined in: packages/sdk/src/generated/extract.ts:314
Visible characters (spaces left out) in runs that aren’t invisible, off the page or tiny.
images
Section titled “images”images: number;Defined in: packages/sdk/src/generated/extract.ts:318
How many images the page draws, in its forms too.
imageShare
Section titled “imageShare”imageShare: number;Defined in: packages/sdk/src/generated/extract.ts:316
The share of the page the images cover, measured on a 32 × 32 grid.
invisibleChars
Section titled “invisibleChars”invisibleChars: number;Defined in: packages/sdk/src/generated/extract.ts:320
Characters drawn invisibly (text rendering mode 3 or 7), such as an OCR layer.
paths: number;Defined in: packages/sdk/src/generated/extract.ts:322
How many paths the page paints (fills and strokes).
status
Section titled “status”status: TextLayerStatus;Defined in: packages/sdk/src/generated/extract.ts:324
The verdict.
unmappedShare
Section titled “unmappedShare”unmappedShare: number;Defined in: packages/sdk/src/generated/extract.ts:326
The share of the visible runs’ glyphs that map to no Unicode; 0 with no visible glyphs.