Appearance
zeropdf / PositionedTextRun
Interface: PositionedTextRun
Defined in: src/internal/text-extract.ts:14
A single positioned text run produced by extraction.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
fontName? | readonly | string | Active font resource name (e.g. "F1"); undefined when no font is set. | src/internal/text-extract.ts:26 |
fontSize | readonly | number | Active font size at the time of emission. | src/internal/text-extract.ts:24 |
mcid? | readonly | number | Marked-content MCID covering this run, if any. | src/internal/text-extract.ts:28 |
mcTag? | readonly | string | Marked-content tag (e.g. "P", "Span", "Artifact") covering this run, if any. | src/internal/text-extract.ts:30 |
text | readonly | string | Decoded Unicode text. | src/internal/text-extract.ts:16 |
width | readonly | number | Width of the run in user-space points (sum of glyph advances). | src/internal/text-extract.ts:22 |
x | readonly | number | Origin x in user space (PDF points). | src/internal/text-extract.ts:18 |
y | readonly | number | Origin y in user space (PDF points). | src/internal/text-extract.ts:20 |