---
title: "TextLayer"
version: "0.9.0"
url: "https://docs.laminapdf.com/reference/sdk/type-aliases/textlayer/"
---

# TextLayer

```ts
type TextLayer = object;
```

Defined in: [packages/sdk/src/generated/extract.ts:312](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L312)

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.

## Since

0.2.0

## Properties

### chars

```ts
chars: number;
```

Defined in: [packages/sdk/src/generated/extract.ts:314](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L314)

Visible characters (spaces left out) in runs that aren't invisible, off the page or tiny.

***

### images

```ts
images: number;
```

Defined in: [packages/sdk/src/generated/extract.ts:318](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L318)

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

***

### imageShare

```ts
imageShare: number;
```

Defined in: [packages/sdk/src/generated/extract.ts:316](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L316)

The share of the page the images cover, measured on a 32 × 32 grid.

***

### invisibleChars

```ts
invisibleChars: number;
```

Defined in: [packages/sdk/src/generated/extract.ts:320](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L320)

Characters drawn invisibly (text rendering mode 3 or 7), such as an OCR layer.

***

### paths

```ts
paths: number;
```

Defined in: [packages/sdk/src/generated/extract.ts:322](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L322)

How many paths the page paints (fills and strokes).

***

### status

```ts
status: TextLayerStatus;
```

Defined in: [packages/sdk/src/generated/extract.ts:324](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L324)

The verdict.

***

### unmappedShare

```ts
unmappedShare: number;
```

Defined in: [packages/sdk/src/generated/extract.ts:326](https://github.com/laudebugs/laminapdf/blob/v0.9.0/packages/sdk/src/generated/extract.ts#L326)

The share of the visible runs' glyphs that map to no Unicode; 0 with no visible glyphs.
