Skip to content

PageItemBase

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

The fields every PageItem shares (ir-design §6, frozen at stage 6.4): the positioned, layout-output vocabulary a page is made of. Page-frame geometry is branded Pt (PostScript points) with a TOP-LEFT origin, y growing downward (like CSS/SVG); the PDF emitter converts into PDF’s native y-up frame at emission. Offsets measured from a text baseline (math/inline-image boxes inside a Line) and styling magnitudes (font/stroke sizes) stay plain numbers — they are not page-frame coordinates.

readonly optional artifact?: "pagination"

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

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.


readonly optional structId?: number

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

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.