Skip to content
Lamina PDF
0.9.0
GitHub
Open the web app

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

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: number;

Defined in: packages/sdk/src/generated/extract.ts:318

How many images the page draws, in its forms too.


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: 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: TextLayerStatus;

Defined in: packages/sdk/src/generated/extract.ts:324

The verdict.


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.