Skip to content

TextLineItem

Defined in: src/layout/page-doc.ts:334

A laid-out line of text (tokens carry their fonts/sizes/positions).

readonly optional artifact?: "pagination"

Defined in: src/layout/page-doc.ts:330

Tagged PDF: explicitly mark this item as a pagination artifact (running header/footer, §14.8.2.2.2). Distinguishes header/footer text from not-yet-tagged body content so it is typed /Artifact /Pagination, never a P.

PageItemBase.artifact


readonly baselineY: Pt

Defined in: src/layout/page-doc.ts:339

Distance from the page TOP down to the text baseline.


readonly optional behind?: boolean

Defined in: src/layout/page-doc.ts:314

§20.4.2.3 @behindDoc — the item is BEHIND the page’s content: a watermark, a slide’s backdrop. Such items paint before everything else, in their own order. Without that they rode the ordinary passes, where every shape paints after every image — so a slide’s white backdrop covered the photograph the slide is made of (corpus: tdf156808, tdf157635, tdf156856).

PageItemBase.behind


readonly optional clip?: object

Defined in: src/layout/page-doc.ts:340

readonly height: Pt

readonly width: Pt

readonly x: Pt

readonly y: Pt


readonly line: Line

Defined in: src/layout/page-doc.ts:336


readonly originX: Pt

Defined in: src/layout/page-doc.ts:337


readonly optional pictureId?: number

Defined in: src/layout/page-doc.ts:324

The picture this item belongs to, when it is part of one. A metafile is a list of drawing orders, and text among them is BOTH over what came before and under what comes after: an embedded diagram writes a label, lays a panel over it and writes the label again, offset, as its own drop shadow. Painted in the ordinary passes — every shape, then every line — the buried copy would show through the panel. Items sharing this id are held out of those passes and painted together, in list order.

PageItemBase.pictureId


readonly optional rotationDeg?: number

Defined in: src/layout/page-doc.ts:347

Counter-clockwise rotation about (originX, baselineY), in degrees. A value-axis title reads bottom-to-top in every reader (§21.2.2.216 c:title/c:tx/…/a:bodyPr@rot = -5400000, i.e. 90°); drawn flat it sat over the plot’s own tick labels. Absent ⇒ horizontal.


readonly optional structId?: number

Defined in: src/layout/page-doc.ts:306

Tagged PDF (§14.8): the logical structure node this item’s content belongs to. Set only on body content in tagged mode; undefined text in the line pass is treated as an artifact. Ignored when not tagging.

PageItemBase.structId


readonly type: "line"

Defined in: src/layout/page-doc.ts:335


readonly optional warp?: TextLineWarp

Defined in: src/layout/page-doc.ts:353

§20.1.9.10 a:prstTxWarp — the line is WordArt: each glyph is placed on its own, bent through the preset’s curve and stretched onto the shape’s box. Absent ⇒ the line is set flat, one text matrix for the whole of it.


readonly optional z?: number

Defined in: src/layout/page-doc.ts:300

§20.4.2.3 — the float’s relativeHeight. Items with one are sorted by it inside their layer before the page is written; the rest keep their order.

PageItemBase.z