Skip to content

zeropdf v1.3.0


zeropdf / PositionedTextRun

Interface: PositionedTextRun

Defined in: src/internal/text-extract.ts:14

A single positioned text run produced by extraction.

Properties

PropertyModifierTypeDescriptionDefined in
fontName?readonlystringActive font resource name (e.g. "F1"); undefined when no font is set.src/internal/text-extract.ts:26
fontSizereadonlynumberActive font size at the time of emission.src/internal/text-extract.ts:24
mcid?readonlynumberMarked-content MCID covering this run, if any.src/internal/text-extract.ts:28
mcTag?readonlystringMarked-content tag (e.g. "P", "Span", "Artifact") covering this run, if any.src/internal/text-extract.ts:30
textreadonlystringDecoded Unicode text.src/internal/text-extract.ts:16
widthreadonlynumberWidth of the run in user-space points (sum of glyph advances).src/internal/text-extract.ts:22
xreadonlynumberOrigin x in user space (PDF points).src/internal/text-extract.ts:18
yreadonlynumberOrigin y in user space (PDF points).src/internal/text-extract.ts:20

Released under the ISC license.