# PdfTextMarkupAnnotation (@salmonui/pdf-viewer)

> The PdfTextMarkupAnnotation interface of @salmonui/pdf-viewer: A text markup annotation. Coordinates are zoom independent.

Canonical: https://salmonui.dev/docs/reference/pdf-viewer/PdfTextMarkupAnnotation

```ts
import type { PdfTextMarkupAnnotation } from '@salmonui/pdf-viewer';
```

Entry index: https://salmonui.dev/docs/reference/pdf-viewer (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/pdf-viewer.md).

## Reference

Kind: interface

```ts
interface PdfTextMarkupAnnotation {
    readonly id: string;
    readonly kind: PdfTextMarkupKind;
    readonly page: number;
    readonly rects: readonly PdfRect[];
    readonly color: string;
    readonly opacity?: number | undefined;
    readonly author?: string | undefined;
    readonly comment?: string | undefined;
    readonly text?: string | undefined;
    readonly createdAt?: string | undefined;
}
```

A text markup annotation. Coordinates are zoom independent.

Members (10):

| Name | Signature | Flags | Description |
| --- | --- | --- | --- |
| `id` | `readonly id: string;` |  |  |
| `kind` | `readonly kind: PdfTextMarkupKind;` |  |  |
| `page` | `readonly page: number;` |  | 1-based page number. |
| `rects` | `readonly rects: readonly PdfRect[];` |  | One rectangle per marked line, PDF user space. |
| `color` | `readonly color: string;` |  | CSS hex color `#rrggbb`. |
| `opacity` | `readonly opacity?: number \| undefined;` | optional | 0..1; default 1 (highlights render with a multiply blend). |
| `author` | `readonly author?: string \| undefined;` | optional |  |
| `comment` | `readonly comment?: string \| undefined;` | optional |  |
| `text` | `readonly text?: string \| undefined;` | optional | The marked text, when known. |
| `createdAt` | `readonly createdAt?: string \| undefined;` | optional | ISO 8601 creation time. |
