API reference: the typed public API — the Ream class, the readers and writers, and the document model on the `reamkit/document-model` subpath # reamkit ## Modules [Section titled “Modules”](#modules) * [core/document-model](/api/core/document-model/) * [index](/api/index/) # core/document-model The typed document model — the OOXML-faithful node types (paragraphs, runs, tables, sections, drawings, charts, math) that the readers populate and the writers consume. Imported via the `reamkit/document-model` subpath. ## Interfaces [Section titled “Interfaces”](#interfaces) * [AbstractNumbering](/api/core/document-model/interfaces/abstractnumbering/) * [Border](/api/core/document-model/interfaces/border/) * [CellBorders](/api/core/document-model/interfaces/cellborders/) * [CellDataBar](/api/core/document-model/interfaces/celldatabar/) * [CellIcon](/api/core/document-model/interfaces/cellicon/) * [CellMargins](/api/core/document-model/interfaces/cellmargins/) * [CellNoteFlag](/api/core/document-model/interfaces/cellnoteflag/) * [CellProperties](/api/core/document-model/interfaces/cellproperties/) * [CellShading](/api/core/document-model/interfaces/cellshading/) * [CellSparkline](/api/core/document-model/interfaces/cellsparkline/) * [Chart](/api/core/document-model/interfaces/chart/) * [ChartBlock](/api/core/document-model/interfaces/chartblock/) * [ChartDataLabels](/api/core/document-model/interfaces/chartdatalabels/) * [ChartDataPoint](/api/core/document-model/interfaces/chartdatapoint/) * [ChartLineStyle](/api/core/document-model/interfaces/chartlinestyle/) * [ChartMarker](/api/core/document-model/interfaces/chartmarker/) * [ChartSeries](/api/core/document-model/interfaces/chartseries/) * [ChartSurface](/api/core/document-model/interfaces/chartsurface/) * [ChartTextStyle](/api/core/document-model/interfaces/charttextstyle/) * [ChartTextStyles](/api/core/document-model/interfaces/charttextstyles/) * [Comment](/api/core/document-model/interfaces/comment/) * [CustomGeometry](/api/core/document-model/interfaces/customgeometry/) * [DocumentModel](/api/core/document-model/interfaces/documentmodel/) * [FloatAnchor](/api/core/document-model/interfaces/floatanchor/) * [FontFamilyMap](/api/core/document-model/interfaces/fontfamilymap/) * [FrameProperties](/api/core/document-model/interfaces/frameproperties/) * [HeaderFooterReference](/api/core/document-model/interfaces/headerfooterreference/) * [ImageBlock](/api/core/document-model/interfaces/imageblock/) * [ImageCrop](/api/core/document-model/interfaces/imagecrop/) * [InlineImage](/api/core/document-model/interfaces/inlineimage/) * [LineEnd](/api/core/document-model/interfaces/lineend/) * [MathAccent](/api/core/document-model/interfaces/mathaccent/) * [MathBar](/api/core/document-model/interfaces/mathbar/) * [MathDelimiter](/api/core/document-model/interfaces/mathdelimiter/) * [MathEqArray](/api/core/document-model/interfaces/matheqarray/) * [MathFraction](/api/core/document-model/interfaces/mathfraction/) * [MathFunc](/api/core/document-model/interfaces/mathfunc/) * [MathGroupChr](/api/core/document-model/interfaces/mathgroupchr/) * [MathLimit](/api/core/document-model/interfaces/mathlimit/) * [MathMatrix](/api/core/document-model/interfaces/mathmatrix/) * [MathNary](/api/core/document-model/interfaces/mathnary/) * [MathRadical](/api/core/document-model/interfaces/mathradical/) * [MathRow](/api/core/document-model/interfaces/mathrow/) * [MathRun](/api/core/document-model/interfaces/mathrun/) * [MathScript](/api/core/document-model/interfaces/mathscript/) * [Numbering](/api/core/document-model/interfaces/numbering/) * [NumberingInstance](/api/core/document-model/interfaces/numberinginstance/) * [NumberingLevel](/api/core/document-model/interfaces/numberinglevel/) * [NumberingReference](/api/core/document-model/interfaces/numberingreference/) * [OutlineEntry](/api/core/document-model/interfaces/outlineentry/) * [PageMargins](/api/core/document-model/interfaces/pagemargins/) * [PageSize](/api/core/document-model/interfaces/pagesize/) * [Paragraph](/api/core/document-model/interfaces/paragraph/) * [ParagraphProperties](/api/core/document-model/interfaces/paragraphproperties/) * [PictureBullet](/api/core/document-model/interfaces/picturebullet/) * [PictureOutline](/api/core/document-model/interfaces/pictureoutline/) * [RelativeSize](/api/core/document-model/interfaces/relativesize/) * [RowConditionalFormat](/api/core/document-model/interfaces/rowconditionalformat/) * [RowProperties](/api/core/document-model/interfaces/rowproperties/) * [Run](/api/core/document-model/interfaces/run/) * [RunProperties](/api/core/document-model/interfaces/runproperties/) * [Section](/api/core/document-model/interfaces/section/) * [SectionColumns](/api/core/document-model/interfaces/sectioncolumns/) * [SectionProperties](/api/core/document-model/interfaces/sectionproperties/) * [ShapeBlock](/api/core/document-model/interfaces/shapeblock/) * [ShapeFill](/api/core/document-model/interfaces/shapefill/) * [ShapeGeometry](/api/core/document-model/interfaces/shapegeometry/) * [ShapeGroupChild](/api/core/document-model/interfaces/shapegroupchild/) * [ShapeLine](/api/core/document-model/interfaces/shapeline/) * [ShapeShadow](/api/core/document-model/interfaces/shapeshadow/) * [ShapeTextBody](/api/core/document-model/interfaces/shapetextbody/) * [ShapeTransform](/api/core/document-model/interfaces/shapetransform/) * [Style](/api/core/document-model/interfaces/style/) * [StyleSheet](/api/core/document-model/interfaces/stylesheet/) * [Table](/api/core/document-model/interfaces/table/) * [TableCell](/api/core/document-model/interfaces/tablecell/) * [TableLook](/api/core/document-model/interfaces/tablelook/) * [TableOverlay](/api/core/document-model/interfaces/tableoverlay/) * [TableProperties](/api/core/document-model/interfaces/tableproperties/) * [TableRow](/api/core/document-model/interfaces/tablerow/) * [TableStyleCondition](/api/core/document-model/interfaces/tablestylecondition/) * [TableStyleLayer](/api/core/document-model/interfaces/tablestylelayer/) * [TabStop](/api/core/document-model/interfaces/tabstop/) * [TextOutline](/api/core/document-model/interfaces/textoutline/) ## Type Aliases [Section titled “Type Aliases”](#type-aliases) * [Alignment](/api/core/document-model/type-aliases/alignment/) * [BodyElement](/api/core/document-model/type-aliases/bodyelement/) * [BorderStyle](/api/core/document-model/type-aliases/borderstyle/) * [CellIconShape](/api/core/document-model/type-aliases/celliconshape/) * [CellMerge](/api/core/document-model/type-aliases/cellmerge/) * [ChartLabelPosition](/api/core/document-model/type-aliases/chartlabelposition/) * [ChartMarkerSymbol](/api/core/document-model/type-aliases/chartmarkersymbol/) * [ChartType](/api/core/document-model/type-aliases/charttype/) * [CustomPathCmd](/api/core/document-model/type-aliases/custompathcmd/) * [HeaderFooterType](/api/core/document-model/type-aliases/headerfootertype/) * [Ligatures](/api/core/document-model/type-aliases/ligatures/) * [MathNode](/api/core/document-model/type-aliases/mathnode/) * [NumberingFormat](/api/core/document-model/type-aliases/numberingformat/) * [NumberingSuffix](/api/core/document-model/type-aliases/numberingsuffix/) * [ShapeDash](/api/core/document-model/type-aliases/shapedash/) * [ShapeFillKind](/api/core/document-model/type-aliases/shapefillkind/) * [StyleType](/api/core/document-model/type-aliases/styletype/) * [TableStyleConditionType](/api/core/document-model/type-aliases/tablestyleconditiontype/) * [UnderlineStyle](/api/core/document-model/type-aliases/underlinestyle/) * [VerticalAlign](/api/core/document-model/type-aliases/verticalalign/) ## References [Section titled “References”](#references) ### DocumentInfo [Section titled “DocumentInfo”](#documentinfo) Re-exports [DocumentInfo](/api/index/interfaces/documentinfo/) # AbstractNumbering Defined in: [src/core/document-model/types.ts:801](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L801) §17.9.1 `w:abstractNum` — a reusable list definition keyed by level. ## Properties [Section titled “Properties”](#properties) ### id [Section titled “id”](#id) > `readonly` **id**: `string` Defined in: [src/core/document-model/types.ts:802](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L802) *** ### levels [Section titled “levels”](#levels) > `readonly` **levels**: `ReadonlyMap`<`number`, [`NumberingLevel`](/api/core/document-model/interfaces/numberinglevel/)> Defined in: [src/core/document-model/types.ts:803](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L803) # Border Defined in: [src/core/document-model/types.ts:958](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L958) One border edge: its line style plus optional width and colour. ## Properties [Section titled “Properties”](#properties) ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:961](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L961) *** ### spacePt? [Section titled “spacePt?”](#spacept) > `readonly` `optional` **spacePt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:963](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L963) §17.3.1.24 `w:space` — how far a paragraph rule stands off its text. *** ### style [Section titled “style”](#style) > `readonly` **style**: [`BorderStyle`](/api/core/document-model/type-aliases/borderstyle/) Defined in: [src/core/document-model/types.ts:959](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L959) *** ### width? [Section titled “width?”](#width) > `readonly` `optional` **width?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:960](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L960) # CellBorders Defined in: [src/core/document-model/types.ts:967](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L967) §17.4.67 `w:tcBorders` — the per-edge borders of a cell (or, §17.4.39 `w:tblBorders`, a table). ## Properties [Section titled “Properties”](#properties) ### bottom? [Section titled “bottom?”](#bottom) > `readonly` `optional` **bottom?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:970](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L970) *** ### diagonalDown? [Section titled “diagonalDown?”](#diagonaldown) > `readonly` `optional` **diagonalDown?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:978](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L978) Diagonal strokes across the cell box: `diagonalDown` runs top-left → bottom-right, `diagonalUp` bottom-left → top-right (Excel diagonal borders). *** ### diagonalUp? [Section titled “diagonalUp?”](#diagonalup) > `readonly` `optional` **diagonalUp?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:979](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L979) *** ### insideH? [Section titled “insideH?”](#insideh) > `readonly` `optional` **insideH?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:972](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L972) *** ### insideV? [Section titled “insideV?”](#insidev) > `readonly` `optional` **insideV?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:973](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L973) *** ### left? [Section titled “left?”](#left) > `readonly` `optional` **left?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:971](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L971) *** ### right? [Section titled “right?”](#right) > `readonly` `optional` **right?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:969](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L969) *** ### top? [Section titled “top?”](#top) > `readonly` `optional` **top?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:968](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L968) # CellDataBar Defined in: [src/core/document-model/types.ts:1001](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1001) A conditional-format data bar: a horizontal bar of width `fraction` (`0..1` of the cell), painted over the shading and under the text (E-SHEET SC1c). It starts at `startFraction` from the cell’s left (default 0); a mixed-sign range puts the axis inside the cell so negative bars run left of it (tail TC4). ## Properties [Section titled “Properties”](#properties) ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:1003](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1003) *** ### fraction [Section titled “fraction”](#fraction) > `readonly` **fraction**: `number` Defined in: [src/core/document-model/types.ts:1002](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1002) *** ### negative? [Section titled “negative?”](#negative) > `readonly` `optional` **negative?**: `boolean` Defined in: [src/core/document-model/types.ts:1010](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1010) The bar runs LEFT from the axis (a negative value in a mixed-sign range), so its solid end is its right one. Excel fades a data bar away from the axis, and which way that is depends on the sign. *** ### solid? [Section titled “solid?”](#solid) > `readonly` `optional` **solid?**: `boolean` Defined in: [src/core/document-model/types.ts:1012](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1012) The bar is one solid colour, not faded from the axis (``). *** ### startFraction? [Section titled “startFraction?”](#startfraction) > `readonly` `optional` **startFraction?**: `number` Defined in: [src/core/document-model/types.ts:1004](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1004) # CellIcon Defined in: [src/core/document-model/types.ts:1048](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1048) One resolved conditional-format icon: its [CellIconShape](/api/core/document-model/type-aliases/celliconshape/), colour and fill level. ## Properties [Section titled “Properties”](#properties) ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:1050](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1050) *** ### fill? [Section titled “fill?”](#fill) > `readonly` `optional` **fill?**: `object` Defined in: [src/core/document-model/types.ts:1055](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1055) Meter glyphs (`bars` / `pie`): how many of `levels` units are filled with `colorHex`; the rest are drawn in a neutral grey. Absent for single glyphs. #### filled [Section titled “filled”](#filled) > `readonly` **filled**: `number` #### levels [Section titled “levels”](#levels) > `readonly` **levels**: `number` *** ### shape [Section titled “shape”](#shape) > `readonly` **shape**: [`CellIconShape`](/api/core/document-model/type-aliases/celliconshape/) Defined in: [src/core/document-model/types.ts:1049](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1049) # CellMargins Defined in: [src/core/document-model/types.ts:983](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L983) §17.4.42 `w:tcMar` — a cell’s inner padding per side. ## Properties [Section titled “Properties”](#properties) ### bottom? [Section titled “bottom?”](#bottom) > `readonly` `optional` **bottom?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:986](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L986) *** ### left? [Section titled “left?”](#left) > `readonly` `optional` **left?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:987](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L987) *** ### right? [Section titled “right?”](#right) > `readonly` `optional` **right?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:985](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L985) *** ### top? [Section titled “top?”](#top) > `readonly` `optional` **top?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:984](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L984) # CellNoteFlag Defined in: [src/core/document-model/types.ts:1020](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1020) How a window flags a cell that carries a note: red for a legacy note, purple for a threaded comment, in the top corner on the side the cell ends — the right, or the left on a sheet that reads from the right. ## Properties [Section titled “Properties”](#properties) ### atLeft? [Section titled “atLeft?”](#atleft) > `readonly` `optional` **atLeft?**: `boolean` Defined in: [src/core/document-model/types.ts:1024](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1024) *** ### kind [Section titled “kind”](#kind) > `readonly` **kind**: `"note"` | `"thread"` Defined in: [src/core/document-model/types.ts:1021](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1021) *** ### text [Section titled “text”](#text) > `readonly` **text**: `string` Defined in: [src/core/document-model/types.ts:1023](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1023) The note as one reads it on hover: author and text, a conversation line by line. # CellProperties Defined in: [src/core/document-model/types.ts:1084](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1084) §17.4.30 `w:tcPr` — a cell’s properties: span/merge, chrome, and CF overlays. ## Properties [Section titled “Properties”](#properties) ### borders? [Section titled “borders?”](#borders) > `readonly` `optional` **borders?**: [`CellBorders`](/api/core/document-model/interfaces/cellborders/) Defined in: [src/core/document-model/types.ts:1096](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1096) *** ### colSpan? [Section titled “colSpan?”](#colspan) > `readonly` `optional` **colSpan?**: `number` Defined in: [src/core/document-model/types.ts:1094](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1094) *** ### dataBar? [Section titled “dataBar?”](#databar) > `readonly` `optional` **dataBar?**: [`CellDataBar`](/api/core/document-model/interfaces/celldatabar/) Defined in: [src/core/document-model/types.ts:1117](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1117) *** ### dropdown? [Section titled “dropdown?”](#dropdown) > `readonly` `optional` **dropdown?**: `boolean` Defined in: [src/core/document-model/types.ts:1124](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1124) A data-validation `list` cell (E-SHEET SV1): the renderer paints an in-cell dropdown affordance at the cell’s right edge (a small button + ▾ glyph). *** ### hashOnOverflow? [Section titled “hashOnOverflow?”](#hashonoverflow) > `readonly` `optional` **hashOnOverflow?**: `boolean` Defined in: [src/core/document-model/types.ts:1150](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1150) The cell holds a NUMBER under a format of its own, so it may not be shown truncated: a date cut to “4/30/201” is not a shorter date, it is the wrong one. Excel and LibreOffice fill such a cell with `#` instead, which says “widen me” and cannot be misread. Text is exempt — a clipped word is still recognisably that word. *** ### hideMark? [Section titled “hideMark?”](#hidemark) > `readonly` `optional` **hideMark?**: `boolean` Defined in: [src/core/document-model/types.ts:1142](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1142) §17.4.20 `w:hideMark` — the cell’s end-of-cell mark is not counted when the row’s height is measured, so an EMPTY cell that says so adds nothing at all. *** ### icon? [Section titled “icon?”](#icon) > `readonly` `optional` **icon?**: [`CellIcon`](/api/core/document-model/interfaces/cellicon/) Defined in: [src/core/document-model/types.ts:1118](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1118) *** ### margins? [Section titled “margins?”](#margins) > `readonly` `optional` **margins?**: [`CellMargins`](/api/core/document-model/interfaces/cellmargins/) Defined in: [src/core/document-model/types.ts:1097](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1097) *** ### merge? [Section titled “merge?”](#merge) > `readonly` `optional` **merge?**: [`CellMerge`](/api/core/document-model/type-aliases/cellmerge/) Defined in: [src/core/document-model/types.ts:1095](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1095) *** ### noteFlag? [Section titled “noteFlag?”](#noteflag) > `readonly` `optional` **noteFlag?**: [`CellNoteFlag`](/api/core/document-model/interfaces/cellnoteflag/) Defined in: [src/core/document-model/types.ts:1130](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1130) A note or comment on the cell, as a WINDOW flags it (E-SHEET W7): a small triangle in the cell’s top corner, the note’s text shown on hover where the medium can. Set by screen projections only — paper never shows it. *** ### noWrap? [Section titled “noWrap?”](#nowrap) > `readonly` `optional` **noWrap?**: `boolean` Defined in: [src/core/document-model/types.ts:1137](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1137) The cell’s text is not allowed to wrap: it renders on one line and whatever does not fit the cell box is cut, as a spreadsheet cell without `wrapText` does. Only the paginated layout honours it — an HTML view has no page edge to clip against and lets the browser decide. *** ### paintAtEnd? [Section titled “paintAtEnd?”](#paintatend) > `readonly` `optional` **paintAtEnd?**: `boolean` Defined in: [src/core/document-model/types.ts:1115](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1115) The paint covers the LAST [paintColumns](/api/core/document-model/interfaces/cellproperties/#paintcolumns) of the span rather than the first. A sheet that reads from the right runs a cell’s text over the neighbours on its left, so the cell the paint belongs to ends the span. *** ### paintColumns? [Section titled “paintColumns?”](#paintcolumns) > `readonly` `optional` **paintColumns?**: `number` Defined in: [src/core/document-model/types.ts:1109](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1109) How many of the spanned columns the cell’s own PAINT covers, when that is fewer than `colSpan`. Text overflow is modelled as a span — a cell whose value does not fit runs across the empty neighbours to its right — but Excel runs the TEXT over an unpainted cell without painting it. With one width for both, a filled cell carried its fill along: 54436.xlsx ran its pivot header’s blue a whole column past the pivot. Absent ⇒ the paint covers the whole span, which is what a merge wants. *** ### shading? [Section titled “shading?”](#shading) > `readonly` `optional` **shading?**: [`CellShading`](/api/core/document-model/interfaces/cellshading/) Defined in: [src/core/document-model/types.ts:1116](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1116) *** ### showHashes? [Section titled “showHashes?”](#showhashes) > `readonly` `optional` **showHashes?**: `boolean` Defined in: [src/core/document-model/types.ts:1157](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1157) The cell shows a row of `#` across its box, whatever its text says: a number no section of a conditional format admits (§18.8.31), which Excel shows that way however wide the column. The text stays the number, for a medium that has no box. *** ### sparkline? [Section titled “sparkline?”](#sparkline) > `readonly` `optional` **sparkline?**: [`CellSparkline`](/api/core/document-model/interfaces/cellsparkline/) Defined in: [src/core/document-model/types.ts:1119](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1119) *** ### textDirection? [Section titled “textDirection?”](#textdirection) > `readonly` `optional` **textDirection?**: `"vert"` | `"vert270"` Defined in: [src/core/document-model/types.ts:1171](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1171) §17.4.71 `w:textDirection` / §21.1.3.17 `a:tcPr@vert` — the cell’s text is turned a quarter: `vert` reads top-to-bottom (turned clockwise), `vert270` bottom-to-top. Its lines then run along the cell’s HEIGHT and stack across its width, which is what makes a narrow header column readable. *** ### verticalAlign? [Section titled “verticalAlign?”](#verticalalign) > `readonly` `optional` **verticalAlign?**: `"top"` | `"bottom"` | `"center"` Defined in: [src/core/document-model/types.ts:1164](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1164) Where the cell’s content sits in a box taller than itself. A spreadsheet cell defaults to `'bottom'` — §18.8.1, and both Excel and LibreOffice do it — which is visible on any row taller than its text. Absent ⇒ the top, which is a word-processor table’s default. *** ### width? [Section titled “width?”](#width) > `readonly` `optional` **width?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1085](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1085) *** ### widthFraction? [Section titled “widthFraction?”](#widthfraction) > `readonly` `optional` **widthFraction?**: `number` Defined in: [src/core/document-model/types.ts:1091](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1091) §17.4.72 `w:tcW w:type="pct"` — the cell’s preferred width as a share of the table (`w`/5000). Held apart from [width](/api/core/document-model/interfaces/cellproperties/#width) because a percentage cannot be resolved until the table’s own width is known. *** ### widthType? [Section titled “widthType?”](#widthtype) > `readonly` `optional` **widthType?**: `"auto"` | `"dxa"` | `"pct"` | `"nil"` Defined in: [src/core/document-model/types.ts:1093](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1093) §17.18.90 ST\_TblWidth — which of the two above the cell actually declared. # CellShading Defined in: [src/core/document-model/types.ts:991](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L991) §17.4.33 `w:shd` — a cell’s solid background fill (6-hex). ## Properties [Section titled “Properties”](#properties) ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:992](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L992) # CellSparkline Defined in: [src/core/document-model/types.ts:1063](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1063) A sparkline: a mini chart filling the cell, plotting `values` (E-SHEET SC2). Format-neutral — the xlsx layer resolves the data range to a value sequence; the layout renders line / column / win-loss geometry sized to the cell. ## Properties [Section titled “Properties”](#properties) ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:1070](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1070) *** ### kind [Section titled “kind”](#kind) > `readonly` **kind**: `"line"` | `"column"` | `"winLoss"` Defined in: [src/core/document-model/types.ts:1064](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1064) *** ### values [Section titled “values”](#values) > `readonly` **values**: readonly (`number` | `null`)\[] Defined in: [src/core/document-model/types.ts:1069](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1069) A blank/non-numeric cell in the range is a gap (`null`) so x-positions stay aligned: a line breaks across it, a column/win-loss skips its slot. # Chart Defined in: [src/core/document-model/types.ts:1913](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1913) A parsed chart (§21.2): its type, title, categories, series and rendering options. ## Properties [Section titled “Properties”](#properties) ### backWall? [Section titled “backWall?”](#backwall) > `readonly` `optional` **backWall?**: [`ChartSurface`](/api/core/document-model/interfaces/chartsurface/) Defined in: [src/core/document-model/types.ts:1965](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1965) §21.2.2.11 `c:backWall` — the wall behind the bars; absent, nothing drawn. *** ### bar3D? [Section titled “bar3D?”](#bar3d) > `readonly` `optional` **bar3D?**: `object` Defined in: [src/core/document-model/types.ts:1953](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1953) §21.2.2.15 `c:bar3DChart` with §21.2.2.228 `c:view3D` — bars drawn as boxes standing in a box of walls and a floor, seen at an angle with the axes kept square: `rotX` the elevation and `rotY` the turn in degrees, `depthPercent` a bar’s depth as a percentage of its width, `gapDepth` the room before and behind it as a percentage of its depth. #### depthPercent [Section titled “depthPercent”](#depthpercent) > `readonly` **depthPercent**: `number` #### gapDepth [Section titled “gapDepth”](#gapdepth) > `readonly` **gapDepth**: `number` #### rotX [Section titled “rotX”](#rotx) > `readonly` **rotX**: `number` #### rotY [Section titled “rotY”](#roty) > `readonly` **rotY**: `number` *** ### barDir? [Section titled “barDir?”](#bardir) > `readonly` `optional` **barDir?**: `"bar"` | `"col"` Defined in: [src/core/document-model/types.ts:1937](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1937) *** ### catAxisCrosses? [Section titled “catAxisCrosses?”](#cataxiscrosses) > `readonly` `optional` **catAxisCrosses?**: `number` | `"min"` | `"max"` Defined in: [src/core/document-model/types.ts:2017](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2017) §21.2.2.33/§21.2.2.34 `c:catAx/c:crosses`, `c:crossesAt` — where along the value axis the category axis lies, and so where bars grow from: at the axis’s minimum or maximum, or at a stated value. Absent ⇒ `autoZero`, at zero (or the end of the value axis nearest it). *** ### catAxisDeleted? [Section titled “catAxisDeleted?”](#cataxisdeleted) > `readonly` `optional` **catAxisDeleted?**: `boolean` Defined in: [src/core/document-model/types.ts:2064](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2064) §21.2.2.40 `c:delete` — the author deleted the category axis (a scatter’s x axis): neither its rule nor its labels are drawn, nor room kept for them. *** ### catAxisLine? [Section titled “catAxisLine?”](#cataxisline) > `readonly` `optional` **catAxisLine?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:2047](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2047) §21.2.2.196 — the category axis’s own rule. *** ### catAxisReversed? [Section titled “catAxisReversed?”](#cataxisreversed) > `readonly` `optional` **catAxisReversed?**: `boolean` Defined in: [src/core/document-model/types.ts:2010](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2010) §21.2.2.134 `c:catAx/c:scaling/c:orientation` = `maxMin` — the category axis runs the other way. A ranked bar chart is written this way so its first row reads at the TOP (dataValidationTableRange.xlsx ranks 38 counties and we printed the ranking upside down). *** ### catAxisTitle? [Section titled “catAxisTitle?”](#cataxistitle) > `readonly` `optional` **catAxisTitle?**: `string` Defined in: [src/core/document-model/types.ts:2003](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2003) *** ### categories [Section titled “categories”](#categories) > `readonly` **categories**: readonly `string`\[] Defined in: [src/core/document-model/types.ts:1922](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1922) *** ### categoriesRef? [Section titled “categoriesRef?”](#categoriesref) > `readonly` `optional` **categoriesRef?**: `string` Defined in: [src/core/document-model/types.ts:1924](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1924) §21.2.2.24 `c:cat/…/c:f` — where the categories live, when uncached. *** ### categoryGroups? [Section titled “categoryGroups?”](#categorygroups) > `readonly` `optional` **categoryGroups?**: readonly readonly `object`\[]\[] Defined in: [src/core/document-model/types.ts:1931](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1931) §21.2.2.115 `c:multiLvlStrCache` — the outer levels of a category axis labelled on more than one: each level’s groups, innermost level first, each group from the category it starts at to the next group’s start. [Chart.categories](/api/core/document-model/interfaces/chart/#categories) is the innermost level, one label per category. *** ### catTickLabelPos? [Section titled “catTickLabelPos?”](#catticklabelpos) > `readonly` `optional` **catTickLabelPos?**: `"none"` | `"low"` | `"high"` Defined in: [src/core/document-model/types.ts:2024](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2024) §21.2.2.207 `c:catAx/c:tickLblPos` — where the category labels stand: at the low or high end of the value axis, or nowhere. Absent ⇒ `nextTo`, beside the category axis wherever it crosses — on the zero line of a chart with values below zero. *** ### dataLabels? [Section titled “dataLabels?”](#datalabels) > `readonly` `optional` **dataLabels?**: [`ChartDataLabels`](/api/core/document-model/interfaces/chartdatalabels/) Defined in: [src/core/document-model/types.ts:1991](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1991) §21.2.2.49 — the data labels’ switches, when the chart has a `c:dLbls` at all. Absent, it labels nothing. *** ### doughnut? [Section titled “doughnut?”](#doughnut) > `readonly` `optional` **doughnut?**: `boolean` Defined in: [src/core/document-model/types.ts:1939](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1939) *** ### firstSliceAngle? [Section titled “firstSliceAngle?”](#firstsliceangle) > `readonly` `optional` **firstSliceAngle?**: `number` Defined in: [src/core/document-model/types.ts:1969](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1969) §21.2.2.68 `c:firstSliceAng` — a flat pie’s first slice, degrees clockwise from twelve. *** ### floor? [Section titled “floor?”](#floor) > `readonly` `optional` **floor?**: [`ChartSurface`](/api/core/document-model/interfaces/chartsurface/) Defined in: [src/core/document-model/types.ts:1963](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1963) §21.2.2.69 `c:floor` — a 3-D chart’s floor, the wall its bars stand on: its fill and its rule. Absent, it is unfilled and ruled in light grey. *** ### frameFillHex? [Section titled “frameFillHex?”](#framefillhex) > `readonly` `optional` **frameFillHex?**: `string` Defined in: [src/core/document-model/types.ts:2095](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2095) §21.2.2.198 `c:chartSpace/c:spPr` — the frame around the whole chart: its background fill and its outline. Excel writes both on every chart it creates, and both references draw them. *** ### frameFillImage? [Section titled “frameFillImage?”](#framefillimage) > `readonly` `optional` **frameFillImage?**: `object` Defined in: [src/core/document-model/types.ts:2101](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2101) §20.1.8.14 `a:blipFill` — the PICTURE the frame is filled with, when it is filled with one rather than a colour. chart-texture-bg.pptx papers its whole chart with a woven cloth, and a chart on white is a different chart. #### resource [Section titled “resource”](#resource) > `readonly` **resource**: [`ResourceId`](/api/index/type-aliases/resourceid/) #### tiled? [Section titled “tiled?”](#tiled) > `readonly` `optional` **tiled?**: `boolean` *** ### frameLineDash? [Section titled “frameLineDash?”](#framelinedash) > `readonly` `optional` **frameLineDash?**: [`ShapeDash`](/api/core/document-model/type-aliases/shapedash/) Defined in: [src/core/document-model/types.ts:2105](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2105) *** ### frameLineHex? [Section titled “frameLineHex?”](#framelinehex) > `readonly` `optional` **frameLineHex?**: `string` Defined in: [src/core/document-model/types.ts:2102](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2102) *** ### frameLineWidthPt? [Section titled “frameLineWidthPt?”](#framelinewidthpt) > `readonly` `optional` **frameLineWidthPt?**: `number` Defined in: [src/core/document-model/types.ts:2104](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2104) The frame rule’s width and dash, when it states them. *** ### gapPercent? [Section titled “gapPercent?”](#gappercent) > `readonly` `optional` **gapPercent?**: `number` Defined in: [src/core/document-model/types.ts:1996](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1996) §21.2.2.75 `c:gapWidth` — the gap between category slots as a percentage of the bar width. Absent ⇒ the schema’s 150. *** ### gridLine? [Section titled “gridLine?”](#gridline) > `readonly` `optional` **gridLine?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:2057](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2057) §21.2.2.100 `c:majorGridlines` of the value axis (a scatter’s upright one) — its own rule (§21.2.2.197 `c:spPr/a:ln`). An axis without the element rules nothing, which reads `{ none: true }`; absent, the default rule. *** ### grouping? [Section titled “grouping?”](#grouping) > `readonly` `optional` **grouping?**: `"clustered"` | `"stacked"` | `"percentStacked"` | `"standard"` Defined in: [src/core/document-model/types.ts:1938](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1938) *** ### hasLegend [Section titled “hasLegend”](#haslegend) > `readonly` **hasLegend**: `boolean` Defined in: [src/core/document-model/types.ts:1935](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1935) *** ### legendPos? [Section titled “legendPos?”](#legendpos) > `readonly` `optional` **legendPos?**: `"r"` | `"l"` | `"t"` | `"b"` Defined in: [src/core/document-model/types.ts:1936](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1936) *** ### lineMarkers? [Section titled “lineMarkers?”](#linemarkers) > `readonly` `optional` **lineMarkers?**: `boolean` Defined in: [src/core/document-model/types.ts:2045](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2045) §21.2.2.106 `c:marker` on a `c:lineChart` — whether the group’s series mark their data points. WithChart.xlsx asks for them and we drew bare lines. *** ### numberFormat? [Section titled “numberFormat?”](#numberformat) > `readonly` `optional` **numberFormat?**: `string` Defined in: [src/core/document-model/types.ts:2118](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2118) §21.2.2.121 `c:valAx/c:numFmt@formatCode` — the number format the value axis’s tick labels and the data labels are drawn in, in the same code grammar cells use (§18.8.31). Absent ⇒ a plain numeric render. *** ### overlapPercent? [Section titled “overlapPercent?”](#overlappercent) > `readonly` `optional` **overlapPercent?**: `number` Defined in: [src/core/document-model/types.ts:2002](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2002) §21.2.2.131 `c:overlap` — how far the bars of one category’s cluster lie over each other, as a percentage of a bar’s width: −100 a bar’s width apart … 100 one on the next. Absent ⇒ 0, bars side by side. *** ### pie3D? [Section titled “pie3D?”](#pie3d) > `readonly` `optional` **pie3D?**: `object` Defined in: [src/core/document-model/types.ts:1945](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1945) §21.2.2.140 `c:pie3DChart` with §21.2.2.228 `c:view3D` — a pie drawn as a tilted disc: `rotX` the elevation in degrees (90 looks straight down), `rotY` how far its first slice is turned clockwise from twelve o’clock. #### rotX [Section titled “rotX”](#rotx-1) > `readonly` **rotX**: `number` #### rotY [Section titled “rotY”](#roty-1) > `readonly` **rotY**: `number` *** ### plotBox? [Section titled “plotBox?”](#plotbox) > `readonly` `optional` **plotBox?**: `object` Defined in: [src/core/document-model/types.ts:1975](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1975) §21.2.2.104 `c:plotArea/c:layout/c:manualLayout` in `edge` mode — the box the author sized the plot to, as fractions of the chart from its top left; a pie is fitted into it whole, keeping its shape. #### h [Section titled “h”](#h) > `readonly` **h**: `number` #### inner? [Section titled “inner?”](#inner) > `readonly` `optional` **inner?**: `boolean` `c:layoutTarget` `inner` — the box is the plot’s own rectangle, the axes’ labels outside it; else (`outer`) it holds them too. #### w [Section titled “w”](#w) > `readonly` **w**: `number` #### x [Section titled “x”](#x) > `readonly` **x**: `number` #### y [Section titled “y”](#y) > `readonly` **y**: `number` *** ### plotFillHex? [Section titled “plotFillHex?”](#plotfillhex) > `readonly` `optional` **plotFillHex?**: `string` Defined in: [src/core/document-model/types.ts:2111](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2111) §21.2.2.145 `c:plotArea/c:spPr` — the plot rectangle’s own fill and rule, which sit inside the frame. Chart\_Plot\_BorderLine\_Style.docx rules its plot in a heavy orange dash-dot. *** ### plotLine? [Section titled “plotLine?”](#plotline) > `readonly` `optional` **plotLine?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:2112](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2112) *** ### scatterStyle? [Section titled “scatterStyle?”](#scatterstyle) > `readonly` `optional` **scatterStyle?**: `"line"` | `"none"` | `"lineMarker"` | `"marker"` | `"smooth"` | `"smoothMarker"` Defined in: [src/core/document-model/types.ts:2040](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2040) §21.2.2.161 `c:scatterStyle` — whether a scatter’s points are joined by a line, marked, or both. The schema’s default is `marker`; Excel writes `lineMarker` for the chart most people insert. *** ### secondaryValAxisLine? [Section titled “secondaryValAxisLine?”](#secondaryvalaxisline) > `readonly` `optional` **secondaryValAxisLine?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:2051](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2051) §21.2.2.196 — the secondary value axis’s own rule. *** ### secondaryValAxisTitle? [Section titled “secondaryValAxisTitle?”](#secondaryvalaxistitle) > `readonly` `optional` **secondaryValAxisTitle?**: `string` Defined in: [src/core/document-model/types.ts:2034](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2034) §21.2.2.168 — the title of the secondary value axis, when one is drawn. *** ### series [Section titled “series”](#series) > `readonly` **series**: readonly [`ChartSeries`](/api/core/document-model/interfaces/chartseries/)\[] Defined in: [src/core/document-model/types.ts:1934](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1934) *** ### seriesColorCycle? [Section titled “seriesColorCycle?”](#seriescolorcycle) > `readonly` `optional` **seriesColorCycle?**: readonly `string`\[] Defined in: [src/core/document-model/types.ts:2123](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2123) MS-ODRAWXML `chartColorStyle` (`colorsN.xml`): the cycle of series colours; overrides the built-in Office accent cycle when present. *** ### showValues? [Section titled “showValues?”](#showvalues) > `readonly` `optional` **showValues?**: `boolean` Defined in: [src/core/document-model/types.ts:1986](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1986) *** ### sideWall? [Section titled “sideWall?”](#sidewall) > `readonly` `optional` **sideWall?**: [`ChartSurface`](/api/core/document-model/interfaces/chartsurface/) Defined in: [src/core/document-model/types.ts:1967](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1967) §21.2.2.191 `c:sideWall` — the wall beside them; absent, nothing drawn. *** ### text? [Section titled “text?”](#text) > `readonly` `optional` **text?**: [`ChartTextStyles`](/api/core/document-model/interfaces/charttextstyles/) Defined in: [src/core/document-model/types.ts:1921](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1921) The chart’s text, role by role, as its application sets it. Absent when the reader resolves none: the renderer then keeps its own sizes and greys in the document’s base face. *** ### title? [Section titled “title?”](#title) > `readonly` `optional` **title?**: `string` Defined in: [src/core/document-model/types.ts:1915](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1915) *** ### type [Section titled “type”](#type) > `readonly` **type**: [`ChartType`](/api/core/document-model/type-aliases/charttype/) Defined in: [src/core/document-model/types.ts:1914](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1914) *** ### valAxisCrosses? [Section titled “valAxisCrosses?”](#valaxiscrosses) > `readonly` `optional` **valAxisCrosses?**: `number` | `"min"` | `"max"` Defined in: [src/core/document-model/types.ts:2031](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2031) §21.2.2.33 `c:valAx/c:crosses` — where along the category axis the value axis lies: at the last category (`max`) or the first (absent, `autoZero`). The first is at the far end when the categories run backwards ([Chart.catAxisReversed](/api/core/document-model/interfaces/chart/#cataxisreversed)): a ranked bar chart has its values on top. *** ### valAxisDeleted? [Section titled “valAxisDeleted?”](#valaxisdeleted) > `readonly` `optional` **valAxisDeleted?**: `boolean` Defined in: [src/core/document-model/types.ts:2066](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2066) §21.2.2.40 — …or the value axis (a scatter’s upright one). *** ### valAxisLine? [Section titled “valAxisLine?”](#valaxisline) > `readonly` `optional` **valAxisLine?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:2049](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2049) §21.2.2.196 — the value axis’s own rule. *** ### valAxisMajorUnit? [Section titled “valAxisMajorUnit?”](#valaxismajorunit) > `readonly` `optional` **valAxisMajorUnit?**: `number` Defined in: [src/core/document-model/types.ts:2079](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2079) §21.2.2.103 `c:valAx/c:majorUnit` — the step between the value axis’s labels, when the author fixed it. Absent ⇒ the application’s own choice. *** ### valAxisMax? [Section titled “valAxisMax?”](#valaxismax) > `readonly` `optional` **valAxisMax?**: `number` Defined in: [src/core/document-model/types.ts:2074](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2074) *** ### valAxisMin? [Section titled “valAxisMin?”](#valaxismin) > `readonly` `optional` **valAxisMin?**: `number` Defined in: [src/core/document-model/types.ts:2073](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2073) §21.2.2.157 `c:valAx/c:scaling/c:min|c:max` — the value axis the AUTHOR fixed. Absent means “auto”, and only then is the range read off the data: a chart whose cells all read zero still has the axis its author pinned, and scaling it to the data drew 0…1 where every reader draws 0…300. *** ### valAxisTitle? [Section titled “valAxisTitle?”](#valaxistitle) > `readonly` `optional` **valAxisTitle?**: `string` Defined in: [src/core/document-model/types.ts:2032](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2032) *** ### xAxisMajorUnit? [Section titled “xAxisMajorUnit?”](#xaxismajorunit) > `readonly` `optional` **xAxisMajorUnit?**: `number` Defined in: [src/core/document-model/types.ts:2088](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2088) *** ### xAxisMax? [Section titled “xAxisMax?”](#xaxismax) > `readonly` `optional` **xAxisMax?**: `number` Defined in: [src/core/document-model/types.ts:2087](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2087) *** ### xAxisMin? [Section titled “xAxisMin?”](#xaxismin) > `readonly` `optional` **xAxisMin?**: `number` Defined in: [src/core/document-model/types.ts:2086](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2086) §21.2.2.226 — a scatter’s lying value axis, the x’s: the ends and step the author fixed and its number format, as [Chart.valAxisMin](/api/core/document-model/interfaces/chart/#valaxismin), [Chart.valAxisMax](/api/core/document-model/interfaces/chart/#valaxismax), [Chart.valAxisMajorUnit](/api/core/document-model/interfaces/chart/#valaxismajorunit) and [Chart.numberFormat](/api/core/document-model/interfaces/chart/#numberformat) are its upright one’s. *** ### xGridLine? [Section titled “xGridLine?”](#xgridline) > `readonly` `optional` **xGridLine?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:2059](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2059) The same for a scatter’s lying (x) axis. *** ### xNumberFormat? [Section titled “xNumberFormat?”](#xnumberformat) > `readonly` `optional` **xNumberFormat?**: `string` Defined in: [src/core/document-model/types.ts:2089](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2089) # ChartBlock Defined in: [src/core/document-model/types.ts:2127](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2127) A block-level chart reference (`c:chart`): its size and relationship id. ## Properties [Section titled “Properties”](#properties) ### altText? [Section titled “altText?”](#alttext) > `readonly` `optional` **altText?**: `string` Defined in: [src/core/document-model/types.ts:2135](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2135) `wp:docPr @descr/@title` — alternate text for the tagged-PDF Figure (`/Alt`). *** ### chartRelId [Section titled “chartRelId”](#chartrelid) > `readonly` **chartRelId**: `string` Defined in: [src/core/document-model/types.ts:2130](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2130) *** ### float? [Section titled “float?”](#float) > `readonly` `optional` **float?**: [`FloatAnchor`](/api/core/document-model/interfaces/floatanchor/) Defined in: [src/core/document-model/types.ts:2129](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2129) §20.4.2.3 — present when the drawing is anchored (floating). *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2132](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2132) *** ### paragraphProperties [Section titled “paragraphProperties”](#paragraphproperties) > `readonly` **paragraphProperties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:2133](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2133) *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2131](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2131) # ChartDataLabels Defined in: [src/core/document-model/types.ts:1897](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1897) §21.2.2.49 `c:dLbls` — what a chart’s data labels show and how their parts are joined: the chart group’s switches, the first series’ own over them. ## Properties [Section titled “Properties”](#properties) ### numberFormat? [Section titled “numberFormat?”](#numberformat) > `readonly` `optional` **numberFormat?**: `string` Defined in: [src/core/document-model/types.ts:1905](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1905) `c:dLbls/c:numFmt@formatCode`, when the labels have their own. *** ### position? [Section titled “position?”](#position) > `readonly` `optional` **position?**: [`ChartLabelPosition`](/api/core/document-model/type-aliases/chartlabelposition/) Defined in: [src/core/document-model/types.ts:1907](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1907) §21.2.2.48 `c:dLblPos` — where the labels stand. *** ### separator? [Section titled “separator?”](#separator) > `readonly` `optional` **separator?**: `string` Defined in: [src/core/document-model/types.ts:1903](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1903) §21.2.2.166 `c:separator` — between the parts; absent, Excel’s “, “. *** ### showCatName? [Section titled “showCatName?”](#showcatname) > `readonly` `optional` **showCatName?**: `boolean` Defined in: [src/core/document-model/types.ts:1899](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1899) *** ### showLeaderLines? [Section titled “showLeaderLines?”](#showleaderlines) > `readonly` `optional` **showLeaderLines?**: `boolean` Defined in: [src/core/document-model/types.ts:1909](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1909) §21.2.2.183 `c:showLeaderLines` — a label set off its slice is tied back to it. *** ### showPercent? [Section titled “showPercent?”](#showpercent) > `readonly` `optional` **showPercent?**: `boolean` Defined in: [src/core/document-model/types.ts:1901](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1901) *** ### showSerName? [Section titled “showSerName?”](#showsername) > `readonly` `optional` **showSerName?**: `boolean` Defined in: [src/core/document-model/types.ts:1900](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1900) *** ### showVal? [Section titled “showVal?”](#showval) > `readonly` `optional` **showVal?**: `boolean` Defined in: [src/core/document-model/types.ts:1898](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1898) # ChartDataPoint Defined in: [src/core/document-model/types.ts:1719](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1719) A per-point colour override (`c:dPt`) at series index `idx`. ## Properties [Section titled “Properties”](#properties) ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:1721](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1721) *** ### idx [Section titled “idx”](#idx) > `readonly` **idx**: `number` Defined in: [src/core/document-model/types.ts:1720](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1720) # ChartLineStyle Defined in: [src/core/document-model/types.ts:1830](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1830) §21.2.2.196 `c:spPr/a:ln` on an axis or its gridlines — the rule the author gave it. `none` is ``, which means the axis draws no line at all: 57362.xlsx hides its secondary value axis that way and keeps its labels. ## Properties [Section titled “Properties”](#properties) ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:1832](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1832) *** ### dash? [Section titled “dash?”](#dash) > `readonly` `optional` **dash?**: [`ShapeDash`](/api/core/document-model/type-aliases/shapedash/) Defined in: [src/core/document-model/types.ts:1835](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1835) §20.1.10.49 `a:prstDash` — the rule’s dash pattern, when it names one. *** ### none? [Section titled “none?”](#none) > `readonly` `optional` **none?**: `boolean` Defined in: [src/core/document-model/types.ts:1831](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1831) *** ### widthPt? [Section titled “widthPt?”](#widthpt) > `readonly` `optional` **widthPt?**: `number` Defined in: [src/core/document-model/types.ts:1833](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1833) # ChartMarker Defined in: [src/core/document-model/types.ts:1820](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1820) §21.2.2.106 `c:marker` — a series’ point symbol and its size in points (§21.2.2.153 `c:size`, 2–72). chartTitle\_noTitle.xlsx asks for a 5pt circle at every point and both references draw one; we stamped a square. ## Properties [Section titled “Properties”](#properties) ### sizePt? [Section titled “sizePt?”](#sizept) > `readonly` `optional` **sizePt?**: `number` Defined in: [src/core/document-model/types.ts:1822](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1822) *** ### symbol [Section titled “symbol”](#symbol) > `readonly` **symbol**: [`ChartMarkerSymbol`](/api/core/document-model/type-aliases/chartmarkersymbol/) Defined in: [src/core/document-model/types.ts:1821](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1821) # ChartSeries Defined in: [src/core/document-model/types.ts:1725](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1725) One chart data series (`c:ser`): its name, values and colour overrides. ## Properties [Section titled “Properties”](#properties) ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:1745](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1745) *** ### explosion? [Section titled “explosion?”](#explosion) > `readonly` `optional` **explosion?**: `number` Defined in: [src/core/document-model/types.ts:1752](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1752) §21.2.2.61 `c:explosion` — how far a pie’s slices stand out from its centre, as a percentage of its radius: the series’ own, and each point’s (`c:dPt/c:explosion`) over it. *** ### line? [Section titled “line?”](#line) > `readonly` `optional` **line?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:1795](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1795) §21.2.2.198 `c:ser/c:spPr/a:ln` — the series’ OWN rule. `` is how Excel writes “scatter with markers only”: the group still says `lineMarker`, and it is this line that says the points are not joined. SimpleScatterChart.xlsx is two loose dots in both references and we ran a line between them. *** ### marker? [Section titled “marker?”](#marker) > `readonly` `optional` **marker?**: [`ChartMarker`](/api/core/document-model/interfaces/chartmarker/) Defined in: [src/core/document-model/types.ts:1787](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1787) §21.2.2.106 `c:marker` — the symbol this series stamps on each of its points. Absent ⇒ the reader’s own default. *** ### name? [Section titled “name?”](#name) > `readonly` `optional` **name?**: `string` Defined in: [src/core/document-model/types.ts:1726](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1726) *** ### nameRef? [Section titled “nameRef?”](#nameref) > `readonly` `optional` **nameRef?**: `string` Defined in: [src/core/document-model/types.ts:1782](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1782) *** ### pointColors? [Section titled “pointColors?”](#pointcolors) > `readonly` `optional` **pointColors?**: readonly [`ChartDataPoint`](/api/core/document-model/interfaces/chartdatapoint/)\[] Defined in: [src/core/document-model/types.ts:1746](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1746) *** ### pointExplosions? [Section titled “pointExplosions?”](#pointexplosions) > `readonly` `optional` **pointExplosions?**: readonly `object`\[] Defined in: [src/core/document-model/types.ts:1753](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1753) *** ### pointLabelPlacements? [Section titled “pointLabelPlacements?”](#pointlabelplacements) > `readonly` `optional` **pointLabelPlacements?**: readonly `object`\[] Defined in: [src/core/document-model/types.ts:1768](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1768) §21.2.2.47 `c:dLbl` — where one point’s label stands, when the point says: its own `c:dLblPos`, and the `c:layout/c:manualLayout` it was dragged to — `x` and `y` fractions of the chart, the label’s own top-left corner where `edge`, else how far it moved from where the chart would set it. *** ### pointLabels? [Section titled “pointLabels?”](#pointlabels) > `readonly` `optional` **pointLabels?**: readonly `object`\[] Defined in: [src/core/document-model/types.ts:1761](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1761) §21.2.2.49 `c:dLbl/c:tx` — a data label the author typed rather than one the chart computes, by point index. Excel and Calc print it verbatim: it is the only place a label like “Промышленные потребители; 22,7млрд.кВтч; 67,3%” exists, and generating one from the value instead loses the whole sentence. *** ### secondaryAxis? [Section titled “secondaryAxis?”](#secondaryaxis) > `readonly` `optional` **secondaryAxis?**: `boolean` Defined in: [src/core/document-model/types.ts:1742](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1742) §21.2.2.9 `c:axId` — the series plots against the SECONDARY value axis: its group names a `c:valAx` other than the one the first group uses. 57362.xlsx puts its line on an axis of its own at `axPos="r"`, and plotting it on the primary scale puts every point at the wrong height whenever the two ranges differ. *** ### type? [Section titled “type?”](#type) > `readonly` `optional` **type?**: [`ChartType`](/api/core/document-model/type-aliases/charttype/) Defined in: [src/core/document-model/types.ts:1734](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1734) §21.2.2 — the chart group this series came from, when it is NOT the group that gave [Chart.type](/api/core/document-model/interfaces/chart/#type). A `c:plotArea` may hold several groups: a combo chart writes `c:barChart` and `c:lineChart` side by side, and reading only the first drops the other’s series off the page entirely (57362.xlsx loses its line). Absent ⇒ the series draws as the chart’s own type. *** ### values [Section titled “values”](#values) > `readonly` **values**: readonly `number`\[] Defined in: [src/core/document-model/types.ts:1743](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1743) *** ### valuesRef? [Section titled “valuesRef?”](#valuesref) > `readonly` `optional` **valuesRef?**: `string` Defined in: [src/core/document-model/types.ts:1781](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1781) §21.2.2.59 `c:val/c:numRef/c:f` and §21.2.2.215 `c:tx/c:strRef/c:f` — where the series reads its numbers and its name FROM, when the chart part carries no cache of them. A chart written without caches is not a chart without data: the reader resolves these against the workbook. *** ### xValues? [Section titled “xValues?”](#xvalues) > `readonly` `optional` **xValues?**: readonly `number`\[] Defined in: [src/core/document-model/types.ts:1744](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1744) # ChartSurface Defined in: [src/core/document-model/types.ts:1839](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1839) A 3-D chart’s wall or floor (§21.2.2.11, §21.2.2.69, §21.2.2.191): its fill and rule. ## Properties [Section titled “Properties”](#properties) ### fillHex? [Section titled “fillHex?”](#fillhex) > `readonly` `optional` **fillHex?**: `string` Defined in: [src/core/document-model/types.ts:1841](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1841) `c:spPr/a:solidFill` — RRGGBB; absent, unfilled. *** ### line? [Section titled “line?”](#line) > `readonly` `optional` **line?**: [`ChartLineStyle`](/api/core/document-model/interfaces/chartlinestyle/) Defined in: [src/core/document-model/types.ts:1843](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1843) `c:spPr/a:ln` — its rule, `{ none: true }` for `a:noFill`; absent, the default. # ChartTextStyle Defined in: [src/core/document-model/types.ts:1851](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1851) §21.2.2.216 `c:txPr`, §21.2.2.156 `c:rich` — how one kind of a chart’s text is set: the element’s own run properties over the chart’s (`c:chartSpace/ c:txPr`) over the application’s defaults, theme tokens resolved. ## Properties [Section titled “Properties”](#properties) ### bold? [Section titled “bold?”](#bold) > `readonly` `optional` **bold?**: `boolean` Defined in: [src/core/document-model/types.ts:1856](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1856) *** ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:1859](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1859) `a:solidFill` — the text colour as RRGGBB. *** ### family? [Section titled “family?”](#family) > `readonly` `optional` **family?**: `string` Defined in: [src/core/document-model/types.ts:1853](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1853) `a:latin@typeface` — the family, `+mn-lt`/`+mj-lt` already resolved. *** ### italic? [Section titled “italic?”](#italic) > `readonly` `optional` **italic?**: `boolean` Defined in: [src/core/document-model/types.ts:1857](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1857) *** ### sizePt? [Section titled “sizePt?”](#sizept) > `readonly` `optional` **sizePt?**: `number` Defined in: [src/core/document-model/types.ts:1855](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1855) `@sz`, in points. # ChartTextStyles Defined in: [src/core/document-model/types.ts:1863](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1863) A chart’s text by role, each resolved through the cascade on its own. ## Properties [Section titled “Properties”](#properties) ### catAxis? [Section titled “catAxis?”](#cataxis) > `readonly` `optional` **catAxis?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1869](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1869) The category axis’s tick labels — a scatter’s horizontal value axis. *** ### catAxisTitle? [Section titled “catAxisTitle?”](#cataxistitle) > `readonly` `optional` **catAxisTitle?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1874](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1874) *** ### dataLabels? [Section titled “dataLabels?”](#datalabels) > `readonly` `optional` **dataLabels?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1878](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1878) `c:dLbls` — the values and labels printed on the data. *** ### legend? [Section titled “legend?”](#legend) > `readonly` `optional` **legend?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1867](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1867) `c:legend` — the entries. *** ### secondaryValAxis? [Section titled “secondaryValAxis?”](#secondaryvalaxis) > `readonly` `optional` **secondaryValAxis?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1873](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1873) The secondary value axis’s tick labels. *** ### secondaryValAxisTitle? [Section titled “secondaryValAxisTitle?”](#secondaryvalaxistitle) > `readonly` `optional` **secondaryValAxisTitle?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1876](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1876) *** ### title? [Section titled “title?”](#title) > `readonly` `optional` **title?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1865](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1865) `c:chart/c:title`. *** ### valAxis? [Section titled “valAxis?”](#valaxis) > `readonly` `optional` **valAxis?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1871](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1871) The value axis’s tick labels — a scatter’s upright one. *** ### valAxisTitle? [Section titled “valAxisTitle?”](#valaxistitle) > `readonly` `optional` **valAxisTitle?**: [`ChartTextStyle`](/api/core/document-model/interfaces/charttextstyle/) Defined in: [src/core/document-model/types.ts:1875](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1875) # Comment Defined in: [src/core/document-model/types.ts:696](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L696) ECMA-376 Part 1 §17.13.4.2 `w:comment` — a review comment: its block content plus the author/date attribution. Anchored from a run’s `commentRef`. ## Properties [Section titled “Properties”](#properties) ### author? [Section titled “author?”](#author) > `readonly` `optional` **author?**: `string` Defined in: [src/core/document-model/types.ts:698](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L698) *** ### authorId? [Section titled “authorId?”](#authorid) > `readonly` `optional` **authorId?**: `string` Defined in: [src/core/document-model/types.ts:707](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L707) The author’s resolved identity (usually an email) from word/people.xml (`w15:person` → `w15:presenceInfo/@w15:userId`), matched on the author name. Absent when the file ships no people part or the author is not listed. *** ### content [Section titled “content”](#content) > `readonly` **content**: readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] Defined in: [src/core/document-model/types.ts:697](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L697) *** ### date? [Section titled “date?”](#date) > `readonly` `optional` **date?**: `string` Defined in: [src/core/document-model/types.ts:701](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L701) Raw w:date timestamp (ISO 8601), as authored — not reformatted. *** ### done? [Section titled “done?”](#done) > `readonly` `optional` **done?**: `boolean` Defined in: [src/core/document-model/types.ts:715](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L715) w15:done — the comment thread was marked resolved. *** ### initials? [Section titled “initials?”](#initials) > `readonly` `optional` **initials?**: `string` Defined in: [src/core/document-model/types.ts:699](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L699) *** ### parentId? [Section titled “parentId?”](#parentid) > `readonly` `optional` **parentId?**: `string` Defined in: [src/core/document-model/types.ts:713](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L713) Microsoft commentsExtended (w15) — the id of the comment this one replies to, forming a thread. Set only when word/commentsExtended.xml links this comment’s paragraph to a parent (w15:paraIdParent). Top-level comments omit it. # CustomGeometry Defined in: [src/core/document-model/types.ts:1433](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1433) §20.1.9.11 `custGeom` — a custom geometry: its path-space extent (`pathWidth`/`pathHeight`) and the [CustomPathCmd](/api/core/document-model/type-aliases/custompathcmd/) list that draws it. ## Properties [Section titled “Properties”](#properties) ### commands [Section titled “commands”](#commands) > `readonly` **commands**: readonly [`CustomPathCmd`](/api/core/document-model/type-aliases/custompathcmd/)\[] Defined in: [src/core/document-model/types.ts:1436](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1436) *** ### pathHeight [Section titled “pathHeight”](#pathheight) > `readonly` **pathHeight**: `number` Defined in: [src/core/document-model/types.ts:1435](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1435) *** ### pathWidth [Section titled “pathWidth”](#pathwidth) > `readonly` **pathWidth**: `number` Defined in: [src/core/document-model/types.ts:1434](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1434) # DocumentModel Defined in: [src/core/document-model/types.ts:2384](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2384) The parsed WordprocessingML document: body, stylesheet, numbering and section setup. ## Properties [Section titled “Properties”](#properties) ### body [Section titled “body”](#body) > `readonly` **body**: readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] Defined in: [src/core/document-model/types.ts:2385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2385) *** ### numbering? [Section titled “numbering?”](#numbering) > `readonly` `optional` **numbering?**: [`Numbering`](/api/core/document-model/interfaces/numbering/) Defined in: [src/core/document-model/types.ts:2387](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2387) *** ### section? [Section titled “section?”](#section) > `readonly` `optional` **section?**: [`SectionProperties`](/api/core/document-model/interfaces/sectionproperties/) Defined in: [src/core/document-model/types.ts:2388](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2388) *** ### styleSheet [Section titled “styleSheet”](#stylesheet) > `readonly` **styleSheet**: [`StyleSheet`](/api/core/document-model/interfaces/stylesheet/) Defined in: [src/core/document-model/types.ts:2386](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2386) # FloatAnchor Defined in: [src/core/document-model/types.ts:2260](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2260) §20.4.2.3 `wp:anchor` — a floating drawing’s placement. v1 honours out-of-flow placement for wrap `'none'` (incl. `behindDoc`); the side-wrapping modes (square/tight/through) and `topAndBottom` stay in flow as blocks. ## Properties [Section titled “Properties”](#properties) ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/core/document-model/types.ts:2267](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2267) *** ### inCell? [Section titled “inCell?”](#incell) > `readonly` `optional` **inCell?**: `boolean` Defined in: [src/core/document-model/types.ts:2337](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2337) §20.4.2.3 `wp:anchor @layoutInCell` (VML `o:allowincell`) — present and false when a drawing anchored inside a TABLE CELL is placed against the page rather than against the cell. Absent means the default: the cell is the frame every `relativeFrom` is measured in. *** ### posH? [Section titled “posH?”](#posh) > `readonly` `optional` **posH?**: `object` Defined in: [src/core/document-model/types.ts:2274](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2274) #### align? [Section titled “align?”](#align) > `readonly` `optional` **align?**: `"right"` | `"left"` | `"center"` | `"inside"` | `"outside"` §20.4.2.1 `wp:align` (§20.4.3.1 ST\_AlignH). `inside` is the left on an odd page and the right on an even one; `outside` the other way round. #### offsetPt? [Section titled “offsetPt?”](#offsetpt) > `readonly` `optional` **offsetPt?**: [`Pt`](/api/index/type-aliases/pt/) #### relativeFrom [Section titled “relativeFrom”](#relativefrom) > `readonly` **relativeFrom**: `"page"` | `"column"` | `"margin"` | `"leftMargin"` | `"rightMargin"` | `"character"` | `"insideMargin"` | `"outsideMargin"` §20.4.3.4 ST\_RelFromH. `leftMargin`/`rightMargin` are the margin BANDS beside the text area, which is where a marginal note is placed: tdf103573.docx centres one box in each, and read as plain `margin` they both landed in the middle of the text and printed over each other. `insideMargin`/`outsideMargin` are one band or the other by the page’s parity, and `character` is where the anchor stands in its line. *** ### posV? [Section titled “posV?”](#posv) > `readonly` `optional` **posV?**: `object` Defined in: [src/core/document-model/types.ts:2299](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2299) #### align? [Section titled “align?”](#align-1) > `readonly` `optional` **align?**: `"top"` | `"bottom"` | `"center"` | `"inside"` | `"outside"` §20.4.2.2 `wp:align` (§20.4.3.2 ST\_AlignV; VML: `mso-position-vertical`) — a KEYWORD rather than an offset, which is how Word centres a watermark in its page. `inside` is the top on an odd page and the bottom on an even one; `outside` the other way round. #### offsetPt? [Section titled “offsetPt?”](#offsetpt-1) > `readonly` `optional` **offsetPt?**: [`Pt`](/api/index/type-aliases/pt/) #### relativeFrom [Section titled “relativeFrom”](#relativefrom-1) > `readonly` **relativeFrom**: `"line"` | `"page"` | `"paragraph"` | `"margin"` | `"topMargin"` | `"bottomMargin"` | `"insideMargin"` | `"outsideMargin"` §20.4.3.5 ST\_RelFromV. `topMargin`/`bottomMargin` measure from the top edge of the margin BAND they name — page-content-bottom.docx hangs a square 312pt above the bottom margin, and read as plain `margin` it went off the top of the page. `insideMargin`/`outsideMargin` are one band or the other by the page’s parity. *** ### wrap [Section titled “wrap”](#wrap) > `readonly` **wrap**: `"none"` | `"square"` | `"notBeside"` | `"tight"` | `"through"` | `"topAndBottom"` Defined in: [src/core/document-model/types.ts:2266](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2266) §20.4.2.3 / §17.18.104 — how body text runs past the drawing. `notBeside` is the FRAME’s own mode: the drawing keeps the place its anchor names, but no text may stand beside it, so its band spans the whole column. *** ### wrapDist? [Section titled “wrapDist?”](#wrapdist) > `readonly` `optional` **wrapDist?**: `object` Defined in: [src/core/document-model/types.ts:2342](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2342) §20.4.2.3 `wp:anchor @distT/@distB/@distL/@distR` — how far the wrapped text stands off each edge of the drawing. Absent sides are 0. #### bottomPt [Section titled “bottomPt”](#bottompt) > `readonly` **bottomPt**: [`Pt`](/api/index/type-aliases/pt/) #### leftPt [Section titled “leftPt”](#leftpt) > `readonly` **leftPt**: [`Pt`](/api/index/type-aliases/pt/) #### rightPt [Section titled “rightPt”](#rightpt) > `readonly` **rightPt**: [`Pt`](/api/index/type-aliases/pt/) #### topPt [Section titled “topPt”](#toppt) > `readonly` **topPt**: [`Pt`](/api/index/type-aliases/pt/) *** ### wrapSide? [Section titled “wrapSide?”](#wrapside) > `readonly` `optional` **wrapSide?**: `"right"` | `"left"` | `"bothSides"` | `"largest"` Defined in: [src/core/document-model/types.ts:2330](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2330) §20.4.2.3 `@wrapText` on the wrap element — which side(s) of the drawing text may stand on. `bothSides` is the default and the only value that fills BOTH gaps; `left`/`right` name one, `largest` the wider. *** ### zOrder? [Section titled “zOrder?”](#zorder) > `readonly` `optional` **zOrder?**: `number` Defined in: [src/core/document-model/types.ts:2273](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2273) §20.4.2.3 `wp:anchor @relativeHeight` — the z-order among the floats on the page: the higher number is drawn over the lower, whatever their order in the document. # FontFamilyMap Defined in: [src/core/document-model/types.ts:60](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L60) The four script slots of `w:rFonts` (§17.3.2.26). A character picks its font from the slot its Unicode range maps to (ASCII, high-ANSI, complex-script, East-Asian). ## Properties [Section titled “Properties”](#properties) ### ascii? [Section titled “ascii?”](#ascii) > `readonly` `optional` **ascii?**: `string` Defined in: [src/core/document-model/types.ts:61](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L61) *** ### cs? [Section titled “cs?”](#cs) > `readonly` `optional` **cs?**: `string` Defined in: [src/core/document-model/types.ts:63](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L63) *** ### eastAsia? [Section titled “eastAsia?”](#eastasia) > `readonly` `optional` **eastAsia?**: `string` Defined in: [src/core/document-model/types.ts:64](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L64) *** ### hAnsi? [Section titled “hAnsi?”](#hansi) > `readonly` `optional` **hAnsi?**: `string` Defined in: [src/core/document-model/types.ts:62](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L62) # FrameProperties Defined in: [src/core/document-model/types.ts:202](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L202) §17.3.1.11 `w:framePr` — the paragraph is a floating TEXT FRAME: it leaves the flow, takes the box this describes, and the body text wraps around it. Consecutive paragraphs carrying the same frame are one frame together. ## Properties [Section titled “Properties”](#properties) ### hAnchor? [Section titled “hAnchor?”](#hanchor) > `readonly` `optional` **hAnchor?**: `"text"` | `"page"` | `"margin"` Defined in: [src/core/document-model/types.ts:214](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L214) *** ### heightPt? [Section titled “heightPt?”](#heightpt) > `readonly` `optional` **heightPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:206](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L206) `w:h` with `w:hRule` — `exact` pins the height, anything else fits the text. *** ### heightRule? [Section titled “heightRule?”](#heightrule) > `readonly` `optional` **heightRule?**: `"auto"` | `"exact"` | `"atLeast"` Defined in: [src/core/document-model/types.ts:207](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L207) *** ### hSpacePt? [Section titled “hSpacePt?”](#hspacept) > `readonly` `optional` **hSpacePt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:218](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L218) *** ### vAnchor? [Section titled “vAnchor?”](#vanchor) > `readonly` `optional` **vAnchor?**: `"text"` | `"page"` | `"margin"` Defined in: [src/core/document-model/types.ts:215](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L215) *** ### vSpacePt? [Section titled “vSpacePt?”](#vspacept) > `readonly` `optional` **vSpacePt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:219](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L219) *** ### widthPt? [Section titled “widthPt?”](#widthpt) > `readonly` `optional` **widthPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:204](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L204) `w:w` — the frame’s width. Absent ⇒ as wide as the text needs. *** ### wrap? [Section titled “wrap?”](#wrap) > `readonly` `optional` **wrap?**: `"none"` | `"auto"` | `"around"` | `"notBeside"` | `"tight"` | `"through"` Defined in: [src/core/document-model/types.ts:217](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L217) §17.18.104 ST\_Wrap — how the body text runs past the frame. *** ### xAlign? [Section titled “xAlign?”](#xalign) > `readonly` `optional` **xAlign?**: `"right"` | `"left"` | `"center"` | `"inside"` | `"outside"` Defined in: [src/core/document-model/types.ts:212](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L212) `w:xAlign`/`w:yAlign` — an alignment instead of an offset. *** ### xPt? [Section titled “xPt?”](#xpt) > `readonly` `optional` **xPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:209](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L209) `w:x`/`w:y` — the offset from whatever `hAnchor`/`vAnchor` names. *** ### yAlign? [Section titled “yAlign?”](#yalign) > `readonly` `optional` **yAlign?**: `"top"` | `"bottom"` | `"center"` | `"inside"` | `"outside"` Defined in: [src/core/document-model/types.ts:213](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L213) *** ### yPt? [Section titled “yPt?”](#ypt) > `readonly` `optional` **yPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:210](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L210) # HeaderFooterReference Defined in: [src/core/document-model/types.ts:2172](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2172) §17.10.5/§17.10.2 `w:headerReference`/`w:footerReference` — a typed rels pointer. ## Properties [Section titled “Properties”](#properties) ### relationshipId [Section titled “relationshipId”](#relationshipid) > `readonly` **relationshipId**: `string` Defined in: [src/core/document-model/types.ts:2174](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2174) *** ### type [Section titled “type”](#type) > `readonly` **type**: [`HeaderFooterType`](/api/core/document-model/type-aliases/headerfootertype/) Defined in: [src/core/document-model/types.ts:2173](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2173) # ImageBlock Defined in: [src/core/document-model/types.ts:1338](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1338) ## Properties [Section titled “Properties”](#properties) ### alpha? [Section titled “alpha?”](#alpha) > `readonly` `optional` **alpha?**: `number` Defined in: [src/core/document-model/types.ts:1362](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1362) §20.1.8.4 `a:alphaModFix` — how opaque the picture is DRAWN, `0..1`; absent is opaque. A layout that lays a photograph behind its text sets it low (ArtisticEffectSample’s cover shows one at 52%), and drawn full-strength the words on it are unreadable. *** ### altText? [Section titled “altText?”](#alttext) > `readonly` `optional` **altText?**: `string` Defined in: [src/core/document-model/types.ts:1387](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1387) `wp:docPr @descr/@title` — alternate text for the tagged-PDF Figure (`/Alt`). *** ### colorChange? [Section titled “colorChange?”](#colorchange) > `readonly` `optional` **colorChange?**: `object` Defined in: [src/core/document-model/types.ts:1367](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1367) §20.1.8.16 `a:clrChange` — one colour of the picture replaced by another, or knocked out entirely when the destination states `a:alpha` at zero. #### fromHex [Section titled “fromHex”](#fromhex) > `readonly` **fromHex**: `string` #### toHex [Section titled “toHex”](#tohex) > `readonly` **toHex**: `string` #### transparent [Section titled “transparent”](#transparent) > `readonly` **transparent**: `boolean` *** ### crop? [Section titled “crop?”](#crop) > `readonly` `optional` **crop?**: [`ImageCrop`](/api/core/document-model/interfaces/imagecrop/) Defined in: [src/core/document-model/types.ts:1375](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1375) §20.1.8.55 `a:srcRect` — the part of the source the frame shows. *** ### effectExtent? [Section titled “effectExtent?”](#effectextent) > `readonly` `optional` **effectExtent?**: `object` Defined in: [src/core/document-model/types.ts:1384](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1384) §20.4.2.6 `wp:effectExtent` — space reserved around the picture (see [InlineImage](/api/core/document-model/interfaces/inlineimage/)). #### bottomPt [Section titled “bottomPt”](#bottompt) > `readonly` **bottomPt**: [`Pt`](/api/index/type-aliases/pt/) #### leftPt [Section titled “leftPt”](#leftpt) > `readonly` **leftPt**: [`Pt`](/api/index/type-aliases/pt/) #### rightPt [Section titled “rightPt”](#rightpt) > `readonly` **rightPt**: [`Pt`](/api/index/type-aliases/pt/) #### topPt [Section titled “topPt”](#toppt) > `readonly` **topPt**: [`Pt`](/api/index/type-aliases/pt/) *** ### flipH? [Section titled “flipH?”](#fliph) > `readonly` `optional` **flipH?**: `boolean` Defined in: [src/core/document-model/types.ts:1379](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1379) §20.1.7.6 `a:xfrm @flipH/@flipV` — the picture drawn mirrored. *** ### flipV? [Section titled “flipV?”](#flipv) > `readonly` `optional` **flipV?**: `boolean` Defined in: [src/core/document-model/types.ts:1380](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1380) *** ### float? [Section titled “float?”](#float) > `readonly` `optional` **float?**: [`FloatAnchor`](/api/core/document-model/interfaces/floatanchor/) Defined in: [src/core/document-model/types.ts:1340](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1340) §20.4.2.3 — present when the drawing is anchored (floating). *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1373](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1373) *** ### outline? [Section titled “outline?”](#outline) > `readonly` `optional` **outline?**: [`PictureOutline`](/api/core/document-model/interfaces/pictureoutline/) Defined in: [src/core/document-model/types.ts:1343](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1343) The picture’s own frame, when it has one (see [PictureOutline](/api/core/document-model/interfaces/pictureoutline/)). *** ### paragraphProperties [Section titled “paragraphProperties”](#paragraphproperties) > `readonly` **paragraphProperties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:1385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1385) *** ### relativeSize? [Section titled “relativeSize?”](#relativesize) > `readonly` `optional` **relativeSize?**: [`RelativeSize`](/api/core/document-model/interfaces/relativesize/) Defined in: [src/core/document-model/types.ts:1382](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1382) `wp14:sizeRelH/V` — a size stated as a share of the page or margins. *** ### resource? [Section titled “resource?”](#resource) > `readonly` `optional` **resource?**: [`ResourceId`](/api/index/type-aliases/resourceid/) Defined in: [src/core/document-model/types.ts:1341](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1341) *** ### rotation60k? [Section titled “rotation60k?”](#rotation60k) > `readonly` `optional` **rotation60k?**: `number` Defined in: [src/core/document-model/types.ts:1377](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1377) §20.1.7.6 `a:xfrm @rot` — the picture’s own rotation (1/60000°, clockwise). *** ### shadow? [Section titled “shadow?”](#shadow) > `readonly` `optional` **shadow?**: [`ShapeShadow`](/api/core/document-model/interfaces/shapeshadow/) Defined in: [src/core/document-model/types.ts:1349](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1349) §20.1.8.40 `a:outerShdw` — the drop shadow under the picture. Word writes one on every screenshot pasted with a style; drawn nowhere, imgshadow\.docx’s six stood flat on the page where both references lift them off it. *** ### wash? [Section titled “wash?”](#wash) > `readonly` `optional` **wash?**: `object` Defined in: [src/core/document-model/types.ts:1355](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1355) §14.1.2.10 `@gain`/`@blacklevel` — the contrast and brightness the picture is drawn through, about mid grey: `out = (in - 0.5) * gain + 0.5 + black`. Word washes a watermark out this way. #### black [Section titled “black”](#black) > `readonly` **black**: `number` #### gain [Section titled “gain”](#gain) > `readonly` **gain**: `number` *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1372](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1372) # ImageCrop Defined in: [src/core/document-model/types.ts:1331](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1331) §20.1.8.55 `a:srcRect` — how much of each edge of the source picture is cut away before it is fitted to its frame, as a fraction of the source (so 0.25 on `left` drops its left quarter). Absent edges are zero. ## Properties [Section titled “Properties”](#properties) ### bottom [Section titled “bottom”](#bottom) > `readonly` **bottom**: `number` Defined in: [src/core/document-model/types.ts:1335](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1335) *** ### left [Section titled “left”](#left) > `readonly` **left**: `number` Defined in: [src/core/document-model/types.ts:1332](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1332) *** ### right [Section titled “right”](#right) > `readonly` **right**: `number` Defined in: [src/core/document-model/types.ts:1334](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1334) *** ### top [Section titled “top”](#top) > `readonly` **top**: `number` Defined in: [src/core/document-model/types.ts:1333](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1333) # InlineImage Defined in: [src/core/document-model/types.ts:356](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L356) ## Properties [Section titled “Properties”](#properties) ### colorChange? [Section titled “colorChange?”](#colorchange) > `readonly` `optional` **colorChange?**: `object` Defined in: [src/core/document-model/types.ts:382](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L382) §20.1.8.16 `a:clrChange` — one colour of the picture replaced by another, or knocked out entirely when the destination states `a:alpha` at zero. A logo on a white card goes onto a dark slide that way (corpus: tdf113163, whose whole slide is a metafile with its white ground declared away). #### fromHex [Section titled “fromHex”](#fromhex) > `readonly` **fromHex**: `string` #### toHex [Section titled “toHex”](#tohex) > `readonly` **toHex**: `string` #### transparent [Section titled “transparent”](#transparent) > `readonly` **transparent**: `boolean` *** ### crop? [Section titled “crop?”](#crop) > `readonly` `optional` **crop?**: [`ImageCrop`](/api/core/document-model/interfaces/imagecrop/) Defined in: [src/core/document-model/types.ts:390](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L390) §20.1.8.55 `a:srcRect` — the part of the source the frame shows. *** ### effectExtent? [Section titled “effectExtent?”](#effectextent) > `readonly` `optional` **effectExtent?**: `object` Defined in: [src/core/document-model/types.ts:401](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L401) §20.4.2.6 `wp:effectExtent` — space the drawing needs BEYOND its extent, for what a rotation or an effect throws outside the frame. The line box reserves it; the picture itself is drawn inset by it. #### bottomPt [Section titled “bottomPt”](#bottompt) > `readonly` **bottomPt**: [`Pt`](/api/index/type-aliases/pt/) #### leftPt [Section titled “leftPt”](#leftpt) > `readonly` **leftPt**: [`Pt`](/api/index/type-aliases/pt/) #### rightPt [Section titled “rightPt”](#rightpt) > `readonly` **rightPt**: [`Pt`](/api/index/type-aliases/pt/) #### topPt [Section titled “topPt”](#toppt) > `readonly` **topPt**: [`Pt`](/api/index/type-aliases/pt/) *** ### flipH? [Section titled “flipH?”](#fliph) > `readonly` `optional` **flipH?**: `boolean` Defined in: [src/core/document-model/types.ts:394](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L394) §20.1.7.6 `a:xfrm @flipH/@flipV` — the picture drawn mirrored. *** ### flipV? [Section titled “flipV?”](#flipv) > `readonly` `optional` **flipV?**: `boolean` Defined in: [src/core/document-model/types.ts:395](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L395) *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:388](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L388) *** ### outline? [Section titled “outline?”](#outline) > `readonly` `optional` **outline?**: [`PictureOutline`](/api/core/document-model/interfaces/pictureoutline/) Defined in: [src/core/document-model/types.ts:363](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L363) The picture’s own frame, when it has one (see [PictureOutline](/api/core/document-model/interfaces/pictureoutline/)). *** ### resource? [Section titled “resource?”](#resource) > `readonly` `optional` **resource?**: [`ResourceId`](/api/index/type-aliases/resourceid/) Defined in: [src/core/document-model/types.ts:361](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L361) Content-addressed bytes in the document’s `ResourceStore`; absent when the source relationship did not resolve (the layout box still reserves space). *** ### rotation60k? [Section titled “rotation60k?”](#rotation60k) > `readonly` `optional` **rotation60k?**: `number` Defined in: [src/core/document-model/types.ts:392](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L392) §20.1.7.6 `a:xfrm @rot` — the picture’s own rotation (1/60000°, clockwise). *** ### shadow? [Section titled “shadow?”](#shadow) > `readonly` `optional` **shadow?**: [`ShapeShadow`](/api/core/document-model/interfaces/shapeshadow/) Defined in: [src/core/document-model/types.ts:369](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L369) §20.1.8.40 `a:outerShdw` — the drop shadow under the picture. Word writes one on every screenshot pasted with a style; drawn nowhere, imgshadow\.docx’s six stood flat on the page where both references lift them off it. *** ### wash? [Section titled “wash?”](#wash) > `readonly` `optional` **wash?**: `object` Defined in: [src/core/document-model/types.ts:375](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L375) §14.1.2.10 `@gain`/`@blacklevel` — the contrast and brightness the picture is drawn through, about mid grey: `out = (in - 0.5) * gain + 0.5 + black`. Word washes a watermark out this way. #### black [Section titled “black”](#black) > `readonly` **black**: `number` #### gain [Section titled “gain”](#gain) > `readonly` **gain**: `number` *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:387](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L387) # LineEnd Defined in: [src/core/document-model/types.ts:1559](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1559) §20.1.8.24 / §20.1.8.42 — an arrowhead (or other decoration) at one end of a line: its shape plus the width and length steps `ST_LineEndWidth` / `ST_LineEndLength` name. ## Properties [Section titled “Properties”](#properties) ### length? [Section titled “length?”](#length) > `readonly` `optional` **length?**: `"sm"` | `"med"` | `"lg"` Defined in: [src/core/document-model/types.ts:1562](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1562) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"diamond"` | `"triangle"` | `"stealth"` | `"oval"` | `"arrow"` Defined in: [src/core/document-model/types.ts:1560](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1560) *** ### width? [Section titled “width?”](#width) > `readonly` `optional` **width?**: `"sm"` | `"med"` | `"lg"` Defined in: [src/core/document-model/types.ts:1561](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1561) # MathAccent Defined in: [src/core/document-model/types.ts:514](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L514) `m:acc` — accent character over a base (hat, bar, vec, dot, tilde …). ## Properties [Section titled “Properties”](#properties) ### base [Section titled “base”](#base) > `readonly` **base**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:517](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L517) *** ### char [Section titled “char”](#char) > `readonly` **char**: `string` Defined in: [src/core/document-model/types.ts:516](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L516) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"accent"` Defined in: [src/core/document-model/types.ts:515](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L515) # MathBar Defined in: [src/core/document-model/types.ts:521](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L521) `m:bar` — a bar above or below the base. ## Properties [Section titled “Properties”](#properties) ### base [Section titled “base”](#base) > `readonly` **base**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:523](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L523) *** ### pos [Section titled “pos”](#pos) > `readonly` **pos**: `"top"` | `"bot"` Defined in: [src/core/document-model/types.ts:524](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L524) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"bar"` Defined in: [src/core/document-model/types.ts:522](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L522) # MathDelimiter Defined in: [src/core/document-model/types.ts:499](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L499) `m:d` — delimiters around one or more elements. ## Properties [Section titled “Properties”](#properties) ### begChr [Section titled “begChr”](#begchr) > `readonly` **begChr**: `string` Defined in: [src/core/document-model/types.ts:501](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L501) *** ### children [Section titled “children”](#children) > `readonly` **children**: readonly [`MathNode`](/api/core/document-model/type-aliases/mathnode/)\[] Defined in: [src/core/document-model/types.ts:504](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L504) *** ### endChr [Section titled “endChr”](#endchr) > `readonly` **endChr**: `string` Defined in: [src/core/document-model/types.ts:502](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L502) *** ### sepChr? [Section titled “sepChr?”](#sepchr) > `readonly` `optional` **sepChr?**: `string` Defined in: [src/core/document-model/types.ts:503](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L503) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"delimiter"` Defined in: [src/core/document-model/types.ts:500](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L500) # MathEqArray Defined in: [src/core/document-model/types.ts:539](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L539) `m:eqArr` — an equation array: a stack of equations, each on its own line, left-aligned, the block vertically centred on the math axis. ## Properties [Section titled “Properties”](#properties) ### rows [Section titled “rows”](#rows) > `readonly` **rows**: readonly [`MathNode`](/api/core/document-model/type-aliases/mathnode/)\[] Defined in: [src/core/document-model/types.ts:541](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L541) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"eqArr"` Defined in: [src/core/document-model/types.ts:540](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L540) # MathFraction Defined in: [src/core/document-model/types.ts:450](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L450) `m:f` — fraction. `barless` = `m:fPr/m:type val="noBar"`. ## Properties [Section titled “Properties”](#properties) ### barless? [Section titled “barless?”](#barless) > `readonly` `optional` **barless?**: `boolean` Defined in: [src/core/document-model/types.ts:454](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L454) *** ### den [Section titled “den”](#den) > `readonly` **den**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:453](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L453) *** ### num [Section titled “num”](#num) > `readonly` **num**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:452](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L452) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"fraction"` Defined in: [src/core/document-model/types.ts:451](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L451) # MathFunc Defined in: [src/core/document-model/types.ts:484](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L484) `m:func` — function application (sin x, …): a name applied to an argument. ## Properties [Section titled “Properties”](#properties) ### body [Section titled “body”](#body) > `readonly` **body**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:487](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L487) *** ### name [Section titled “name”](#name) > `readonly` **name**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:486](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L486) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"func"` Defined in: [src/core/document-model/types.ts:485](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L485) # MathGroupChr Defined in: [src/core/document-model/types.ts:528](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L528) `m:groupChr` — a grouping character (brace …) above or below the base. ## Properties [Section titled “Properties”](#properties) ### base [Section titled “base”](#base) > `readonly` **base**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:531](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L531) *** ### char [Section titled “char”](#char) > `readonly` **char**: `string` Defined in: [src/core/document-model/types.ts:530](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L530) *** ### pos [Section titled “pos”](#pos) > `readonly` **pos**: `"top"` | `"bot"` Defined in: [src/core/document-model/types.ts:532](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L532) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"groupChr"` Defined in: [src/core/document-model/types.ts:529](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L529) # MathLimit Defined in: [src/core/document-model/types.ts:491](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L491) `m:limLow` / `m:limUpp` — a limit below/above the base. ## Properties [Section titled “Properties”](#properties) ### base [Section titled “base”](#base) > `readonly` **base**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:493](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L493) *** ### lim [Section titled “lim”](#lim) > `readonly` **lim**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:494](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L494) *** ### pos [Section titled “pos”](#pos) > `readonly` **pos**: `"low"` | `"upp"` Defined in: [src/core/document-model/types.ts:495](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L495) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"limit"` Defined in: [src/core/document-model/types.ts:492](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L492) # MathMatrix Defined in: [src/core/document-model/types.ts:508](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L508) `m:m` — matrix of cells (rows × columns). ## Properties [Section titled “Properties”](#properties) ### rows [Section titled “rows”](#rows) > `readonly` **rows**: readonly readonly [`MathNode`](/api/core/document-model/type-aliases/mathnode/)\[]\[] Defined in: [src/core/document-model/types.ts:510](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L510) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"matrix"` Defined in: [src/core/document-model/types.ts:509](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L509) # MathNary Defined in: [src/core/document-model/types.ts:474](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L474) `m:nary` — n-ary operator (∑ ∏ ∫ …) with optional sub/sup limits. ## Properties [Section titled “Properties”](#properties) ### body [Section titled “body”](#body) > `readonly` **body**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:477](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L477) *** ### limLoc? [Section titled “limLoc?”](#limloc) > `readonly` `optional` **limLoc?**: `"undOvr"` | `"subSup"` Defined in: [src/core/document-model/types.ts:480](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L480) *** ### op [Section titled “op”](#op) > `readonly` **op**: `string` Defined in: [src/core/document-model/types.ts:476](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L476) *** ### sub? [Section titled “sub?”](#sub) > `readonly` `optional` **sub?**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:478](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L478) *** ### sup? [Section titled “sup?”](#sup) > `readonly` `optional` **sup?**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:479](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L479) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"nary"` Defined in: [src/core/document-model/types.ts:475](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L475) # MathRadical Defined in: [src/core/document-model/types.ts:467](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L467) `m:rad` — radical with optional degree (`m:deg`). ## Properties [Section titled “Properties”](#properties) ### degree? [Section titled “degree?”](#degree) > `readonly` `optional` **degree?**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:470](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L470) *** ### radicand [Section titled “radicand”](#radicand) > `readonly` **radicand**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:469](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L469) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"radical"` Defined in: [src/core/document-model/types.ts:468](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L468) # MathRow Defined in: [src/core/document-model/types.ts:432](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L432) A sequence of sibling nodes (`m:oMath`, `m:e`, `m:num`, `m:den`, `m:fName` …). ## Properties [Section titled “Properties”](#properties) ### children [Section titled “children”](#children) > `readonly` **children**: readonly [`MathNode`](/api/core/document-model/type-aliases/mathnode/)\[] Defined in: [src/core/document-model/types.ts:434](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L434) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"row"` Defined in: [src/core/document-model/types.ts:433](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L433) # MathRun Defined in: [src/core/document-model/types.ts:441](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L441) `m:r` / `m:t` — literal symbols. `italic`/`bold` come from `m:rPr`/`m:sty`; `nor` (normal text) forces upright. With none set, letters auto-italicise. ## Properties [Section titled “Properties”](#properties) ### bold? [Section titled “bold?”](#bold) > `readonly` `optional` **bold?**: `boolean` Defined in: [src/core/document-model/types.ts:445](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L445) *** ### italic? [Section titled “italic?”](#italic) > `readonly` `optional` **italic?**: `boolean` Defined in: [src/core/document-model/types.ts:444](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L444) *** ### nor? [Section titled “nor?”](#nor) > `readonly` `optional` **nor?**: `boolean` Defined in: [src/core/document-model/types.ts:446](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L446) *** ### text [Section titled “text”](#text) > `readonly` **text**: `string` Defined in: [src/core/document-model/types.ts:443](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L443) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"run"` Defined in: [src/core/document-model/types.ts:442](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L442) # MathScript Defined in: [src/core/document-model/types.ts:458](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L458) `m:sSup` / `m:sSub` / `m:sSubSup` / `m:sPre` (pre-scripts). ## Properties [Section titled “Properties”](#properties) ### base [Section titled “base”](#base) > `readonly` **base**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:460](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L460) *** ### pre? [Section titled “pre?”](#pre) > `readonly` `optional` **pre?**: `boolean` Defined in: [src/core/document-model/types.ts:463](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L463) *** ### sub? [Section titled “sub?”](#sub) > `readonly` `optional` **sub?**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:461](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L461) *** ### sup? [Section titled “sup?”](#sup) > `readonly` `optional` **sup?**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:462](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L462) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"script"` Defined in: [src/core/document-model/types.ts:459](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L459) # Numbering Defined in: [src/core/document-model/types.ts:825](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L825) The parsed `word/numbering.xml`: abstract definitions + their instances. ## Properties [Section titled “Properties”](#properties) ### abstractNums [Section titled “abstractNums”](#abstractnums) > `readonly` **abstractNums**: `ReadonlyMap`<`string`, [`AbstractNumbering`](/api/core/document-model/interfaces/abstractnumbering/)> Defined in: [src/core/document-model/types.ts:826](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L826) *** ### numInstances [Section titled “numInstances”](#numinstances) > `readonly` **numInstances**: `ReadonlyMap`<`string`, [`NumberingInstance`](/api/core/document-model/interfaces/numberinginstance/)> Defined in: [src/core/document-model/types.ts:827](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L827) # NumberingInstance Defined in: [src/core/document-model/types.ts:807](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L807) §17.9.18 `w:num` — a concrete list instance bound to an [AbstractNumbering](/api/core/document-model/interfaces/abstractnumbering/). ## Properties [Section titled “Properties”](#properties) ### abstractNumId [Section titled “abstractNumId”](#abstractnumid) > `readonly` **abstractNumId**: `string` Defined in: [src/core/document-model/types.ts:809](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L809) *** ### levelOverrides? [Section titled “levelOverrides?”](#leveloverrides) > `readonly` `optional` **levelOverrides?**: `ReadonlyMap`<`number`, [`NumberingLevel`](/api/core/document-model/interfaces/numberinglevel/)> Defined in: [src/core/document-model/types.ts:821](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L821) §17.9.27 `w:lvlOverride/w:lvl` — a level this instance REDEFINES whole, shadowing the abstract definition’s. NumberingWOverrides.docx rewrites all nine levels of one instance this way. *** ### numId [Section titled “numId”](#numid) > `readonly` **numId**: `string` Defined in: [src/core/document-model/types.ts:808](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L808) *** ### startOverrides? [Section titled “startOverrides?”](#startoverrides) > `readonly` `optional` **startOverrides?**: `ReadonlyMap`<`number`, `number`> Defined in: [src/core/document-model/types.ts:815](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L815) §17.9.27/§17.9.28 `w:lvlOverride/w:startOverride` — where THIS instance starts a level, by `w:ilvl`, whatever the abstract definition says. Absent when the instance takes the abstract starts unchanged. # NumberingLevel Defined in: [src/core/document-model/types.ts:761](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L761) One level of an abstract numbering definition (`w:lvl`): its format and chrome. ## Properties [Section titled “Properties”](#properties) ### format [Section titled “format”](#format) > `readonly` **format**: [`NumberingFormat`](/api/core/document-model/type-aliases/numberingformat/) Defined in: [src/core/document-model/types.ts:764](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L764) *** ### ilvl [Section titled “ilvl”](#ilvl) > `readonly` **ilvl**: `number` Defined in: [src/core/document-model/types.ts:762](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L762) *** ### isLegal? [Section titled “isLegal?”](#islegal) > `readonly` `optional` **isLegal?**: `boolean` Defined in: [src/core/document-model/types.ts:778](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L778) §17.9.10 `w:isLgl` — every level of this level’s marker is printed in DECIMAL, whatever format the level it names asks for. Word calls it legal numbering: “Sect I.01” becomes “Sect 1.01”. *** ### lvlText [Section titled “lvlText”](#lvltext) > `readonly` **lvlText**: `string` Defined in: [src/core/document-model/types.ts:766](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L766) §17.9.11 `w:lvlText` — the marker template (e.g. `"%1."`). *** ### paragraphProperties [Section titled “paragraphProperties”](#paragraphproperties) > `readonly` **paragraphProperties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:785](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L785) *** ### picBullet? [Section titled “picBullet?”](#picbullet) > `readonly` `optional` **picBullet?**: [`PictureBullet`](/api/core/document-model/interfaces/picturebullet/) Defined in: [src/core/document-model/types.ts:772](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L772) §17.9.9 `w:lvlPicBulletId` → §17.9.21 `w:numPicBullet` — the level’s bullet is a PICTURE, not a character, and the `w:lvlText` is only the fallback glyph Word writes beside it. *** ### runProperties [Section titled “runProperties”](#runproperties) > `readonly` **runProperties**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:786](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L786) *** ### start [Section titled “start”](#start) > `readonly` **start**: `number` Defined in: [src/core/document-model/types.ts:763](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L763) *** ### suffix? [Section titled “suffix?”](#suffix) > `readonly` `optional` **suffix?**: [`NumberingSuffix`](/api/core/document-model/type-aliases/numberingsuffix/) Defined in: [src/core/document-model/types.ts:784](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L784) §17.9.29 `w:suff` — what separates the marker from the paragraph’s text: a tab (the default, and what an absent value means), one space, or nothing at all. # NumberingReference Defined in: [src/core/document-model/types.ts:755](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L755) A paragraph’s list reference (`w:numPr`): the numbering instance id + level. ## Properties [Section titled “Properties”](#properties) ### ilvl [Section titled “ilvl”](#ilvl) > `readonly` **ilvl**: `number` Defined in: [src/core/document-model/types.ts:757](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L757) *** ### numId [Section titled “numId”](#numid) > `readonly` **numId**: `string` Defined in: [src/core/document-model/types.ts:756](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L756) # OutlineEntry Defined in: [src/core/document-model/types.ts:662](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L662) An entry in a document’s navigation outline that a paragraph stands for (see [Paragraph.outlineEntries](/api/core/document-model/interfaces/paragraph/#outlineentries)). ## Properties [Section titled “Properties”](#properties) ### level [Section titled “level”](#level) > `readonly` **level**: `number` Defined in: [src/core/document-model/types.ts:666](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L666) Its level, 1–9: a deeper entry hangs under the nearest shallower one before it. *** ### open? [Section titled “open?”](#open) > `readonly` `optional` **open?**: `boolean` Defined in: [src/core/document-model/types.ts:668](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L668) Whether the entry stands open, its children shown. Absent ⇒ open. *** ### order? [Section titled “order?”](#order) > `readonly` `optional` **order?**: `number` Defined in: [src/core/document-model/types.ts:681](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L681) The entry’s place in the outline the source states, where that order is not the order of the pages: a PDF’s bookmarks are listed as its author listed them, wherever on the pages each one jumps. Absent ⇒ where the paragraph stands. *** ### title [Section titled “title”](#title) > `readonly` **title**: `string` Defined in: [src/core/document-model/types.ts:664](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L664) The text the entry shows. *** ### topPt? [Section titled “topPt?”](#toppt) > `readonly` `optional` **topPt?**: `number` Defined in: [src/core/document-model/types.ts:674](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L674) The height on its page the entry jumps to, y-up in points, where the source names one and the page stands as the source drew it (a PDF read as a page). Absent ⇒ the top of the paragraph’s first line. *** ### uri? [Section titled “uri?”](#uri) > `readonly` `optional` **uri?**: `string` Defined in: [src/core/document-model/types.ts:689](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L689) The URI the entry opens instead of a place in the document: a source PDF’s bookmark whose action is a URI action (ISO 32000-1 §12.6.4.7). Such an entry jumps to no page — the paragraph it rides gives it only its place among the others (with `order`), and `topPt` means nothing for it. Only a PDF’s outline can hold one; the other writers leave it out. # PageMargins Defined in: [src/core/document-model/types.ts:2154](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2154) §17.6.11 `w:pgMar` — the section’s page margins (and header/footer offsets). ## Properties [Section titled “Properties”](#properties) ### bottom [Section titled “bottom”](#bottom) > `readonly` **bottom**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2157](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2157) *** ### footer? [Section titled “footer?”](#footer) > `readonly` `optional` **footer?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2160](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2160) *** ### gutter? [Section titled “gutter?”](#gutter) > `readonly` `optional` **gutter?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2165](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2165) §17.6.11 `w:gutter` — the binding space, added to the left margin (or to the top, when `w:settings/w:gutterAtTop` says so). *** ### header? [Section titled “header?”](#header) > `readonly` `optional` **header?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2159](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2159) *** ### left [Section titled “left”](#left) > `readonly` **left**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2158](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2158) *** ### right [Section titled “right”](#right) > `readonly` **right**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2156](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2156) *** ### top [Section titled “top”](#top) > `readonly` **top**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2155](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2155) # PageSize Defined in: [src/core/document-model/types.ts:2147](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2147) ECMA-376 Part 1 §17.6.13 `w:pgSz` — the section’s page dimensions + orientation. ## Properties [Section titled “Properties”](#properties) ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2149](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2149) *** ### orientation? [Section titled “orientation?”](#orientation) > `readonly` `optional` **orientation?**: `"portrait"` | `"landscape"` Defined in: [src/core/document-model/types.ts:2150](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2150) *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2148](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2148) # Paragraph Defined in: [src/core/document-model/types.ts:635](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L635) ECMA-376 Part 1 §17.3.1 — a paragraph: its [ParagraphProperties](/api/core/document-model/interfaces/paragraphproperties/) and runs. ## Properties [Section titled “Properties”](#properties) ### bookmarks? [Section titled “bookmarks?”](#bookmarks) > `readonly` `optional` **bookmarks?**: readonly `string`\[] Defined in: [src/core/document-model/types.ts:644](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L644) §17.13.6.2 `w:bookmarkStart` — names of bookmarks opening in (or immediately before) this paragraph. Paragraph-level v1: the destination is the paragraph’s first line. *** ### native? [Section titled “native?”](#native) > `readonly` `optional` **native?**: [`NativeBag`](/api/index/interfaces/nativebag/) Defined in: [src/core/document-model/types.ts:636](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L636) *** ### outlineEntries? [Section titled “outlineEntries?”](#outlineentries) > `readonly` `optional` **outlineEntries?**: readonly [`OutlineEntry`](/api/core/document-model/interfaces/outlineentry/)\[] Defined in: [src/core/document-model/types.ts:655](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L655) The entries this paragraph opens in the document’s navigation outline — a PDF’s bookmarks (ISO 32000-1 §12.3.3) — when the document STATES its outline rather than leaving it to its headings: the page that starts a worksheet, under the sheet’s name; the page that starts a slide, under its title; the place a source PDF’s own bookmark jumps to. A document that states any entry has those entries for its outline, and its headings open none — a PDF’s own bookmarks and the headings read out of its pages would otherwise each list the chapters once. *** ### properties [Section titled “properties”](#properties-1) > `readonly` **properties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:637](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L637) *** ### runs [Section titled “runs”](#runs) > `readonly` **runs**: readonly [`Run`](/api/core/document-model/interfaces/run/)\[] Defined in: [src/core/document-model/types.ts:638](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L638) # ParagraphProperties Defined in: [src/core/document-model/types.ts:222](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L222) ## Properties [Section titled “Properties”](#properties) ### alignment? [Section titled “alignment?”](#alignment) > `readonly` `optional` **alignment?**: [`Alignment`](/api/core/document-model/type-aliases/alignment/) Defined in: [src/core/document-model/types.ts:260](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L260) *** ### bidi? [Section titled “bidi?”](#bidi) > `readonly` `optional` **bidi?**: `boolean` Defined in: [src/core/document-model/types.ts:333](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L333) ECMA-376 §17.3.1.6 — `w:bidi`. Sets the paragraph’s base direction to RTL, so the BiDi paragraph embedding level is 1 and default alignment is right. *** ### borders? [Section titled “borders?”](#borders) > `readonly` `optional` **borders?**: [`CellBorders`](/api/core/document-model/interfaces/cellborders/) Defined in: [src/core/document-model/types.ts:278](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L278) §17.3.1.24 `w:pBdr` — rules drawn around the paragraph. `w:space` is the gap each keeps from the text, carried on the [Border](/api/core/document-model/interfaces/border/) as `spacePt`. *** ### contextualSpacing? [Section titled “contextualSpacing?”](#contextualspacing) > `readonly` `optional` **contextualSpacing?**: `boolean` Defined in: [src/core/document-model/types.ts:271](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L271) ECMA-376 Part 1 §17.3.1.9 — `w:contextualSpacing`. The space before and after is dropped where the neighbour is a paragraph of the SAME style: a list is written this way, so its items sit together while the list as a whole keeps its space from the text around it. *** ### frame? [Section titled “frame?”](#frame) > `readonly` `optional` **frame?**: [`FrameProperties`](/api/core/document-model/interfaces/frameproperties/) Defined in: [src/core/document-model/types.ts:247](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L247) §17.3.1.11 — the paragraph floats as a text frame. *** ### indentFirstLine? [Section titled “indentFirstLine?”](#indentfirstline) > `readonly` `optional` **indentFirstLine?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:283](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L283) *** ### indentLeft? [Section titled “indentLeft?”](#indentleft) > `readonly` `optional` **indentLeft?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:281](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L281) *** ### indentRight? [Section titled “indentRight?”](#indentright) > `readonly` `optional` **indentRight?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:282](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L282) *** ### inheritedRun? [Section titled “inheritedRun?”](#inheritedrun) > `readonly` `optional` **inheritedRun?**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:239](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L239) §17.7.2 — a run layer that ranks BELOW the paragraph’s own style and below the character style a run names: the `w:rPr` of the table style the cell is formatted by, or the `a:fontRef` colour a gallery-drawn shape lends the text inside it (§20.1.4.2.14). Carried on the paragraph because every run of it — and its MARK — reads the same layer. *** ### keepLines? [Section titled “keepLines?”](#keeplines) > `readonly` `optional` **keepLines?**: `boolean` Defined in: [src/core/document-model/types.ts:321](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L321) ECMA-376 Part 1 §17.3.1.15 — `w:keepLines`. The paragraph’s lines stand on one page, wherever one page holds them all. *** ### keepNext? [Section titled “keepNext?”](#keepnext) > `readonly` `optional` **keepNext?**: `boolean` Defined in: [src/core/document-model/types.ts:316](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L316) ECMA-376 Part 1 §17.3.1.14 — `w:keepNext`. The paragraph stands on the same page as the start of the one after it: a heading is not left at the foot of a page with its text on the next. *** ### numbering? [Section titled “numbering?”](#numbering) > `readonly` `optional` **numbering?**: [`NumberingReference`](/api/core/document-model/interfaces/numberingreference/) Defined in: [src/core/document-model/types.ts:298](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L298) *** ### numberingLevel? [Section titled “numberingLevel?”](#numberinglevel) > `readonly` `optional` **numberingLevel?**: `number` Defined in: [src/core/document-model/types.ts:305](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L305) §17.9.4 — a `w:numPr` that names a LEVEL and no `w:numId`: the instance is whatever the style this one is based on refers to. Word’s own Heading 2 says exactly this, and dropped it numbered num-parent-style.docx’s headings 1, 2, 3, 4 where its own text says they should read 1, 1.1, 2, 2.1. *** ### outlineLevel? [Section titled “outlineLevel?”](#outlinelevel) > `readonly` `optional` **outlineLevel?**: `number` Defined in: [src/core/document-model/types.ts:338](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L338) ECMA-376 §17.3.1.20 — `w:outlineLvl`. Outline level 0–8 maps to Heading 1–9; 9 (or absent) is body text. Drives tagged-PDF heading structure (H1–H6). *** ### pageBreakBefore? [Section titled “pageBreakBefore?”](#pagebreakbefore) > `readonly` `optional` **pageBreakBefore?**: `boolean` Defined in: [src/core/document-model/types.ts:310](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L310) ECMA-376 Part 1 §17.3.1.21 — `w:pageBreakBefore`. When true, the paragraph starts on a fresh page even if there is room on the current one. *** ### runProperties? [Section titled “runProperties?”](#runproperties) > `readonly` `optional` **runProperties?**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:285](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L285) The implicit default run properties for runs in this paragraph (`w:pPr/w:rPr`). *** ### sectionBreak? [Section titled “sectionBreak?”](#sectionbreak) > `readonly` `optional` **sectionBreak?**: `boolean` Defined in: [src/core/document-model/types.ts:245](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L245) §17.6.17 — the paragraph’s mark carries a `w:sectPr`: it is the last paragraph of its section, and the mark IS the section break. One with no content of its own therefore prints nothing, not an empty line. *** ### shading? [Section titled “shading?”](#shading) > `readonly` `optional` **shading?**: [`CellShading`](/api/core/document-model/interfaces/cellshading/) Defined in: [src/core/document-model/types.ts:280](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L280) §17.3.1.31 `w:pPr/w:shd` — the paragraph’s own background fill. *** ### snapToGrid? [Section titled “snapToGrid?”](#snaptogrid) > `readonly` `optional` **snapToGrid?**: `boolean` Defined in: [src/core/document-model/types.ts:259](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L259) §17.3.1.32 `w:snapToGrid` — whether the paragraph’s lines stand on the section’s document grid (§17.6.5). Absent ⇒ they do; Word’s header and footer styles are what usually says otherwise. *** ### spacingAfter? [Section titled “spacingAfter?”](#spacingafter) > `readonly` `optional` **spacingAfter?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:262](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L262) *** ### spacingAfterAuto? [Section titled “spacingAfterAuto?”](#spacingafterauto) > `readonly` `optional` **spacingAfterAuto?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:297](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L297) *** ### spacingBefore? [Section titled “spacingBefore?”](#spacingbefore) > `readonly` `optional` **spacingBefore?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:261](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L261) *** ### spacingBeforeAuto? [Section titled “spacingBeforeAuto?”](#spacingbeforeauto) > `readonly` `optional` **spacingBeforeAuto?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:296](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L296) §17.3.1.3/§17.3.1.1 — the gap `w:beforeAutospacing`/`w:afterAutospacing` asks the consumer for, already resolved to a length by the reader (it depends on the document’s compatibility mode). Present only when the autospacing flag is ON, and it beats the `w:before`/`w:after` beside it. A separate property because style inheritance is per ATTRIBUTE: a style based on one that says `beforeAutospacing` inherits the flag even when it states a `w:before` of its own — which is how tdf104354\_firstParaInSection gets its 75pt before, and taking that literally spread one page over four. *** ### spacingLine? [Section titled “spacingLine?”](#spacingline) > `readonly` `optional` **spacingLine?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:263](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L263) *** ### spacingLineRule? [Section titled “spacingLineRule?”](#spacinglinerule) > `readonly` `optional` **spacingLineRule?**: `"auto"` | `"exact"` | `"atLeast"` Defined in: [src/core/document-model/types.ts:264](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L264) *** ### styleId? [Section titled “styleId?”](#styleid) > `readonly` `optional` **styleId?**: `string` Defined in: [src/core/document-model/types.ts:223](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L223) *** ### tableStyle? [Section titled “tableStyle?”](#tablestyle) > `readonly` `optional` **tableStyle?**: `ParagraphProperties` Defined in: [src/core/document-model/types.ts:231](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L231) §17.7.2 — the `w:pPr` of the TABLE STYLE the paragraph’s cell is formatted by. It is not the paragraph’s own formatting: the cascade puts it under the paragraph’s style (docDefaults < table style < numbering < paragraph style < character style < direct), so it is carried apart from the direct properties rather than merged into them. *** ### tabs? [Section titled “tabs?”](#tabs) > `readonly` `optional` **tabs?**: readonly [`TabStop`](/api/core/document-model/interfaces/tabstop/)\[] Defined in: [src/core/document-model/types.ts:273](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L273) ECMA-376 Part 1 §17.3.1.37 — the paragraph’s own `w:tabs` stops. *** ### textDirection? [Section titled “textDirection?”](#textdirection) > `readonly` `optional` **textDirection?**: `"btLr"` | `"tbRl"` Defined in: [src/core/document-model/types.ts:253](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L253) §17.3.1.41 `w:textDirection` — which way the paragraph’s lines run. `btLr` reads bottom-to-top, `tbRl` top-to-bottom; `lrTb` is the default and is not recorded. *** ### widowControl? [Section titled “widowControl?”](#widowcontrol) > `readonly` `optional` **widowControl?**: `boolean` Defined in: [src/core/document-model/types.ts:328](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L328) ECMA-376 Part 1 §17.3.1.44 — `w:widowControl`. When on, a page or column break that would leave the paragraph’s first line alone at the foot of one page, or its last line alone at the head of the next, is moved so that neither stands alone. Word applies it wherever nothing says otherwise. # PictureBullet Defined in: [src/core/document-model/types.ts:793](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L793) §17.9.21 `w:numPicBullet` — the image a level uses in place of a bullet. ## Properties [Section titled “Properties”](#properties) ### heightPt [Section titled “heightPt”](#heightpt) > `readonly` **heightPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:797](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L797) *** ### resource [Section titled “resource”](#resource) > `readonly` **resource**: [`ResourceId`](/api/index/type-aliases/resourceid/) Defined in: [src/core/document-model/types.ts:795](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L795) Content-addressed bytes. A bullet whose picture does not resolve is not one. *** ### widthPt [Section titled “widthPt”](#widthpt) > `readonly` **widthPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:796](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L796) # PictureOutline Defined in: [src/core/document-model/types.ts:351](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L351) §20.1.2.2.24 `a:ln` on a `pic:spPr` (VML: `@stroked`/`v:stroke`) — the frame a picture is drawn with. Word’s “Picture Border”: a rule around the picture box, not part of the image itself. ## Properties [Section titled “Properties”](#properties) ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:352](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L352) *** ### widthPt [Section titled “widthPt”](#widthpt) > `readonly` **widthPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:353](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L353) # RelativeSize Defined in: [src/core/document-model/types.ts:1571](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1571) `wp14:sizeRelH` / `wp14:sizeRelV` — the drawing’s size as a PERCENTAGE of the page or the margins rather than the extent beside it. Word 2010 writes it in the `wp14` namespace, with the extent as the fallback for readers that do not know it. ## Properties [Section titled “Properties”](#properties) ### heightFrom? [Section titled “heightFrom?”](#heightfrom) > `readonly` `optional` **heightFrom?**: `"page"` | `"margin"` | `"topMargin"` | `"bottomMargin"` Defined in: [src/core/document-model/types.ts:1581](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1581) §20.4.3.7 ST\_SizeRelFromV — the vertical twin. *** ### heightPct? [Section titled “heightPct?”](#heightpct) > `readonly` `optional` **heightPct?**: `number` Defined in: [src/core/document-model/types.ts:1579](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1579) *** ### widthFrom? [Section titled “widthFrom?”](#widthfrom) > `readonly` `optional` **widthFrom?**: `"page"` | `"margin"` | `"leftMargin"` | `"rightMargin"` Defined in: [src/core/document-model/types.ts:1578](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1578) §20.4.3.6 ST\_SizeRelFromH — what the percentage is OF. `margin` is the text area; the rest are the bands around it, and a drawing sized against one is a fraction of that band alone (tdf123324 asks for 150% of the top margin). *** ### widthPct? [Section titled “widthPct?”](#widthpct) > `readonly` `optional` **widthPct?**: `number` Defined in: [src/core/document-model/types.ts:1572](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1572) # RowConditionalFormat Defined in: [src/core/document-model/types.ts:1206](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1206) §17.4.7 — the row-level conditional-format flags a `w:cnfStyle` declares. ## Properties [Section titled “Properties”](#properties) ### firstRow? [Section titled “firstRow?”](#firstrow) > `readonly` `optional` **firstRow?**: `boolean` Defined in: [src/core/document-model/types.ts:1207](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1207) *** ### lastRow? [Section titled “lastRow?”](#lastrow) > `readonly` `optional` **lastRow?**: `boolean` Defined in: [src/core/document-model/types.ts:1208](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1208) # RowProperties Defined in: [src/core/document-model/types.ts:1175](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1175) §17.4.81 `w:trPr` — a table row’s properties: height, split/header flags. ## Properties [Section titled “Properties”](#properties) ### cantSplit? [Section titled “cantSplit?”](#cantsplit) > `readonly` `optional` **cantSplit?**: `boolean` Defined in: [src/core/document-model/types.ts:1178](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1178) *** ### conditional? [Section titled “conditional?”](#conditional) > `readonly` `optional` **conditional?**: [`RowConditionalFormat`](/api/core/document-model/interfaces/rowconditionalformat/) Defined in: [src/core/document-model/types.ts:1195](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1195) §17.4.7 `w:cnfStyle` — the conditional formats of the table style this row takes, whatever its position says. Word’s calendar templates give a SECOND header row `w:firstRow="1"` so it is painted like the first. *** ### gridBefore? [Section titled “gridBefore?”](#gridbefore) > `readonly` `optional` **gridBefore?**: `number` Defined in: [src/core/document-model/types.ts:1184](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1184) §17.4.14 `w:gridBefore` — how many grid columns the row leaves empty before its first cell, which is how a row starts part-way across a table. *** ### height? [Section titled “height?”](#height) > `readonly` `optional` **height?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1176](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1176) *** ### heightRule? [Section titled “heightRule?”](#heightrule) > `readonly` `optional` **heightRule?**: `"auto"` | `"exact"` | `"atLeast"` Defined in: [src/core/document-model/types.ts:1177](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1177) *** ### isHeader? [Section titled “isHeader?”](#isheader) > `readonly` `optional` **isHeader?**: `boolean` Defined in: [src/core/document-model/types.ts:1179](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1179) *** ### pageBreakBefore? [Section titled “pageBreakBefore?”](#pagebreakbefore) > `readonly` `optional` **pageBreakBefore?**: `boolean` Defined in: [src/core/document-model/types.ts:1189](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1189) Force this row to begin a new page (xlsx manual ``). The renderer flushes the page before the row, then repeats any leading header rows. *** ### sheetTopPt? [Section titled “sheetTopPt?”](#sheettoppt) > `readonly` `optional` **sheetTopPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1202](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1202) Where a spreadsheet row’s top stands on its sheet, measured down from the sheet’s first row in the frame its table’s drawings are placed in (see [TableOverlay](/api/core/document-model/interfaces/tableoverlay/)). A row the sheet does not have — the printed column letters — carries none. # Run Defined in: [src/core/document-model/types.ts:549](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L549) ECMA-376 Part 1 §17.3.2 — a run: a span of `text` (or an inline image / math object) sharing one set of [RunProperties](/api/core/document-model/interfaces/runproperties/), plus the reference markers (hyperlink, note, comment, page-number field) the layout acts on. ## Properties [Section titled “Properties”](#properties) ### anchor? [Section titled “anchor?”](#anchor) > `readonly` `optional` **anchor?**: `string` Defined in: [src/core/document-model/types.ts:573](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L573) §17.16.22 `w:hyperlink @w:anchor` — internal link target: a bookmark name in this document (never a URL — bypasses the scheme allowlist). *** ### blankWidthOf? [Section titled “blankWidthOf?”](#blankwidthof) > `readonly` `optional` **blankWidthOf?**: `string` Defined in: [src/core/document-model/types.ts:611](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L611) §18.8.31 — the run is a blank a spreadsheet number format leaves: what `?` keeps for a digit it has no use for, what `_x` keeps for x, a space the format writes. It is as wide as this text in the run’s font, nothing is drawn in it, and a line keeps it at either end, where a space is dropped. `text` is what a reader of plain text takes it for, a space. *** ### columnBreak? [Section titled “columnBreak?”](#columnbreak) > `readonly` `optional` **columnBreak?**: `boolean` Defined in: [src/core/document-model/types.ts:631](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L631) §17.3.3.1 `w:br w:type="column"` — the text after this run continues in the NEXT column of the section (or, past the last, on the next page). *** ### commentRangeRefs? [Section titled “commentRangeRefs?”](#commentrangerefs) > `readonly` `optional` **commentRangeRefs?**: readonly `string`\[] Defined in: [src/core/document-model/types.ts:586](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L586) §17.13.4.3/4 `w:commentRangeStart`/`End` — the ids of the comment ranges this run falls inside (a run may be covered by several). Renderers highlight the covered span; the marker run (`commentRef`) sits at the range’s end. *** ### commentRef? [Section titled “commentRef?”](#commentref) > `readonly` `optional` **commentRef?**: `string` Defined in: [src/core/document-model/types.ts:580](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L580) §17.13.4.1 `w:commentReference` — the run anchors a review comment by id; the comment’s content/author live in `FlowDoc.comments`. *** ### endnoteRef? [Section titled “endnoteRef?”](#endnoteref) > `readonly` `optional` **endnoteRef?**: `string` Defined in: [src/core/document-model/types.ts:575](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L575) *** ### field? [Section titled “field?”](#field) > `readonly` `optional` **field?**: `"PAGE"` | `"NUMPAGES"` Defined in: [src/core/document-model/types.ts:565](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L565) §17.16.5.35 PAGE / §17.16.5.33 NUMPAGES — the run is a page-number field; `text` holds the source’s cached result. Header/footer rendering substitutes the real number per page; body rendering keeps the cache. *** ### fillChar? [Section titled “fillChar?”](#fillchar) > `readonly` `optional` **fillChar?**: `string` Defined in: [src/core/document-model/types.ts:617](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L617) §18.8.31 `*x` — the run is x repeated across whatever room its spreadsheet cell has left, which only a medium that knows the cell’s width can do. `text` is empty, so every other medium writes nothing for it. *** ### footnoteRef? [Section titled “footnoteRef?”](#footnoteref) > `readonly` `optional` **footnoteRef?**: `string` Defined in: [src/core/document-model/types.ts:574](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L574) *** ### href? [Section titled “href?”](#href) > `readonly` `optional` **href?**: `string` Defined in: [src/core/document-model/types.ts:559](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L559) ECMA-376 §17.16.22 — the run sits inside a `w:hyperlink` whose `r:id` resolved to an external target. The URL is stored as written in the rels part; writers MUST pass it through the scheme allowlist (`core/links`) before emitting anything clickable. *** ### inlineImage? [Section titled “inlineImage?”](#inlineimage) > `readonly` `optional` **inlineImage?**: [`InlineImage`](/api/core/document-model/interfaces/inlineimage/) Defined in: [src/core/document-model/types.ts:619](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L619) When set, the run renders this image inline in the line; `text` is ignored. *** ### listMarker? [Section titled “listMarker?”](#listmarker) > `readonly` `optional` **listMarker?**: `true` Defined in: [src/core/document-model/types.ts:596](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L596) The run is a list-item marker materialized by `applyNumbering` (`"1."`, `"•"`). Tagged PDF wraps its glyphs in a Lbl structure element (§14.8.4.3.3). *** ### listMarkerSpace? [Section titled “listMarkerSpace?”](#listmarkerspace) > `readonly` `optional` **listMarkerSpace?**: `true` Defined in: [src/core/document-model/types.ts:603](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L603) §17.9.29 `w:suff="space"` — the run (a `listMarker` one, its text a single space) is the space a list level puts after its marker. Word sets it at a fixed width for the marker’s size, whatever the marker’s face, and never stretches it in a justified line. *** ### math? [Section titled “math?”](#math) > `readonly` `optional` **math?**: [`MathNode`](/api/core/document-model/type-aliases/mathnode/) Defined in: [src/core/document-model/types.ts:621](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L621) When set, the run is an inline OfficeMath object; `text` is ignored. *** ### native? [Section titled “native?”](#native) > `readonly` `optional` **native?**: [`NativeBag`](/api/index/interfaces/nativebag/) Defined in: [src/core/document-model/types.ts:550](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L550) *** ### noteNumber? [Section titled “noteNumber?”](#notenumber) > `readonly` `optional` **noteNumber?**: `true` Defined in: [src/core/document-model/types.ts:591](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L591) §17.11.13 `w:footnoteRef` / §17.11.5 `w:endnoteRef` — inside note content: render the OWNING note’s number here. *** ### pageBreak? [Section titled “pageBreak?”](#pagebreak) > `readonly` `optional` **pageBreak?**: `boolean` Defined in: [src/core/document-model/types.ts:626](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L626) ECMA-376 Part 1 §17.3.3.1 — `w:br w:type="page"`. A forced page break: the paragraph’s following content starts on a new page. *** ### properties [Section titled “properties”](#properties-1) > `readonly` **properties**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:552](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L552) *** ### text [Section titled “text”](#text) > `readonly` **text**: `string` Defined in: [src/core/document-model/types.ts:551](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L551) # RunProperties Defined in: [src/core/document-model/types.ts:74](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L74) ECMA-376 Part 1 §17.3.2 — Run Properties (`rPr`). All fields optional so the cascade can inherit them (undefined = “inherit from parent in the style chain”). Boolean toggle properties follow §17.17.4: an absent `` means “inherit”; a present `` with no val (or val=true/1/on) means true; val=false/0/off means explicit false. ## Properties [Section titled “Properties”](#properties) ### bold? [Section titled “bold?”](#bold) > `readonly` `optional` **bold?**: `boolean` Defined in: [src/core/document-model/types.ts:76](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L76) *** ### caps? [Section titled “caps?”](#caps) > `readonly` `optional` **caps?**: `boolean` Defined in: [src/core/document-model/types.ts:83](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L83) §17.3.2.5 `w:caps` — the run is DISPLAYED in capitals, whatever it stores. *** ### colorAuto? [Section titled “colorAuto?”](#colorauto) > `readonly` `optional` **colorAuto?**: `boolean` Defined in: [src/core/document-model/types.ts:97](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L97) §17.3.2.6 — the colour is the AUTOMATIC one (`w:color w:val="auto"`, with `colorHex` 000000; on a resolved run, also a run no layer gave a colour). Word draws it black, or white over a dark background (see `resolveAutoTextColors`); a stated 000000 stays black whatever is behind. *** ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:90](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L90) *** ### eastAsianLang? [Section titled “eastAsianLang?”](#eastasianlang) > `readonly` `optional` **eastAsianLang?**: `string` Defined in: [src/core/document-model/types.ts:118](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L118) The language the run’s EAST ASIAN text is written in, as a language tag (`"zh-CN"`, `"ja-JP"`): §17.3.2.20 `w:lang @w:eastAsia`, DrawingML’s §21.1.2.3.9 `a:rPr @lang` (or `@altLang`) where it names one, a spreadsheet font’s §18.4.1 `charset`. Unified Han is one character in Chinese, Japanese and Korean and a different drawing in each; this says which one the run is in. *** ### fontFamily? [Section titled “fontFamily?”](#fontfamily) > `readonly` `optional` **fontFamily?**: [`FontFamilyMap`](/api/core/document-model/interfaces/fontfamilymap/) Defined in: [src/core/document-model/types.ts:98](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L98) *** ### fontSizePt? [Section titled “fontSizePt?”](#fontsizept) > `readonly` `optional` **fontSizePt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:89](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L89) *** ### highlightColorHex? [Section titled “highlightColorHex?”](#highlightcolorhex) > `readonly` `optional` **highlightColorHex?**: `string` Defined in: [src/core/document-model/types.ts:129](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L129) §17.3.2.15 `w:highlight` — the marker pen’s colour behind the run. Where the run is shaded as well the highlight is what shows; but an automatic colour is judged by the shading alone (see `resolveAutoTextColors`). *** ### italic? [Section titled “italic?”](#italic) > `readonly` `optional` **italic?**: `boolean` Defined in: [src/core/document-model/types.ts:77](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L77) *** ### kerningMinPt? [Section titled “kerningMinPt?”](#kerningminpt) > `readonly` `optional` **kerningMinPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:144](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L144) §17.3.2.19 `w:kern` — the run’s glyph pairs are KERNED, at this size and above (0 turns kerning off). Word kerns nothing a run does not ask for. *** ### lang? [Section titled “lang?”](#lang) > `readonly` `optional` **lang?**: `string` Defined in: [src/core/document-model/types.ts:109](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L109) ECMA-376 §17.3.2.20 — `w:lang @w:val` (e.g. `"en-US"`, `"ru-RU"`). Used for the tagged-PDF per-element `/Lang`; does not affect visual layout. *** ### letterSpacingPt? [Section titled “letterSpacingPt?”](#letterspacingpt) > `readonly` `optional` **letterSpacingPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:134](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L134) §17.3.2.35 `w:rPr/w:spacing` — extra space between the run’s characters (negative tightens). Word states it in twentieths of a point. *** ### ligatures? [Section titled “ligatures?”](#ligatures) > `readonly` `optional` **ligatures?**: [`Ligatures`](/api/core/document-model/type-aliases/ligatures/) Defined in: [src/core/document-model/types.ts:149](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L149) \[MS-DOCX] `w14:ligatures` — the face’s ligatures the run is set with. Word forms none at all in a document it opens in compatibility mode. *** ### rtl? [Section titled “rtl?”](#rtl) > `readonly` `optional` **rtl?**: `boolean` Defined in: [src/core/document-model/types.ts:104](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L104) ECMA-376 §17.3.2.30 — `w:rtl`. Marks the run as right-to-left, which seeds the BiDi algorithm with an R/AL bias even for neutral characters. *** ### shadingColorHex? [Section titled “shadingColorHex?”](#shadingcolorhex) > `readonly` `optional` **shadingColorHex?**: `string` Defined in: [src/core/document-model/types.ts:123](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L123) §17.3.2.32 `w:rPr/w:shd` — the background painted behind the run’s own glyphs, already blended from the pattern, its colour and the fill. *** ### smallCaps? [Section titled “smallCaps?”](#smallcaps) > `readonly` `optional` **smallCaps?**: `boolean` Defined in: [src/core/document-model/types.ts:88](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L88) §17.3.2.33 `w:smallCaps` — displayed in capitals, with the letters that were lower case set smaller. *** ### strike? [Section titled “strike?”](#strike) > `readonly` `optional` **strike?**: `boolean` Defined in: [src/core/document-model/types.ts:81](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L81) *** ### styleId? [Section titled “styleId?”](#styleid) > `readonly` `optional` **styleId?**: `string` Defined in: [src/core/document-model/types.ts:75](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L75) *** ### textOutline? [Section titled “textOutline?”](#textoutline) > `readonly` `optional` **textOutline?**: [`TextOutline`](/api/core/document-model/interfaces/textoutline/) Defined in: [src/core/document-model/types.ts:155](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L155) §21.1.2.3.9 `a:rPr/a:ln` — a line drawn round the glyphs themselves, which DrawingML puts on a run and ISO 32000-1 §9.3.6 calls a text rendering mode that strokes as well as fills. *** ### underline? [Section titled “underline?”](#underline) > `readonly` `optional` **underline?**: [`UnderlineStyle`](/api/core/document-model/type-aliases/underlinestyle/) Defined in: [src/core/document-model/types.ts:78](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L78) *** ### underlineColorHex? [Section titled “underlineColorHex?”](#underlinecolorhex) > `readonly` `optional` **underlineColorHex?**: `string` Defined in: [src/core/document-model/types.ts:80](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L80) §17.3.2.40 `w:u @w:color` — the underline’s own colour, when it has one. *** ### verticalAlign? [Section titled “verticalAlign?”](#verticalalign) > `readonly` `optional` **verticalAlign?**: [`VerticalAlign`](/api/core/document-model/type-aliases/verticalalign/) Defined in: [src/core/document-model/types.ts:99](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L99) *** ### widthScale? [Section titled “widthScale?”](#widthscale) > `readonly` `optional` **widthScale?**: `number` Defined in: [src/core/document-model/types.ts:139](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L139) §17.3.2.43 `w:w` — each character set at this share of its own width (1 is as the face sets it), the glyph itself narrowed or widened. # Section Defined in: [src/core/document-model/types.ts:2370](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2370) One section descriptor for a multi-section document (ECMA-376 §17.6.17). Each section’s `sectPr` lives either inside a paragraph’s `pPr` (mid-document break) or as the final child of `w:body` (final section). Records the properties and the upper-exclusive bound in `BodyElement[]` the section covers — section i applies to `body[sections[i-1].endIndex..sections[i].endIndex)`. ## Properties [Section titled “Properties”](#properties) ### endIndex [Section titled “endIndex”](#endindex) > `readonly` **endIndex**: `number` Defined in: [src/core/document-model/types.ts:2372](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2372) *** ### properties [Section titled “properties”](#properties-1) > `readonly` **properties**: [`SectionProperties`](/api/core/document-model/interfaces/sectionproperties/) Defined in: [src/core/document-model/types.ts:2371](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2371) *** ### sheet? [Section titled “sheet?”](#sheet) > `readonly` `optional` **sheet?**: `object` Defined in: [src/core/document-model/types.ts:2380](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2380) The worksheet this section IS, where a workbook was projected for a screen rather than for paper (`ProjectSheetOptions.screen`): its tab’s name. Such a section is one surface with no pages — the grid as Excel shows it — and a float in it is placed from the surface’s top-left corner, which is the corner of the first cell. #### name [Section titled “name”](#name) > `readonly` **name**: `string` # SectionColumns Defined in: [src/core/document-model/types.ts:2354](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2354) §17.6.4 — column definitions: an equal-width `count` + gutter, or explicit per-column widths/gutters (`w:col` children). ## Properties [Section titled “Properties”](#properties) ### count [Section titled “count”](#count) > `readonly` **count**: `number` Defined in: [src/core/document-model/types.ts:2355](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2355) *** ### explicit? [Section titled “explicit?”](#explicit) > `readonly` `optional` **explicit?**: readonly `object`\[] Defined in: [src/core/document-model/types.ts:2357](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2357) *** ### separator? [Section titled “separator?”](#separator) > `readonly` `optional` **separator?**: `boolean` Defined in: [src/core/document-model/types.ts:2359](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2359) §17.6.4 `w:sep` — a vertical rule drawn down the middle of every gutter. *** ### spacePt [Section titled “spacePt”](#spacept) > `readonly` **spacePt**: `number` Defined in: [src/core/document-model/types.ts:2356](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2356) # SectionProperties Defined in: [src/core/document-model/types.ts:2178](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2178) §17.6.17 `w:sectPr` — a section’s page setup, header/footer refs and columns. ## Properties [Section titled “Properties”](#properties) ### columns? [Section titled “columns?”](#columns) > `readonly` `optional` **columns?**: [`SectionColumns`](/api/core/document-model/interfaces/sectioncolumns/) Defined in: [src/core/document-model/types.ts:2217](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2217) §17.6.4 `w:cols` — multi-column section layout. *** ### evenAndOddHeaders? [Section titled “evenAndOddHeaders?”](#evenandoddheaders) > `readonly` `optional` **evenAndOddHeaders?**: `boolean` Defined in: [src/core/document-model/types.ts:2215](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2215) ECMA-376 §17.15.1.36 — `w:evenAndOddHeaders` toggle in `word/settings.xml` (document-wide, not per-section). When true even-numbered pages use the `even` header/footer references. *** ### footers [Section titled “footers”](#footers) > `readonly` **footers**: readonly [`HeaderFooterReference`](/api/core/document-model/interfaces/headerfooterreference/)\[] Defined in: [src/core/document-model/types.ts:2182](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2182) *** ### gridLinePitchPt? [Section titled “gridLinePitchPt?”](#gridlinepitchpt) > `readonly` `optional` **gridLinePitchPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:2252](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2252) §17.6.5 `w:docGrid` — the line grid a `lines`/`linesAndChars` section rules its text onto, as the pitch in points. Every line of the section’s text is as tall as a whole number of these, however tall its own font makes it. Absent ⇒ no grid (`w:type="default"`, or none stated). *** ### headers [Section titled “headers”](#headers) > `readonly` **headers**: readonly [`HeaderFooterReference`](/api/core/document-model/interfaces/headerfooterreference/)\[] Defined in: [src/core/document-model/types.ts:2181](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2181) *** ### lineNumbering? [Section titled “lineNumbering?”](#linenumbering) > `readonly` `optional` **lineNumbering?**: `object` Defined in: [src/core/document-model/types.ts:2200](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2200) §17.6.8 `w:lnNumType` — line numbers printed in the margin beside the text. #### countBy [Section titled “countBy”](#countby) > `readonly` **countBy**: `number` Print every `countBy`-th line (default 1). #### distancePt? [Section titled “distancePt?”](#distancept) > `readonly` `optional` **distancePt?**: [`Pt`](/api/index/type-aliases/pt/) How far the number stands off the text (`w:distance`); absent ⇒ Word’s quarter inch. #### restart [Section titled “restart”](#restart) > `readonly` **restart**: `"newPage"` | `"newSection"` | `"continuous"` §17.18.55 — where the count restarts. #### start [Section titled “start”](#start) > `readonly` **start**: `number` The number the count starts at (default 1). *** ### margins? [Section titled “margins?”](#margins) > `readonly` `optional` **margins?**: [`PageMargins`](/api/core/document-model/interfaces/pagemargins/) Defined in: [src/core/document-model/types.ts:2180](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2180) *** ### pageBorders? [Section titled “pageBorders?”](#pageborders) > `readonly` `optional` **pageBorders?**: `object` Defined in: [src/core/document-model/types.ts:2223](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2223) §17.6.10 `w:pgBorders` — the rules drawn around the page. `offsetFrom` says what each edge’s `spacePt` is measured from: the paper’s edge, or the text margin it stands outside of. #### borders [Section titled “borders”](#borders) > `readonly` **borders**: [`CellBorders`](/api/core/document-model/interfaces/cellborders/) #### offsetFrom [Section titled “offsetFrom”](#offsetfrom) > `readonly` **offsetFrom**: `"text"` | `"page"` *** ### pageNumberFormat? [Section titled “pageNumberFormat?”](#pagenumberformat) > `readonly` `optional` **pageNumberFormat?**: [`NumberingFormat`](/api/core/document-model/type-aliases/numberingformat/) Defined in: [src/core/document-model/types.ts:2198](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2198) §17.6.12 `w:pgNumType w:fmt` — how a PAGE field prints the section’s page numbers (§17.18.59): `lowerRoman` numbers a book’s front matter i, ii, iii before its body starts again at 1. Absent ⇒ decimal. *** ### pageNumberStart? [Section titled “pageNumberStart?”](#pagenumberstart) > `readonly` `optional` **pageNumberStart?**: `number` Defined in: [src/core/document-model/types.ts:2192](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2192) §17.6.12 `w:pgNumType w:start` — the number the section’s first page is printed with. Absent ⇒ the count carries on from the section before. *** ### pageSize? [Section titled “pageSize?”](#pagesize) > `readonly` `optional` **pageSize?**: [`PageSize`](/api/core/document-model/interfaces/pagesize/) Defined in: [src/core/document-model/types.ts:2179](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2179) *** ### sectionStart? [Section titled “sectionStart?”](#sectionstart) > `readonly` `optional` **sectionStart?**: `"continuous"` | `"nextPage"` | `"oddPage"` | `"evenPage"` Defined in: [src/core/document-model/types.ts:2234](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2234) §17.6.22 `w:type` — where the section starts. `continuous` starts it on the page already in hand rather than a fresh one; `nextPage` on the next sheet; `oddPage` and `evenPage` on the next sheet of that PARITY, which means a blank one in between when the count falls wrong. (`nextColumn` is not distinguished from `nextPage`.) *** ### textDirection? [Section titled “textDirection?”](#textdirection) > `readonly` `optional` **textDirection?**: `"btLr"` | `"tbRl"` Defined in: [src/core/document-model/types.ts:2245](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2245) §17.6.20 `w:textDirection` — which way the section’s lines run. `tbRl` sets each line top to bottom and the next one to the left of it: the text turned a quarter clockwise on the sheet, which is how a viewer shows a page turned by `/Rotate 90` whose words stood upright in its box. Word lays a section out that way for `btLr` as well, so the layout reads both alike. Only the body’s text turns: the headers, the footers and every drawing anchored to the page keep the sheet’s own axes. Absent ⇒ left to right, top to bottom. *** ### titlePg? [Section titled “titlePg?”](#titlepg) > `readonly` `optional` **titlePg?**: `boolean` Defined in: [src/core/document-model/types.ts:2187](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2187) ECMA-376 §17.10.6 — `w:titlePg` toggle in `sectPr`. When true the first page of the section uses the `first` header/footer references. # ShapeBlock Defined in: [src/core/document-model/types.ts:1687](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1687) ## Properties [Section titled “Properties”](#properties) ### altText? [Section titled “altText?”](#alttext) > `readonly` `optional` **altText?**: `string` Defined in: [src/core/document-model/types.ts:1705](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1705) `wp:docPr @descr/@title` — alternate text for the tagged-PDF Figure (`/Alt`). *** ### children? [Section titled “children?”](#children) > `readonly` `optional` **children?**: readonly [`ShapeGroupChild`](/api/core/document-model/interfaces/shapegroupchild/)\[] Defined in: [src/core/document-model/types.ts:1693](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1693) §20.5.2.17 — the shapes a group holds, drawn inside its own box. *** ### fill [Section titled “fill”](#fill) > `readonly` **fill**: [`ShapeFill`](/api/core/document-model/interfaces/shapefill/) Defined in: [src/core/document-model/types.ts:1695](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1695) *** ### float? [Section titled “float?”](#float) > `readonly` `optional` **float?**: [`FloatAnchor`](/api/core/document-model/interfaces/floatanchor/) Defined in: [src/core/document-model/types.ts:1689](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1689) §20.4.2.3 — present when the drawing is anchored (floating). *** ### geometry [Section titled “geometry”](#geometry) > `readonly` **geometry**: [`ShapeGeometry`](/api/core/document-model/interfaces/shapegeometry/) Defined in: [src/core/document-model/types.ts:1694](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1694) *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1691](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1691) *** ### line? [Section titled “line?”](#line) > `readonly` `optional` **line?**: [`ShapeLine`](/api/core/document-model/interfaces/shapeline/) Defined in: [src/core/document-model/types.ts:1696](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1696) *** ### paragraphProperties [Section titled “paragraphProperties”](#paragraphproperties) > `readonly` **paragraphProperties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:1703](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1703) *** ### relativeSize? [Section titled “relativeSize?”](#relativesize) > `readonly` `optional` **relativeSize?**: [`RelativeSize`](/api/core/document-model/interfaces/relativesize/) Defined in: [src/core/document-model/types.ts:1699](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1699) `wp14:sizeRelH/V` — a size stated as a share of the page or margins. *** ### shadow? [Section titled “shadow?”](#shadow) > `readonly` `optional` **shadow?**: [`ShapeShadow`](/api/core/document-model/interfaces/shapeshadow/) Defined in: [src/core/document-model/types.ts:1702](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1702) §20.1.8.40 — the shape’s drop shadow, direct or from its style reference. *** ### text? [Section titled “text?”](#text) > `readonly` `optional` **text?**: [`ShapeTextBody`](/api/core/document-model/interfaces/shapetextbody/) Defined in: [src/core/document-model/types.ts:1700](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1700) *** ### transform? [Section titled “transform?”](#transform) > `readonly` `optional` **transform?**: [`ShapeTransform`](/api/core/document-model/interfaces/shapetransform/) Defined in: [src/core/document-model/types.ts:1697](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1697) *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1690](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1690) # ShapeFill Defined in: [src/core/document-model/types.ts:1451](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1451) A shape’s fill: none, a solid colour, a ShapeGradient, or a picture. ## Properties [Section titled “Properties”](#properties) ### alpha? [Section titled “alpha?”](#alpha) > `readonly` `optional` **alpha?**: `number` Defined in: [src/core/document-model/types.ts:1520](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1520) §20.1.2.3.1 `a:alpha` / §14.1.2.5 `@opacity` — how opaque the fill is, `0..1`. Absent is opaque. The colour above is the fill’s own, NOT composited over the paper: what is behind the shape shows through it. *** ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:1453](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1453) *** ### duotone? [Section titled “duotone?”](#duotone) > `readonly` `optional` **duotone?**: `object` Defined in: [src/core/document-model/types.ts:1508](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1508) §20.1.8.23 `a:duotone` — the picture recoloured into two tones: its dark end becomes the first colour, its light end the second. An Office theme that ships a photograph tints it this way, so a deck whose background is a brown ridged texture is stored as a grey one (corpus: themes.pptx). #### highlightHex [Section titled “highlightHex”](#highlighthex) > `readonly` **highlightHex**: `string` #### shadowHex [Section titled “shadowHex”](#shadowhex) > `readonly` **shadowHex**: `string` *** ### gradient? [Section titled “gradient?”](#gradient) > `readonly` `optional` **gradient?**: `ShapeGradient` Defined in: [src/core/document-model/types.ts:1454](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1454) *** ### imageCrop? [Section titled “imageCrop?”](#imagecrop) > `readonly` `optional` **imageCrop?**: [`ImageCrop`](/api/core/document-model/interfaces/imagecrop/) Defined in: [src/core/document-model/types.ts:1493](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1493) §20.1.8.30 `a:stretch/a:fillRect` (or an `a:srcRect` beside it) — the part of the picture the box shows, as the fractions cut from each side. *** ### imageFillRect? [Section titled “imageFillRect?”](#imagefillrect) > `readonly` `optional` **imageFillRect?**: `object` Defined in: [src/core/document-model/types.ts:1509](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1509) #### bottom [Section titled “bottom”](#bottom) > `readonly` **bottom**: `number` #### left [Section titled “left”](#left) > `readonly` **left**: `number` #### right [Section titled “right”](#right) > `readonly` **right**: `number` #### top [Section titled “top”](#top) > `readonly` **top**: `number` *** ### imageResource? [Section titled “imageResource?”](#imageresource) > `readonly` `optional` **imageResource?**: [`ResourceId`](/api/index/type-aliases/resourceid/) Defined in: [src/core/document-model/types.ts:1488](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1488) §20.1.8.14 `a:blipFill` — the picture painted across the shape’s box. A DrawingML picture IS a shape with one of these, which is how a `pic:pic` inside a group reaches the page. *** ### kind [Section titled “kind”](#kind) > `readonly` **kind**: [`ShapeFillKind`](/api/core/document-model/type-aliases/shapefillkind/) Defined in: [src/core/document-model/types.ts:1452](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1452) *** ### tiled? [Section titled “tiled?”](#tiled) > `readonly` `optional` **tiled?**: `boolean` Defined in: [src/core/document-model/types.ts:1460](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1460) §14.1.2.5 `@type="tile"` — the picture REPEATS at its own size rather than stretching over the box. A parchment behind a page, a texture behind a text box: stretched, such a fill is a blur where it should be a pattern. *** ### tileFromCentre? [Section titled “tileFromCentre?”](#tilefromcentre) > `readonly` `optional` **tileFromCentre?**: `boolean` Defined in: [src/core/document-model/types.ts:1482](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1482) Where the grid of copies is anchored. DrawingML pins it to the shape’s top-left corner (§20.1.8.58 `a:tile @algn`, which defaults to `tl`); an MS-ODRAW texture fill (§2.3.7.13 `fillOriginX`/`fillOriginY`, both defaulting to nothing) centres it on the shape instead. It only shows when the copies do not divide the box evenly — and it shows most when ONE copy is larger than the box, where the difference is which part of the picture is visible at all. *** ### tileScale? [Section titled “tileScale?”](#tilescale) > `readonly` `optional` **tileScale?**: `object` Defined in: [src/core/document-model/types.ts:1472](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1472) §20.1.8.58 `a:tile @sx @sy` — how far the picture is scaled BEFORE it is repeated, as fractions of its own size (1 = 100 %). A texture halved tiles four times as often, and read as a plain repeat it tiles once. #### sx [Section titled “sx”](#sx) > `readonly` **sx**: `number` #### sy [Section titled “sy”](#sy) > `readonly` **sy**: `number` *** ### tileSizePt? [Section titled “tileSizePt?”](#tilesizept) > `readonly` `optional` **tileSizePt?**: `object` Defined in: [src/core/document-model/types.ts:1466](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1466) The size ONE copy of a tiled fill occupies, when the shape states it — MS-ODRAW §2.3.7.11/.12 `fillWidth` / `fillHeight`. Absent, a tile is the picture at its own resolution, which is the default both formats give. #### heightPt [Section titled “heightPt”](#heightpt) > `readonly` **heightPt**: `number` #### widthPt [Section titled “widthPt”](#widthpt) > `readonly` **widthPt**: `number` # ShapeGeometry Defined in: [src/core/document-model/types.ts:1440](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1440) §20.1.10.55 `prstGeom` / §20.1.9.11 `custGeom` — a shape’s geometry source. ## Properties [Section titled “Properties”](#properties) ### adjust? [Section titled “adjust?”](#adjust) > `readonly` `optional` **adjust?**: `ReadonlyMap`<`string`, `number`> Defined in: [src/core/document-model/types.ts:1443](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1443) *** ### custom? [Section titled “custom?”](#custom) > `readonly` `optional` **custom?**: [`CustomGeometry`](/api/core/document-model/interfaces/customgeometry/) Defined in: [src/core/document-model/types.ts:1444](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1444) *** ### kind [Section titled “kind”](#kind) > `readonly` **kind**: `"preset"` | `"custom"` Defined in: [src/core/document-model/types.ts:1441](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1441) *** ### preset? [Section titled “preset?”](#preset) > `readonly` `optional` **preset?**: `string` Defined in: [src/core/document-model/types.ts:1442](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1442) # ShapeGroupChild Defined in: [src/core/document-model/types.ts:1681](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1681) §20.5.2.17 `wpg:wgp` — one member of a drawing group, and where it sits: the offsets are from the group’s own top-left corner, already mapped out of the group’s child coordinate space. ## Properties [Section titled “Properties”](#properties) ### shape [Section titled “shape”](#shape) > `readonly` **shape**: [`ShapeBlock`](/api/core/document-model/interfaces/shapeblock/) Defined in: [src/core/document-model/types.ts:1682](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1682) *** ### xPt [Section titled “xPt”](#xpt) > `readonly` **xPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1683](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1683) *** ### yPt [Section titled “yPt”](#ypt) > `readonly` **yPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1684](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1684) # ShapeLine Defined in: [src/core/document-model/types.ts:1535](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1535) §20.1.2.2.24 `a:ln` — a shape’s outline (stroke). ## Properties [Section titled “Properties”](#properties) ### alpha? [Section titled “alpha?”](#alpha) > `readonly` `optional` **alpha?**: `number` Defined in: [src/core/document-model/types.ts:1547](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1547) §20.1.2.3.1 `a:alpha` on the line’s colour — how opaque the stroke is, `0..1`. *** ### cap? [Section titled “cap?”](#cap) > `readonly` `optional` **cap?**: `"square"` | `"flat"` | `"round"` Defined in: [src/core/document-model/types.ts:1544](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1544) *** ### colorHex? [Section titled “colorHex?”](#colorhex) > `readonly` `optional` **colorHex?**: `string` Defined in: [src/core/document-model/types.ts:1537](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1537) *** ### customDash? [Section titled “customDash?”](#customdash) > `readonly` `optional` **customDash?**: readonly `number`\[] Defined in: [src/core/document-model/types.ts:1543](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1543) §20.1.8.21 `a:custDash` — the author’s own pattern: dash/space lengths as MULTIPLES of the line width, in the order they are drawn. *** ### dash? [Section titled “dash?”](#dash) > `readonly` `optional` **dash?**: [`ShapeDash`](/api/core/document-model/type-aliases/shapedash/) Defined in: [src/core/document-model/types.ts:1538](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1538) *** ### fill? [Section titled “fill?”](#fill) > `readonly` `optional` **fill?**: `"none"` | `"solid"` Defined in: [src/core/document-model/types.ts:1545](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1545) *** ### headEnd? [Section titled “headEnd?”](#headend) > `readonly` `optional` **headEnd?**: [`LineEnd`](/api/core/document-model/interfaces/lineend/) Defined in: [src/core/document-model/types.ts:1549](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1549) §20.1.8.24 `a:headEnd` — the decoration at the line’s first point. *** ### tailEnd? [Section titled “tailEnd?”](#tailend) > `readonly` `optional` **tailEnd?**: [`LineEnd`](/api/core/document-model/interfaces/lineend/) Defined in: [src/core/document-model/types.ts:1551](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1551) §20.1.8.42 `a:tailEnd` — the decoration at the line’s last point. *** ### width? [Section titled “width?”](#width) > `readonly` `optional` **width?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1536](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1536) # ShapeShadow Defined in: [src/core/document-model/types.ts:1666](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1666) §20.1.8.40 `a:outerShdw` — the drop shadow under a shape: how far it is displaced, how soft its edge is, and in what colour. `dxPt`/`dyPt` are the displacement in page coordinates (y grows DOWN), resolved from the spec’s polar `dist`/`dir`. ## Properties [Section titled “Properties”](#properties) ### alpha [Section titled “alpha”](#alpha) > `readonly` **alpha**: `number` Defined in: [src/core/document-model/types.ts:1673](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1673) 0..1, from the shadow colour’s `a:alpha` (absent ⇒ opaque). *** ### blurPt [Section titled “blurPt”](#blurpt) > `readonly` **blurPt**: `number` Defined in: [src/core/document-model/types.ts:1670](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1670) `blurRad` in points; 0 is a hard edge. *** ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:1671](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1671) *** ### dxPt [Section titled “dxPt”](#dxpt) > `readonly` **dxPt**: `number` Defined in: [src/core/document-model/types.ts:1667](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1667) *** ### dyPt [Section titled “dyPt”](#dypt) > `readonly` **dyPt**: `number` Defined in: [src/core/document-model/types.ts:1668](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1668) # ShapeTextBody Defined in: [src/core/document-model/types.ts:1592](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1592) `wps:txbx` (`w:txbxContent`) + `wps:bodyPr` — text inside a shape. ## Properties [Section titled “Properties”](#properties) ### anchor? [Section titled “anchor?”](#anchor) > `readonly` `optional` **anchor?**: `"t"` | `"b"` | `"ctr"` Defined in: [src/core/document-model/types.ts:1598](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1598) *** ### autoFit? [Section titled “autoFit?”](#autofit) > `readonly` `optional` **autoFit?**: `boolean` Defined in: [src/core/document-model/types.ts:1622](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1622) §20.1.10.28 `a:spAutoFit` — the SHAPE follows its text: its height is whatever the text needs, whatever the stated box says. *** ### chain? [Section titled “chain?”](#chain) > `readonly` `optional` **chain?**: `object` Defined in: [src/core/document-model/types.ts:1651](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1651) `wps:txbx @id` / `wps:linkedTxbx @id @seq` — the chain of boxes this one belongs to. Text that overruns a box continues in the next of its chain; `seq` 0 is the box that holds the words, and the rest carry none of their own. #### id [Section titled “id”](#id) > `readonly` **id**: `string` #### seq [Section titled “seq”](#seq) > `readonly` **seq**: `number` *** ### content [Section titled “content”](#content) > `readonly` **content**: readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] Defined in: [src/core/document-model/types.ts:1593](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1593) *** ### fitToBox? [Section titled “fitToBox?”](#fittobox) > `readonly` `optional` **fitToBox?**: `boolean` Defined in: [src/core/document-model/types.ts:1627](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1627) §14.1.2.22 `v:textpath @fitshape` — the TEXT follows the shape: legacy WordArt is set at whatever size fills the box it was drawn in. *** ### insetBottom? [Section titled “insetBottom?”](#insetbottom) > `readonly` `optional` **insetBottom?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1597](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1597) *** ### insetLeft? [Section titled “insetLeft?”](#insetleft) > `readonly` `optional` **insetLeft?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1594](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1594) *** ### insetRight? [Section titled “insetRight?”](#insetright) > `readonly` `optional` **insetRight?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1596](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1596) *** ### insetTop? [Section titled “insetTop?”](#insettop) > `readonly` `optional` **insetTop?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1595](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1595) *** ### noWrap? [Section titled “noWrap?”](#nowrap) > `readonly` `optional` **noWrap?**: `boolean` Defined in: [src/core/document-model/types.ts:1605](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1605) §20.1.2.1.1 `a:bodyPr @wrap="none"` — the lines run as far as their words do, whatever the box’s width. A label placed where a page set it is sized to the words it was measured from, and set in a face a little wider it broke inside its one word. *** ### shrinkToFit? [Section titled “shrinkToFit?”](#shrinktofit) > `readonly` `optional` **shrinkToFit?**: `boolean` Defined in: [src/core/document-model/types.ts:1644](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1644) §20.1.10.42 `a:normAutofit` — the text SHRINKS to fit the box, and only shrinks: a size that already fits is left alone. PowerPoint writes the scale it settled on into `@fontScale` and that is applied at parse; this is for the text that arrives without one, which is every box of a diagram laid out from its layout part rather than from a cached drawing. *** ### upright? [Section titled “upright?”](#upright) > `readonly` `optional` **upright?**: `boolean` Defined in: [src/core/document-model/types.ts:1617](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1617) §20.1.10.55 `a:bodyPr @upright` — the words stay level however far the shape is turned. bnc762542.xlsx turns each legend label a quarter and asks for this, and every reader draws those labels lying flat. *** ### vertical? [Section titled “vertical?”](#vertical) > `readonly` `optional` **vertical?**: `"vert"` | `"vert270"` Defined in: [src/core/document-model/types.ts:1611](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1611) §20.1.10.83 ST\_TextVerticalType (`a:bodyPr @vert`) — text set along the box’s long axis rather than across it. `vert` reads top-to-bottom (turned a quarter clockwise), `vert270` bottom-to-top. *** ### warp? [Section titled “warp?”](#warp) > `readonly` `optional` **warp?**: `object` Defined in: [src/core/document-model/types.ts:1636](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1636) §20.1.9.10 `a:prstTxWarp` — DrawingML WordArt: the preset curve the text is bent through, and the `a:avLst` `adj` guide when the file states one. The warped text does not wrap and is stretched to fill the shape’s box, so the size its runs state stops deciding how large it is drawn. `textNoShape` is not carried: it is the enumeration’s “no warp” member, and a body under it is an ordinary text box. #### adjust? [Section titled “adjust?”](#adjust) > `readonly` `optional` **adjust?**: `number` #### preset [Section titled “preset”](#preset) > `readonly` **preset**: `string` # ShapeTransform Defined in: [src/core/document-model/types.ts:1585](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1585) §20.1.7.6 `a:xfrm` — a shape’s rotation (1/60000°, clockwise) + flips. ## Properties [Section titled “Properties”](#properties) ### flipH? [Section titled “flipH?”](#fliph) > `readonly` `optional` **flipH?**: `boolean` Defined in: [src/core/document-model/types.ts:1587](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1587) *** ### flipV? [Section titled “flipV?”](#flipv) > `readonly` `optional` **flipV?**: `boolean` Defined in: [src/core/document-model/types.ts:1588](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1588) *** ### rotation60k? [Section titled “rotation60k?”](#rotation60k) > `readonly` `optional` **rotation60k?**: `number` Defined in: [src/core/document-model/types.ts:1586](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1586) # Style Defined in: [src/core/document-model/types.ts:893](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L893) ECMA-376 §17.7 — one style definition: its id, category, `basedOn` parent, and the run/paragraph properties it contributes (plus the table-style layers for `type === 'table'`). ## Properties [Section titled “Properties”](#properties) ### basedOn? [Section titled “basedOn?”](#basedon) > `readonly` `optional` **basedOn?**: `string` Defined in: [src/core/document-model/types.ts:896](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L896) *** ### builtInOutlineLevel? [Section titled “builtInOutlineLevel?”](#builtinoutlinelevel) > `readonly` `optional` **builtInOutlineLevel?**: `number` Defined in: [src/core/document-model/types.ts:912](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L912) The outline level (0–8) a built-in heading style (“heading 1” … “heading 9”) FIXES. A paragraph written in such a style takes this level whatever its own `w:outlineLvl` says (Word reads a Heading 2 paragraph with a direct body-text level 9 as level 2), and whatever the style’s own `w:outlineLvl` says (a “heading 4” that states none is level 4 all the same). *** ### colBandSize? [Section titled “colBandSize?”](#colbandsize) > `readonly` `optional` **colBandSize?**: `number` Defined in: [src/core/document-model/types.ts:923](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L923) *** ### id [Section titled “id”](#id) > `readonly` **id**: `string` Defined in: [src/core/document-model/types.ts:894](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L894) *** ### isDefault [Section titled “isDefault”](#isdefault) > `readonly` **isDefault**: `boolean` Defined in: [src/core/document-model/types.ts:897](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L897) *** ### name? [Section titled “name?”](#name) > `readonly` `optional` **name?**: `string` Defined in: [src/core/document-model/types.ts:904](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L904) §17.7.4.9 `w:name` — the style’s primary name. Word knows its built-in styles by this name, never by the id: a style named “heading 5” under the id `X5` is its Heading 5, and one named “Fancy” under the id `Heading6` is body text. *** ### paragraphProperties [Section titled “paragraphProperties”](#paragraphproperties) > `readonly` **paragraphProperties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:914](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L914) *** ### rowBandSize? [Section titled “rowBandSize?”](#rowbandsize) > `readonly` `optional` **rowBandSize?**: `number` Defined in: [src/core/document-model/types.ts:922](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L922) `w:tblPr/w:tblStyleRowBandSize` / `ColBandSize`: rows (columns) per band. Absent here and up the `basedOn` chain, or 0, the style bands nothing. *** ### runProperties [Section titled “runProperties”](#runproperties) > `readonly` **runProperties**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:913](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L913) *** ### tableConditions? [Section titled “tableConditions?”](#tableconditions) > `readonly` `optional` **tableConditions?**: readonly [`TableStyleCondition`](/api/core/document-model/interfaces/tablestylecondition/)\[] Defined in: [src/core/document-model/types.ts:917](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L917) *** ### tableLayer? [Section titled “tableLayer?”](#tablelayer) > `readonly` `optional` **tableLayer?**: [`TableStyleLayer`](/api/core/document-model/interfaces/tablestylelayer/) Defined in: [src/core/document-model/types.ts:916](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L916) Table styles only (§17.7.6): the base layer and conditional overrides. *** ### type [Section titled “type”](#type) > `readonly` **type**: [`StyleType`](/api/core/document-model/type-aliases/styletype/) Defined in: [src/core/document-model/types.ts:895](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L895) # StyleSheet Defined in: [src/core/document-model/types.ts:931](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L931) The parsed `word/styles.xml`: document defaults (`docDefaults`) plus the styles map keyed by id. The cascade resolver merges these into the resolved property objects the renderer consumes. ## Properties [Section titled “Properties”](#properties) ### defaultParagraphProperties [Section titled “defaultParagraphProperties”](#defaultparagraphproperties) > `readonly` **defaultParagraphProperties**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:933](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L933) *** ### defaultRunProperties [Section titled “defaultRunProperties”](#defaultrunproperties) > `readonly` **defaultRunProperties**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:932](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L932) *** ### styles [Section titled “styles”](#styles) > `readonly` **styles**: `ReadonlyMap`<`string`, [`Style`](/api/core/document-model/interfaces/style/)> Defined in: [src/core/document-model/types.ts:934](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L934) # Table Defined in: [src/core/document-model/types.ts:1288](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1288) §17.4.38 `w:tbl` — a table: its [TableProperties](/api/core/document-model/interfaces/tableproperties/), the `w:tblGrid` column widths (`grid`), and its rows. ## Properties [Section titled “Properties”](#properties) ### grid [Section titled “grid”](#grid) > `readonly` **grid**: readonly [`Pt`](/api/index/type-aliases/pt/)\[] Defined in: [src/core/document-model/types.ts:1291](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1291) *** ### native? [Section titled “native?”](#native) > `readonly` `optional` **native?**: [`NativeBag`](/api/index/interfaces/nativebag/) Defined in: [src/core/document-model/types.ts:1289](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1289) *** ### overlay? [Section titled “overlay?”](#overlay) > `readonly` `optional` **overlay?**: [`TableOverlay`](/api/core/document-model/interfaces/tableoverlay/) Defined in: [src/core/document-model/types.ts:1294](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1294) The drawings that lie over a spreadsheet grid and print with it. *** ### properties [Section titled “properties”](#properties-1) > `readonly` **properties**: [`TableProperties`](/api/core/document-model/interfaces/tableproperties/) Defined in: [src/core/document-model/types.ts:1290](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1290) *** ### rows [Section titled “rows”](#rows) > `readonly` **rows**: readonly [`TableRow`](/api/core/document-model/interfaces/tablerow/)\[] Defined in: [src/core/document-model/types.ts:1292](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1292) # TableCell Defined in: [src/core/document-model/types.ts:1273](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1273) §17.4.66 `w:tc` — a table cell: its [CellProperties](/api/core/document-model/interfaces/cellproperties/) and block content. ## Properties [Section titled “Properties”](#properties) ### content [Section titled “content”](#content) > `readonly` **content**: readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] Defined in: [src/core/document-model/types.ts:1275](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1275) *** ### properties [Section titled “properties”](#properties-1) > `readonly` **properties**: [`CellProperties`](/api/core/document-model/interfaces/cellproperties/) Defined in: [src/core/document-model/types.ts:1274](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1274) # TableLook Defined in: [src/core/document-model/types.ts:1216](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1216) §17.4.62 `w:tblLook` — which of the table style’s conditional formats apply. Modern files carry explicit attributes; legacy files a hex bitmask (both parsed). Band flags are negative (“no band”) per the spec. ## Properties [Section titled “Properties”](#properties) ### firstColumn? [Section titled “firstColumn?”](#firstcolumn) > `readonly` `optional` **firstColumn?**: `boolean` Defined in: [src/core/document-model/types.ts:1219](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1219) *** ### firstRow? [Section titled “firstRow?”](#firstrow) > `readonly` `optional` **firstRow?**: `boolean` Defined in: [src/core/document-model/types.ts:1217](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1217) *** ### lastColumn? [Section titled “lastColumn?”](#lastcolumn) > `readonly` `optional` **lastColumn?**: `boolean` Defined in: [src/core/document-model/types.ts:1220](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1220) *** ### lastRow? [Section titled “lastRow?”](#lastrow) > `readonly` `optional` **lastRow?**: `boolean` Defined in: [src/core/document-model/types.ts:1218](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1218) *** ### noHBand? [Section titled “noHBand?”](#nohband) > `readonly` `optional` **noHBand?**: `boolean` Defined in: [src/core/document-model/types.ts:1221](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1221) *** ### noVBand? [Section titled “noVBand?”](#novband) > `readonly` `optional` **noVBand?**: `boolean` Defined in: [src/core/document-model/types.ts:1222](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1222) # TableOverlay Defined in: [src/core/document-model/types.ts:1305](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1305) §20.5 — a spreadsheet’s drawings over the part of the sheet one table prints. A drawing is anchored to cells, not to paper: each page the table spans shows the part of every drawing that lies over the rows and columns it prints, and cuts it off where they end — a chart across a page break is printed in two pieces, a drawing in the repeated title rows on every page, and what runs out of the print area not at all. Excel prints a sheet so. ## Properties [Section titled “Properties”](#properties) ### drawings [Section titled “drawings”](#drawings) > `readonly` **drawings**: readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] Defined in: [src/core/document-model/types.ts:1319](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1319) The drawings, out-of-flow floats placed in the sheet’s own frame: `posH` from the sheet’s left edge, `posV` from its top, the frame of [RowProperties.sheetTopPt](/api/core/document-model/interfaces/rowproperties/#sheettoppt). *** ### leftPt [Section titled “leftPt”](#leftpt) > `readonly` **leftPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1311](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1311) Where they stand in the table, from its left edge (past a printed row-number column). *** ### mirrored? [Section titled “mirrored?”](#mirrored) > `readonly` `optional` **mirrored?**: `boolean` Defined in: [src/core/document-model/types.ts:1313](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1313) §18.3.1.87 — the sheet reads from the right: its first column stands at the right. *** ### sheetLeftPt [Section titled “sheetLeftPt”](#sheetleftpt) > `readonly` **sheetLeftPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1307](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1307) Where the sheet’s columns this table prints begin, in the drawings’ frame. *** ### widthPt [Section titled “widthPt”](#widthpt) > `readonly` **widthPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1309](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1309) How wide those columns run. # TableProperties Defined in: [src/core/document-model/types.ts:1226](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1226) §17.4.60 `w:tblPr` — a table’s properties: style ref, width/layout, chrome. ## Properties [Section titled “Properties”](#properties) ### alignment? [Section titled “alignment?”](#alignment) > `readonly` `optional` **alignment?**: `"right"` | `"left"` | `"center"` Defined in: [src/core/document-model/types.ts:1251](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1251) ECMA-376 §17.4.27 (`w:jc`) / xlsx ``. Centers or right-aligns a table narrower than the content width; absent ⇒ left. *** ### borders? [Section titled “borders?”](#borders) > `readonly` `optional` **borders?**: [`CellBorders`](/api/core/document-model/interfaces/cellborders/) Defined in: [src/core/document-model/types.ts:1238](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1238) *** ### defaultCellMargins? [Section titled “defaultCellMargins?”](#defaultcellmargins) > `readonly` `optional` **defaultCellMargins?**: [`CellMargins`](/api/core/document-model/interfaces/cellmargins/) Defined in: [src/core/document-model/types.ts:1237](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1237) *** ### float? [Section titled “float?”](#float) > `readonly` `optional` **float?**: [`FloatAnchor`](/api/core/document-model/interfaces/floatanchor/) Defined in: [src/core/document-model/types.ts:1263](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1263) §17.4.58 `w:tblpPr` — the table FLOATS: it is placed at an anchor of its own and the text runs past it, exactly as an anchored drawing does. Read into the same [FloatAnchor](/api/core/document-model/interfaces/floatanchor/) the drawings use. *** ### frozen? [Section titled “frozen?”](#frozen) > `readonly` `optional` **frozen?**: `object` Defined in: [src/core/document-model/types.ts:1269](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1269) A sticky-pane hint from a frozen worksheet view (E-SHEET SE3): the first `rows` rows / `cols` columns stay pinned while the rest scrolls. Consumed only by the HTML writer (an interactive target); PDF/SVG ignore it. #### cols [Section titled “cols”](#cols) > `readonly` **cols**: `number` #### rows [Section titled “rows”](#rows) > `readonly` **rows**: `number` *** ### gridlines? [Section titled “gridlines?”](#gridlines) > `readonly` `optional` **gridlines?**: [`Border`](/api/core/document-model/interfaces/border/) Defined in: [src/core/document-model/types.ts:1246](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1246) A worksheet’s gridlines as its WINDOW draws them (§18.3.1.87), where the sheet was projected for a screen: the line a cell’s edge takes when no border claims it — but not around a filled cell, whose fill covers them. A screen-only hint: the paginated layout draws a grid only where the sheet PRINTS one, and that comes as `borders`. *** ### indentPt? [Section titled “indentPt?”](#indentpt) > `readonly` `optional` **indentPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1257](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1257) §17.4.65 `w:tblInd` — how far the table’s leading edge stands in from the text margin. Distinct from [alignment](/api/core/document-model/interfaces/tableproperties/#alignment), which shares out the slack a narrow table leaves. *** ### layout? [Section titled “layout?”](#layout) > `readonly` `optional` **layout?**: `"auto"` | `"fixed"` Defined in: [src/core/document-model/types.ts:1236](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1236) *** ### look? [Section titled “look?”](#look) > `readonly` `optional` **look?**: [`TableLook`](/api/core/document-model/interfaces/tablelook/) Defined in: [src/core/document-model/types.ts:1232](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1232) *** ### styleId? [Section titled “styleId?”](#styleid) > `readonly` `optional` **styleId?**: `string` Defined in: [src/core/document-model/types.ts:1231](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1231) §17.7.6 — raw reference to a table style (resolved by the reader’s `resolveTableStyles` transform; round-trip material afterwards). *** ### widthFraction? [Section titled “widthFraction?”](#widthfraction) > `readonly` `optional` **widthFraction?**: `number` Defined in: [src/core/document-model/types.ts:1234](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1234) *** ### widthPt? [Section titled “widthPt?”](#widthpt) > `readonly` `optional` **widthPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:1233](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1233) *** ### widthType? [Section titled “widthType?”](#widthtype) > `readonly` `optional` **widthType?**: `"auto"` | `"dxa"` | `"pct"` | `"nil"` Defined in: [src/core/document-model/types.ts:1235](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1235) # TableRow Defined in: [src/core/document-model/types.ts:1279](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1279) §17.4.79 `w:tr` — a table row: its [RowProperties](/api/core/document-model/interfaces/rowproperties/) and cells. ## Properties [Section titled “Properties”](#properties) ### cells [Section titled “cells”](#cells) > `readonly` **cells**: readonly [`TableCell`](/api/core/document-model/interfaces/tablecell/)\[] Defined in: [src/core/document-model/types.ts:1281](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1281) *** ### properties [Section titled “properties”](#properties-1) > `readonly` **properties**: [`RowProperties`](/api/core/document-model/interfaces/rowproperties/) Defined in: [src/core/document-model/types.ts:1280](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1280) # TableStyleCondition Defined in: [src/core/document-model/types.ts:883](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L883) A conditional table-style override: the region `type` and the layer it applies. ## Properties [Section titled “Properties”](#properties) ### layer [Section titled “layer”](#layer) > `readonly` **layer**: [`TableStyleLayer`](/api/core/document-model/interfaces/tablestylelayer/) Defined in: [src/core/document-model/types.ts:885](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L885) *** ### type [Section titled “type”](#type) > `readonly` **type**: [`TableStyleConditionType`](/api/core/document-model/type-aliases/tablestyleconditiontype/) Defined in: [src/core/document-model/types.ts:884](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L884) # TableStyleLayer Defined in: [src/core/document-model/types.ts:839](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L839) §17.7.6 — one table-style formatting layer: the style’s own base layer (`w:style/tblPr` + `tcPr` + `rPr` + `pPr`) or one conditional override (`w:tblStylePr`). Borders come from `tblBorders` (table layer) or `tcBorders` (region layer) — whichever the layer carries. ## Properties [Section titled “Properties”](#properties) ### borders? [Section titled “borders?”](#borders) > `readonly` `optional` **borders?**: [`CellBorders`](/api/core/document-model/interfaces/cellborders/) Defined in: [src/core/document-model/types.ts:840](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L840) *** ### cellLevelMargins? [Section titled “cellLevelMargins?”](#celllevelmargins) > `readonly` `optional` **cellLevelMargins?**: [`CellMargins`](/api/core/document-model/interfaces/cellmargins/) Defined in: [src/core/document-model/types.ts:852](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L852) §17.4.42 `w:tcPr/w:tcMar` — the layer’s CELL-level margins. They outrank every table-level margin, the table’s own `w:tblCellMar` included; only a cell’s own `w:tcMar` beats them, side by side. *** ### cellMargins? [Section titled “cellMargins?”](#cellmargins) > `readonly` `optional` **cellMargins?**: [`CellMargins`](/api/core/document-model/interfaces/cellmargins/) Defined in: [src/core/document-model/types.ts:846](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L846) §17.4.43 `w:tblPr/w:tblCellMar` — the layer’s TABLE-level cell margins. The table’s own `w:tblCellMar` outranks them side by side, a region’s included. *** ### indentPt? [Section titled “indentPt?”](#indentpt) > `readonly` `optional` **indentPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:860](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L860) §17.4.65 `w:tblInd` — the table indent a whole-table layer declares. *** ### paragraphProperties? [Section titled “paragraphProperties?”](#paragraphproperties) > `readonly` `optional` **paragraphProperties?**: [`ParagraphProperties`](/api/core/document-model/interfaces/paragraphproperties/) Defined in: [src/core/document-model/types.ts:863](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L863) *** ### restatesMargins? [Section titled “restatesMargins?”](#restatesmargins) > `readonly` `optional` **restatesMargins?**: `boolean` Defined in: [src/core/document-model/types.ts:858](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L858) True when the layer carries a `w:tblPr` or `w:tcPr` of its own, margins or not. A region that does replaces the margins a `basedOn` ancestor’s region of the same type gave, instead of adding to them. *** ### runProperties? [Section titled “runProperties?”](#runproperties) > `readonly` `optional` **runProperties?**: [`RunProperties`](/api/core/document-model/interfaces/runproperties/) Defined in: [src/core/document-model/types.ts:862](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L862) *** ### shading? [Section titled “shading?”](#shading) > `readonly` `optional` **shading?**: [`CellShading`](/api/core/document-model/interfaces/cellshading/) Defined in: [src/core/document-model/types.ts:861](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L861) # TabStop Defined in: [src/core/document-model/types.ts:179](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L179) §17.3.1.38 `w:tab` — one stop in a paragraph’s tab list: where the text after a tab character goes, how it sits against that position, and what fills the gap on the way there. ## Properties [Section titled “Properties”](#properties) ### alignment [Section titled “alignment”](#alignment) > `readonly` **alignment**: `"right"` | `"left"` | `"center"` | `"decimal"` Defined in: [src/core/document-model/types.ts:192](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L192) §17.18.90 ST\_TabJc — how the text after the tab sits against the stop. *** ### leader? [Section titled “leader?”](#leader) > `readonly` `optional` **leader?**: `"dot"` | `"hyphen"` | `"underscore"` | `"middleDot"` Defined in: [src/core/document-model/types.ts:194](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L194) §17.18.89 ST\_TabTlc — the character drawn across the gap. *** ### positionPt [Section titled “positionPt”](#positionpt) > `readonly` **positionPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:185](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L185) Distance from the text margin, in points (`w:pos`, twips). Ignored when [relativeTo](/api/core/document-model/interfaces/tabstop/#relativeto) names an edge — a §17.3.3.15 `w:ptab` positions against the column itself, whose width only the layout knows. *** ### relativeTo? [Section titled “relativeTo?”](#relativeto) > `readonly` `optional` **relativeTo?**: `"right"` | `"center"` Defined in: [src/core/document-model/types.ts:190](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L190) §17.3.3.15 `w:ptab` — an ABSOLUTE position tab, which goes to the middle or the far side of the text column rather than to a stated distance. # TextOutline Defined in: [src/core/document-model/types.ts:159](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L159) A line drawn round a run’s glyphs: its colour and how wide the pen is. ## Properties [Section titled “Properties”](#properties) ### colorHex [Section titled “colorHex”](#colorhex) > `readonly` **colorHex**: `string` Defined in: [src/core/document-model/types.ts:160](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L160) *** ### widthPt [Section titled “widthPt”](#widthpt) > `readonly` **widthPt**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/document-model/types.ts:161](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L161) # Alignment > **Alignment** = `"left"` | `"right"` | `"center"` | `"both"` | `"distribute"` Defined in: [src/core/document-model/types.ts:15](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L15) Paragraph horizontal alignment (`w:jc`); `both` = justified. # BodyElement > **BodyElement** = { `kind`: `"paragraph"`; `paragraph`: [`Paragraph`](/api/core/document-model/interfaces/paragraph/); } | { `kind`: `"table"`; `table`: [`Table`](/api/core/document-model/interfaces/table/); } | { `image`: [`ImageBlock`](/api/core/document-model/interfaces/imageblock/); `kind`: `"image"`; } | { `kind`: `"shape"`; `shape`: [`ShapeBlock`](/api/core/document-model/interfaces/shapeblock/); } | { `chart`: [`ChartBlock`](/api/core/document-model/interfaces/chartblock/); `kind`: `"chart"`; } Defined in: [src/core/document-model/types.ts:2139](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2139) One top-level body item: a discriminated union over the block kinds. # BorderStyle > **BorderStyle** = `"none"` | `"single"` | `"double"` | `"thick"` | `"dotted"` | `"dashed"` | `"dashSmallGap"` | `"dashDot"` | `"dashDotDot"` Defined in: [src/core/document-model/types.ts:940](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L940) §17.18.2 ST\_Border — a cell-border line style (the subset Ream renders). # CellIconShape > **CellIconShape** = `"circle"` | `"square"` | `"diamond"` | `"triangleUp"` | `"triangleDown"` | `"triangleRight"` | `"check"` | `"cross"` | `"exclamation"` | `"bars"` | `"pie"` Defined in: [src/core/document-model/types.ts:1032](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1032) A conditional-format icon: a small glyph at the cell’s left, chosen by the value’s bucket (E-SHEET SC1c). Format-neutral — the xlsx layer maps Excel’s named icon families (3TrafficLights, 3Arrows, …) onto these shapes + colours. # CellMerge > **CellMerge** = `"start"` | `"middle"` | `"end"` Defined in: [src/core/document-model/types.ts:1081](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1081) Resolved position of a cell in a vertical merge group (ECMA-376 §17.4.85 `vMerge` markers are resolved by the reader): `start` opens a group that at least one cell continues, `middle` / `end` are continuations; undefined = not merged. Continuation cells stay in their rows (they hold the column slot); writers that need an HTML-style rowSpan can derive it by counting a start’s middle/end run downwards. # ChartLabelPosition > **ChartLabelPosition** = `"bestFit"` | `"b"` | `"ctr"` | `"inBase"` | `"inEnd"` | `"l"` | `"outEnd"` | `"r"` | `"t"` Defined in: [src/core/document-model/types.ts:1882](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1882) §21.2.2.48 ST\_DLblPos — where a data label stands against its point. # ChartMarkerSymbol > **ChartMarkerSymbol** = `"circle"` | `"dash"` | `"diamond"` | `"dot"` | `"none"` | `"plus"` | `"square"` | `"star"` | `"triangle"` | `"x"` Defined in: [src/core/document-model/types.ts:1803](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1803) §21.2.2.107 `c:symbol` (ST\_MarkerStyle) — the shape of a scatter/line series’ point marker. `auto` and `picture` are left to the reader, so they are not carried here. # ChartType > **ChartType** = `"bar"` | `"line"` | `"pie"` | `"area"` | `"scatter"` | `"unknown"` Defined in: [src/core/document-model/types.ts:1716](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1716) ECMA-376 Part 1 §21.2 — the kind of a DrawingML chart. A chart is referenced from a `w:drawing` (`a:graphicData uri=…/chart` → `c:chart r:id`) and its data lives in a separate chart part (e.g. `word/charts/chart1.xml`). The parsed [Chart](/api/core/document-model/interfaces/chart/) is keyed by that relationship id and supplied to the renderer alongside the body (mirroring image bytes), so [ChartBlock](/api/core/document-model/interfaces/chartblock/) only carries the ref. # CustomPathCmd > **CustomPathCmd** = { `cmd`: `"move"`; `x`: `number`; `y`: `number`; } | { `cmd`: `"line"`; `x`: `number`; `y`: `number`; } | { `cmd`: `"cubic"`; `x`: `number`; `x1`: `number`; `x2`: `number`; `y`: `number`; `y1`: `number`; `y2`: `number`; } | { `cmd`: `"quad"`; `x`: `number`; `x1`: `number`; `y`: `number`; `y1`: `number`; } | { `cmd`: `"arc"`; `hR`: `number`; `stAng`: `number`; `swAng`: `number`; `wR`: `number`; } | { `cmd`: `"close"`; } Defined in: [src/core/document-model/types.ts:1401](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1401) §20.1.10.55 prstGeom path command (custGeom ``), in path-space units (`a:path @w/@h`). `quad` is elevated to cubic at layout; `arc` uses the DrawingML angle convention (1/60000°, clockwise, y-down) and is converted to beziers by the geometry layer. # HeaderFooterType > **HeaderFooterType** = `"default"` | `"first"` | `"even"` Defined in: [src/core/document-model/types.ts:2169](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2169) §17.10 — which page class a header/footer reference applies to. # Ligatures > **Ligatures** = `"none"` | `"standard"` | `"contextual"` | `"historical"` | `"discretional"` | `"standardContextual"` | `"standardHistorical"` | `"contextualHistorical"` | `"standardDiscretional"` | `"contextualDiscretional"` | `"historicalDiscretional"` | `"standardContextualHistorical"` | `"standardContextualDiscretional"` | `"standardHistoricalDiscretional"` | `"contextualHistoricalDiscretional"` | `"all"` Defined in: [src/core/document-model/types.ts:37](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L37) \[MS-DOCX] ST\_Ligatures — which of a face’s OpenType ligatures a run is set with (`w14:ligatures`): the standard ones (`liga`), the contextual (`clig`), the historical (`hlig`) and the discretionary (`dlig`), alone or together. # MathNode > **MathNode** = [`MathRow`](/api/core/document-model/interfaces/mathrow/) | [`MathRun`](/api/core/document-model/interfaces/mathrun/) | [`MathFraction`](/api/core/document-model/interfaces/mathfraction/) | [`MathScript`](/api/core/document-model/interfaces/mathscript/) | [`MathRadical`](/api/core/document-model/interfaces/mathradical/) | [`MathNary`](/api/core/document-model/interfaces/mathnary/) | [`MathFunc`](/api/core/document-model/interfaces/mathfunc/) | [`MathLimit`](/api/core/document-model/interfaces/mathlimit/) | [`MathDelimiter`](/api/core/document-model/interfaces/mathdelimiter/) | [`MathMatrix`](/api/core/document-model/interfaces/mathmatrix/) | [`MathAccent`](/api/core/document-model/interfaces/mathaccent/) | [`MathBar`](/api/core/document-model/interfaces/mathbar/) | [`MathGroupChr`](/api/core/document-model/interfaces/mathgroupchr/) | [`MathEqArray`](/api/core/document-model/interfaces/matheqarray/) Defined in: [src/core/document-model/types.ts:415](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L415) ECMA-376 Part 1 §22 — OfficeMathML (OMML). A recursive math element tree. The union grows by milestone; the layout engine renders structural elements (fraction bars, radicals, big operators, stretchy delimiters) as vector paths and ordinary symbols as font glyphs. # NumberingFormat > **NumberingFormat** = `"decimal"` | `"decimalZero"` | `"decimalFullWidth"` | `"ordinal"` | `"lowerLetter"` | `"upperLetter"` | `"lowerRoman"` | `"upperRoman"` | `"ideographTraditional"` | `"ideographZodiac"` | `"ideographLegalTraditional"` | `"ideographDigital"` | `"koreanDigital2"` | `"chineseCounting"` | `"chineseCountingThousand"` | `"japaneseCounting"` | `"koreanCounting"` | `"taiwaneseCounting"` | `"taiwaneseCountingThousand"` | `"hebrew1"` | `"hebrew2"` | `"decimalEnclosedCircle"` | `"chicago"` | `"bullet"` | `"none"` Defined in: [src/core/document-model/types.ts:719](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L719) ECMA-376 Part 1 §17.9 — `w:numFmt` list marker format. # NumberingSuffix > **NumberingSuffix** = `"tab"` | `"space"` | `"nothing"` Defined in: [src/core/document-model/types.ts:790](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L790) §17.18.53 `ST_LevelSuffix` — the character between a list marker and its text. # ShapeDash > **ShapeDash** = `"solid"` | `"dot"` | `"dash"` | `"dashDot"` | `"lgDash"` | `"lgDashDot"` | `"sysDash"` | `"sysDot"` Defined in: [src/core/document-model/types.ts:1524](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1524) §20.1.10.49 ST\_PresetLineDashVal — a shape outline’s preset dash pattern. # ShapeFillKind > **ShapeFillKind** = `"none"` | `"solid"` | `"gradient"` | `"picture"` Defined in: [src/core/document-model/types.ts:1448](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L1448) A shape’s fill mode (`a:noFill`/`a:solidFill`/`a:gradFill`/`a:blipFill`). # StyleType > **StyleType** = `"paragraph"` | `"character"` | `"table"` | `"numbering"` Defined in: [src/core/document-model/types.ts:831](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L831) ECMA-376 Part 1 §17.7 — `w:style @w:type` style category. # TableStyleConditionType > **TableStyleConditionType** = `"wholeTable"` | `"band1Vert"` | `"band2Vert"` | `"band1Horz"` | `"band2Horz"` | `"firstCol"` | `"lastCol"` | `"firstRow"` | `"lastRow"` | `"nwCell"` | `"neCell"` | `"swCell"` | `"seCell"` Defined in: [src/core/document-model/types.ts:867](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L867) §17.7.6.3 `w:tblStylePr @w:type` — the table regions a conditional layer targets. # UnderlineStyle > **UnderlineStyle** = `"none"` | `"single"` | `"double"` | `"thick"` | `"dotted"` | `"dottedHeavy"` | `"dash"` | `"dashHeavy"` | `"wave"` Defined in: [src/core/document-model/types.ts:18](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L18) Run underline style (ECMA-376 §17.18.99 ST\_Underline, the subset Ream renders). # VerticalAlign > **VerticalAlign** = `"baseline"` | `"superscript"` | `"subscript"` Defined in: [src/core/document-model/types.ts:30](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L30) Run vertical alignment (`w:vertAlign`): baseline or super/subscript. # index The public API for Ream. The package reads Word, Excel, PowerPoint and PDF — including the legacy `.doc` / `.xls` / `.ppt` — and converts any of them to PDF, SVG, HTML, DOCX or XLSX, implemented from the ECMA-376 and ISO 32000 specifications without wrapping LibreOffice, headless Office, or any commercial SDK. Typical use: ```ts import { Ream } from 'reamkit'; const doc = Ream.parse(bytes); // format sniffed const pdf = await doc.convert('pdf'); // one parse, any target ``` Advanced consumers can build custom pipelines from the reader/writer interfaces, drive the layout engine directly via [renderStyledPdf](/api/index/functions/renderstyledpdf/), supply a hyphenator, or import the typed document model from the `reamkit/document-model` subpath. ## Classes [Section titled “Classes”](#classes) * [ConversionLossError](/api/index/classes/conversionlosserror/) * [FontRegistry](/api/index/classes/fontregistry/) * [Ream](/api/index/classes/ream/) * [ResourceStore](/api/index/classes/resourcestore/) * [WrongPasswordError](/api/index/classes/wrongpassworderror/) ## Interfaces [Section titled “Interfaces”](#interfaces) * [BorderItem](/api/index/interfaces/borderitem/) * [Converter](/api/index/interfaces/converter/) * [ConvertOptions](/api/index/interfaces/convertoptions/) * [ConvertResult](/api/index/interfaces/convertresult/) * [CreateConverterOptions](/api/index/interfaces/createconverteroptions/) * [DocumentInfo](/api/index/interfaces/documentinfo/) * [DocumentReader](/api/index/interfaces/documentreader/) * [DocumentWriter](/api/index/interfaces/documentwriter/) * [FaceFamily](/api/index/interfaces/facefamily/) * [FaceGlyph](/api/index/interfaces/faceglyph/) * [FaceOutlines](/api/index/interfaces/faceoutlines/) * [FetchFontSetOptions](/api/index/interfaces/fetchfontsetoptions/) * [FillItem](/api/index/interfaces/fillitem/) * [FlowDoc](/api/index/interfaces/flowdoc/) * [FontBytesByVariant](/api/index/interfaces/fontbytesbyvariant/) * [FontProvider](/api/index/interfaces/fontprovider/) * [FontRequest](/api/index/interfaces/fontrequest/) * [Hyphenator](/api/index/interfaces/hyphenator/) * [HyphenatorOptions](/api/index/interfaces/hyphenatoroptions/) * [ImageItem](/api/index/interfaces/imageitem/) * [LaidOutDocument](/api/index/interfaces/laidoutdocument/) * [LaidOutPage](/api/index/interfaces/laidoutpage/) * [Loss](/api/index/interfaces/loss/) * [MarkdownWriteOptions](/api/index/interfaces/markdownwriteoptions/) * [NativeBag](/api/index/interfaces/nativebag/) * [PageItemBase](/api/index/interfaces/pageitembase/) * [ParsedTtf](/api/index/interfaces/parsedttf/) * [PdfEncryptOptions](/api/index/interfaces/pdfencryptoptions/) * [PdfOutlineOptions](/api/index/interfaces/pdfoutlineoptions/) * [PdfPermissions](/api/index/interfaces/pdfpermissions/) * [ReadOptions](/api/index/interfaces/readoptions/) * [ReadResult](/api/index/interfaces/readresult/) * [ReamConvertOptions](/api/index/interfaces/reamconvertoptions/) * [ReamParseOptions](/api/index/interfaces/reamparseoptions/) * [ShapeItem](/api/index/interfaces/shapeitem/) * [SignatureOptions](/api/index/interfaces/signatureoptions/) * [SignaturePlaceholder](/api/index/interfaces/signatureplaceholder/) * [SignerCredentials](/api/index/interfaces/signercredentials/) * [StyledRenderOptions](/api/index/interfaces/styledrenderoptions/) * [SvgWriteOptions](/api/index/interfaces/svgwriteoptions/) * [TextLineItem](/api/index/interfaces/textlineitem/) * [WriteOptions](/api/index/interfaces/writeoptions/) * [WriteResult](/api/index/interfaces/writeresult/) ## Type Aliases [Section titled “Type Aliases”](#type-aliases) * [FamilyKey](/api/index/type-aliases/familykey/) * [Feature](/api/index/type-aliases/feature/) * [FetchLike](/api/index/type-aliases/fetchlike/) * [FontAnswer](/api/index/type-aliases/fontanswer/) * [FontVariant](/api/index/type-aliases/fontvariant/) * [GlyphSeg](/api/index/type-aliases/glyphseg/) * [KnownFeature](/api/index/type-aliases/knownfeature/) * [LossReport](/api/index/type-aliases/lossreport/) * [LossSeverity](/api/index/type-aliases/lossseverity/) * [PageItem](/api/index/type-aliases/pageitem/) * [Pt](/api/index/type-aliases/pt/) * [ReamTarget](/api/index/type-aliases/reamtarget/) * [ResourceId](/api/index/type-aliases/resourceid/) * [ScriptKey](/api/index/type-aliases/scriptkey/) * [StreamFilter](/api/index/type-aliases/streamfilter/) * [StreamFilters](/api/index/type-aliases/streamfilters/) * [SupportedLanguage](/api/index/type-aliases/supportedlanguage/) ## Variables [Section titled “Variables”](#variables) * [docxReader](/api/index/variables/docxreader/) * [docxWriter](/api/index/variables/docxwriter/) * [FEATURES](/api/index/variables/features/) * [htmlWriter](/api/index/variables/htmlwriter/) * [markdownWriter](/api/index/variables/markdownwriter/) * [NO\_FONT](/api/index/variables/no_font/) * [svgWriter](/api/index/variables/svgwriter/) * [xlsxReader](/api/index/variables/xlsxreader/) ## Functions [Section titled “Functions”](#functions) * [callerFontProvider](/api/index/functions/callerfontprovider/) * [chainProviders](/api/index/functions/chainproviders/) * [createConverter](/api/index/functions/createconverter/) * [createHyphenator](/api/index/functions/createhyphenator/) * [createLanguageHyphenator](/api/index/functions/createlanguagehyphenator/) * [eighthPtToPt](/api/index/functions/eighthpttopt/) * [embeddedDocFontProvider](/api/index/functions/embeddeddocfontprovider/) * [emuToPt](/api/index/functions/emutopt/) * [fetchFontSet](/api/index/functions/fetchfontset/) * [formatLoss](/api/index/functions/formatloss/) * [getHyphenator](/api/index/functions/gethyphenator/) * [halfPtToPt](/api/index/functions/halfpttopt/) * [inchToPt](/api/index/functions/inchtopt/) * [isEmbeddingRestricted](/api/index/functions/isembeddingrestricted/) * [isEncryptedPackage](/api/index/functions/isencryptedpackage/) * [layoutStyledDocument](/api/index/functions/layoutstyleddocument/) * [localFontProvider](/api/index/functions/localfontprovider/) * [mmToPt](/api/index/functions/mmtopt/) * [parseTtf](/api/index/functions/parsettf/) * [pt](/api/index/functions/pt/) * [pxToPt](/api/index/functions/pxtopt/) * [readDocx](/api/index/functions/readdocx/) * [readOs2FsType](/api/index/functions/reados2fstype/) * [readXlsx](/api/index/functions/readxlsx/) * [remoteFontProvider](/api/index/functions/remotefontprovider/) * [renderStyledPdf](/api/index/functions/renderstyledpdf/) * [resolveFamilyKey](/api/index/functions/resolvefamilykey/) * [signPdf](/api/index/functions/signpdf/) * [splitPatternBundle](/api/index/functions/splitpatternbundle/) * [subsetTtf](/api/index/functions/subsetttf/) * [twipsToPt](/api/index/functions/twipstopt/) * [writeDocx](/api/index/functions/writedocx/) * [writeHtml](/api/index/functions/writehtml/) * [writeMarkdown](/api/index/functions/writemarkdown/) * [writeSvg](/api/index/functions/writesvg/) # ConversionLossError Defined in: [src/core/ir/loss.ts:46](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L46) Thrown by strict-mode conversions on the first recorded loss. ## Extends [Section titled “Extends”](#extends) * `Error` ## Constructors [Section titled “Constructors”](#constructors) ### Constructor [Section titled “Constructor”](#constructor) > **new ConversionLossError**(`loss`): `ConversionLossError` Defined in: [src/core/ir/loss.ts:48](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L48) #### Parameters [Section titled “Parameters”](#parameters) ##### loss [Section titled “loss”](#loss) [`Loss`](/api/index/interfaces/loss/) The first loss that tripped strict mode (retained on the error). #### Returns [Section titled “Returns”](#returns) `ConversionLossError` #### Overrides [Section titled “Overrides”](#overrides) `Error.constructor` ## Properties [Section titled “Properties”](#properties) ### cause? [Section titled “cause?”](#cause) > `optional` **cause?**: `unknown` Defined in: docs/node\_modules/typescript/lib/lib.es2022.error.d.ts:24 #### Inherited from [Section titled “Inherited from”](#inherited-from) `Error.cause` *** ### loss [Section titled “loss”](#loss-1) > `readonly` **loss**: [`Loss`](/api/index/interfaces/loss/) Defined in: [src/core/ir/loss.ts:48](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L48) The first loss that tripped strict mode (retained on the error). *** ### message [Section titled “message”](#message) > **message**: `string` Defined in: docs/node\_modules/typescript/lib/lib.es5.d.ts:1075 #### Inherited from [Section titled “Inherited from”](#inherited-from-1) `Error.message` *** ### name [Section titled “name”](#name) > **name**: `string` Defined in: docs/node\_modules/typescript/lib/lib.es5.d.ts:1074 #### Inherited from [Section titled “Inherited from”](#inherited-from-2) `Error.name` *** ### stack? [Section titled “stack?”](#stack) > `optional` **stack?**: `string` Defined in: docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 #### Inherited from [Section titled “Inherited from”](#inherited-from-3) `Error.stack` # FontRegistry Defined in: [src/core/font/font-registry.ts:54](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L54) A registry of parsed font variants. The renderer resolves a `(bold, italic)` request to the closest available face via pickVariant, degrading through `bold → italic → regular` when an exact match is missing. ## Methods [Section titled “Methods”](#methods) ### entries() [Section titled “entries()”](#entries) > **entries**(): `IterableIterator`<\[[`FontVariant`](/api/index/type-aliases/fontvariant/), [`ParsedTtf`](/api/index/interfaces/parsedttf/)]> Defined in: [src/core/font/font-registry.ts:88](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L88) Iterate the `[variant, parsed font]` pairs the registry holds. #### Returns [Section titled “Returns”](#returns) `IterableIterator`<\[[`FontVariant`](/api/index/type-aliases/fontvariant/), [`ParsedTtf`](/api/index/interfaces/parsedttf/)]> *** ### hasVariant() [Section titled “hasVariant()”](#hasvariant) > **hasVariant**(`v`): `boolean` Defined in: [src/core/font/font-registry.ts:93](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L93) Whether a given variant is present. #### Parameters [Section titled “Parameters”](#parameters) ##### v [Section titled “v”](#v) [`FontVariant`](/api/index/type-aliases/fontvariant/) #### Returns [Section titled “Returns”](#returns-1) `boolean` *** ### resolveByStyle() [Section titled “resolveByStyle()”](#resolvebystyle) > **resolveByStyle**(`bold`, `italic`): `object` Defined in: [src/core/font/font-registry.ts:80](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L80) Resolve a style request to the closest available face. #### Parameters [Section titled “Parameters”](#parameters-1) ##### bold [Section titled “bold”](#bold) `boolean` Whether bold was requested. ##### italic [Section titled “italic”](#italic) `boolean` Whether italic was requested. #### Returns [Section titled “Returns”](#returns-2) `object` The chosen variant and its parsed font. ##### parsed [Section titled “parsed”](#parsed) > **parsed**: [`ParsedTtf`](/api/index/interfaces/parsedttf/) ##### variant [Section titled “variant”](#variant) > **variant**: [`FontVariant`](/api/index/type-aliases/fontvariant/) #### Throws [Section titled “Throws”](#throws) Error when the registry has no usable (regular) font. *** ### fromBytes() [Section titled “fromBytes()”](#frombytes) > `static` **fromBytes**(`input`): `FontRegistry` Defined in: [src/core/font/font-registry.ts:63](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L63) Parse a set of font bytes into a registry. #### Parameters [Section titled “Parameters”](#parameters-2) ##### input [Section titled “input”](#input) [`FontBytesByVariant`](/api/index/interfaces/fontbytesbyvariant/) The bytes per variant (`regular` required). #### Returns [Section titled “Returns”](#returns-3) `FontRegistry` A registry holding the parsed faces. # Ream Defined in: [src/core/converter/ream.ts:192](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L192) The object face of the library: parse a document once into the format-neutral [FlowDoc](/api/index/interfaces/flowdoc/) interlayer, then convert it to any number of targets without re-reading the source. ```ts const doc = Ream.parse(bytes); // sniff → reader → FlowDoc const pdf = await doc.convert('pdf', { fonts }); const svg = await doc.convert('svg', { fonts }); ``` It is a thin GRASP Controller: readers parse, `flowRenderOptions` projects the FlowDoc, and layout/emit plus the writers do the work. As a deliberate composition root, importing it pulls in every format module — prefer the per-format functions when bundle size matters more than convenience. The source bytes are retained only for the two source-touching features: docx substitute-font auto-detection and PDF/A-3 `embedSource`. ## Properties [Section titled “Properties”](#properties) ### flow [Section titled “flow”](#flow) > `readonly` **flow**: [`FlowDoc`](/api/index/interfaces/flowdoc/) Defined in: [src/core/converter/ream.ts:206](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L206) The interlayer — the parsed, format-neutral document tree. *** ### losses [Section titled “losses”](#losses) > `readonly` **losses**: readonly [`Loss`](/api/index/interfaces/loss/)\[] Defined in: [src/core/converter/ream.ts:208](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L208) Losses recorded while reading the source. *** ### sheet [Section titled “sheet”](#sheet) > `readonly` **sheet**: `SheetDoc` | `undefined` Defined in: [src/core/converter/ream.ts:207](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L207) The native SpreadsheetML tree when the source is a spreadsheet (xlsx); [Ream.flow](/api/index/classes/ream/#flow) is its projection through the print model. ## Accessors [Section titled “Accessors”](#accessors) ### format [Section titled “format”](#format) #### Get Signature [Section titled “Get Signature”](#get-signature) > **get** **format**(): `string` Defined in: [src/core/converter/ream.ts:267](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L267) The source format id (`'docx'`, `'xlsx'`, …). ##### Returns [Section titled “Returns”](#returns) `string` ## Methods [Section titled “Methods”](#methods) ### convert() [Section titled “convert()”](#convert) > **convert**(`to`, `options?`): `Promise`<`Uint8Array`<`ArrayBufferLike`>> Defined in: [src/core/converter/ream.ts:279](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L279) Convert the parsed document to `to` and return just the output bytes. A thin wrapper over [Ream.convertWithReport](/api/index/classes/ream/#convertwithreport) that drops the loss report. #### Parameters [Section titled “Parameters”](#parameters) ##### to [Section titled “to”](#to) [`ReamTarget`](/api/index/type-aliases/reamtarget/) The target format. ##### options? [Section titled “options?”](#options) [`ReamConvertOptions`](/api/index/interfaces/reamconvertoptions/) = `{}` Font resolution and target-specific options. #### Returns [Section titled “Returns”](#returns-1) `Promise`<`Uint8Array`<`ArrayBufferLike`>> The encoded output bytes. *** ### convertWithReport() [Section titled “convertWithReport()”](#convertwithreport) > **convertWithReport**(`to`, `options?`): `Promise`<[`ConvertResult`](/api/index/interfaces/convertresult/)> Defined in: [src/core/converter/ream.ts:296](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L296) Convert the parsed document to `to`, returning the output bytes together with the accumulated [Loss](/api/index/interfaces/loss/) report (read-time losses plus any added while writing). HTML, Markdown, DOCX and XLSX are produced straight from the interlayer — no layout, no fonts, zero I/O; SVG and PDF run the layout engine and resolve fonts first. #### Parameters [Section titled “Parameters”](#parameters-1) ##### to [Section titled “to”](#to-1) [`ReamTarget`](/api/index/type-aliases/reamtarget/) The target format. `'xlsx'` requires a spreadsheet source. ##### options? [Section titled “options?”](#options-1) [`ReamConvertOptions`](/api/index/interfaces/reamconvertoptions/) = `{}` Font resolution and target-specific options. #### Returns [Section titled “Returns”](#returns-2) `Promise`<[`ConvertResult`](/api/index/interfaces/convertresult/)> The encoded bytes and the loss report. #### Throws [Section titled “Throws”](#throws) Error when `to` is `'xlsx'` but the source has no grid. #### Throws [Section titled “Throws”](#throws-1) ConversionLossError when `options.strict` is set and any loss was recorded. *** ### parse() [Section titled “parse()”](#parse) > `static` **parse**(`bytes`, `options?`): `Ream` Defined in: [src/core/converter/ream.ts:229](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L229) Sniff the format and parse the bytes once into the [FlowDoc](/api/index/interfaces/flowdoc/) interlayer. #### Parameters [Section titled “Parameters”](#parameters-2) ##### bytes [Section titled “bytes”](#bytes) `Uint8Array` The raw document bytes; the format is detected by sniffing. ##### options? [Section titled “options?”](#options-2) [`ReamParseOptions`](/api/index/interfaces/reamparseoptions/) = `{}` Optional reader-registry override and/or password for an encrypted source. #### Returns [Section titled “Returns”](#returns-3) `Ream` A reusable [Ream](/api/index/classes/ream/) instance. #### Throws [Section titled “Throws”](#throws-2) Error when no registered reader recognizes the bytes. #### Throws [Section titled “Throws”](#throws-3) WrongPasswordError when the bytes are encrypted — an Office package or a PDF — and the password does not open them, or none was given where one is needed. # ResourceStore Defined in: [src/core/ir/resources.ts:48](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L48) A content-addressed store for the IR’s binary payloads (images, fonts). IR trees stay pure JSON and reference bytes by [ResourceId](/api/index/type-aliases/resourceid/); ids derive from the bytes (a synchronous 64-bit FNV-1a), so identical payloads deduplicate for free and equal documents get equal ids — which keeps IR-level diffs and the byte-identical gates meaningful. ## Constructors [Section titled “Constructors”](#constructors) ### Constructor [Section titled “Constructor”](#constructor) > **new ResourceStore**(): `ResourceStore` #### Returns [Section titled “Returns”](#returns) `ResourceStore` ## Accessors [Section titled “Accessors”](#accessors) ### size [Section titled “size”](#size) #### Get Signature [Section titled “Get Signature”](#get-signature) > **get** **size**(): `number` Defined in: [src/core/ir/resources.ts:85](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L85) The number of distinct resources stored. ##### Returns [Section titled “Returns”](#returns-1) `number` ## Methods [Section titled “Methods”](#methods) ### get() [Section titled “get()”](#get) > **get**(`id`): `Uint8Array`<`ArrayBufferLike`> | `undefined` Defined in: [src/core/ir/resources.ts:70](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L70) Look up the bytes for an id, or `undefined` when absent. #### Parameters [Section titled “Parameters”](#parameters) ##### id [Section titled “id”](#id) [`ResourceId`](/api/index/type-aliases/resourceid/) #### Returns [Section titled “Returns”](#returns-2) `Uint8Array`<`ArrayBufferLike`> | `undefined` *** ### has() [Section titled “has()”](#has) > **has**(`id`): `boolean` Defined in: [src/core/ir/resources.ts:75](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L75) Whether an id is present in the store. #### Parameters [Section titled “Parameters”](#parameters-1) ##### id [Section titled “id”](#id-1) [`ResourceId`](/api/index/type-aliases/resourceid/) #### Returns [Section titled “Returns”](#returns-3) `boolean` *** ### ids() [Section titled “ids()”](#ids) > **ids**(): readonly [`ResourceId`](/api/index/type-aliases/resourceid/)\[] Defined in: [src/core/ir/resources.ts:80](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L80) All stored ids, in insertion order. #### Returns [Section titled “Returns”](#returns-4) readonly [`ResourceId`](/api/index/type-aliases/resourceid/)\[] *** ### put() [Section titled “put()”](#put) > **put**(`bytes`): [`ResourceId`](/api/index/type-aliases/resourceid/) Defined in: [src/core/ir/resources.ts:56](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L56) Store bytes and return their content-addressed id. Re-putting identical bytes returns the existing id (deduplication); a hash collision with different bytes probes deterministic `~n` suffixes. #### Parameters [Section titled “Parameters”](#parameters-2) ##### bytes [Section titled “bytes”](#bytes) `Uint8Array` #### Returns [Section titled “Returns”](#returns-5) [`ResourceId`](/api/index/type-aliases/resourceid/) # WrongPasswordError Defined in: [src/core/crypto/password-error.ts:9](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/crypto/password-error.ts#L9) Thrown when the bytes are encrypted and the password does not open them — the wrong one, or none where one is needed. ## Extends [Section titled “Extends”](#extends) * `Error` ## Constructors [Section titled “Constructors”](#constructors) ### Constructor [Section titled “Constructor”](#constructor) > **new WrongPasswordError**(`message?`): `WrongPasswordError` Defined in: [src/core/crypto/password-error.ts:11](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/crypto/password-error.ts#L11) #### Parameters [Section titled “Parameters”](#parameters) ##### message? [Section titled “message?”](#message) `string` = `'Wrong password for this document'` The message to carry; the default states the failure. #### Returns [Section titled “Returns”](#returns) `WrongPasswordError` #### Overrides [Section titled “Overrides”](#overrides) `Error.constructor` ## Properties [Section titled “Properties”](#properties) ### cause? [Section titled “cause?”](#cause) > `optional` **cause?**: `unknown` Defined in: docs/node\_modules/typescript/lib/lib.es2022.error.d.ts:24 #### Inherited from [Section titled “Inherited from”](#inherited-from) `Error.cause` *** ### message [Section titled “message”](#message-1) > **message**: `string` Defined in: docs/node\_modules/typescript/lib/lib.es5.d.ts:1075 #### Inherited from [Section titled “Inherited from”](#inherited-from-1) `Error.message` *** ### name [Section titled “name”](#name) > **name**: `string` Defined in: docs/node\_modules/typescript/lib/lib.es5.d.ts:1074 #### Inherited from [Section titled “Inherited from”](#inherited-from-2) `Error.name` *** ### stack? [Section titled “stack?”](#stack) > `optional` **stack?**: `string` Defined in: docs/node\_modules/typescript/lib/lib.es5.d.ts:1076 #### Inherited from [Section titled “Inherited from”](#inherited-from-3) `Error.stack` # callerFontProvider > **callerFontProvider**(`fonts`): [`FontProvider`](/api/index/interfaces/fontprovider/) Defined in: [src/core/fonts/provider.ts:95](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L95) Caller-supplied bytes — answers every request, whatever family or writing system it names (the caller chose these fonts deliberately), so no provider after it in a chain is ever asked. Falls back through bold/italic → regular like the registry. ## Parameters [Section titled “Parameters”](#parameters) ### fonts [Section titled “fonts”](#fonts) [`FontBytesByVariant`](/api/index/interfaces/fontbytesbyvariant/) ## Returns [Section titled “Returns”](#returns) [`FontProvider`](/api/index/interfaces/fontprovider/) # chainProviders > **chainProviders**(`providers`): [`FontProvider`](/api/index/interfaces/fontprovider/) Defined in: [src/core/fonts/provider.ts:69](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L69) First byte-level answer wins; ‘none’ falls through to the next provider. ## Parameters [Section titled “Parameters”](#parameters) ### providers [Section titled “providers”](#providers) readonly [`FontProvider`](/api/index/interfaces/fontprovider/)\[] ## Returns [Section titled “Returns”](#returns) [`FontProvider`](/api/index/interfaces/fontprovider/) # createConverter > **createConverter**(`opts?`): [`Converter`](/api/index/interfaces/converter/) Defined in: [src/core/converter/facade.ts:157](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L157) Build a [Converter](/api/index/interfaces/converter/) over a reader registry. The async boundary (font fetching) lives here; readers and writers stay synchronous. ## Parameters [Section titled “Parameters”](#parameters) ### opts? [Section titled “opts?”](#opts) [`CreateConverterOptions`](/api/index/interfaces/createconverteroptions/) = `{}` Optional reader-registry override. ## Returns [Section titled “Returns”](#returns) [`Converter`](/api/index/interfaces/converter/) A converter exposing `readers`, `detect` and `convert`. # createHyphenator > **createHyphenator**(`patterns`, `options?`): [`Hyphenator`](/api/index/interfaces/hyphenator/) Defined in: [src/core/hyphenation/liang.ts:89](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L89) Build a Liang pattern-based [Hyphenator](/api/index/interfaces/hyphenator/) from a pattern list. ## Parameters [Section titled “Parameters”](#parameters) ### patterns [Section titled “patterns”](#patterns) readonly `string`\[] The TeX-style hyphenation patterns (e.g. `"hy3ph"`). ### options? [Section titled “options?”](#options) [`HyphenatorOptions`](/api/index/interfaces/hyphenatoroptions/) = `{}` Left/right minimums and explicit exceptions. ## Returns [Section titled “Returns”](#returns) [`Hyphenator`](/api/index/interfaces/hyphenator/) The hyphenator. # createLanguageHyphenator > **createLanguageHyphenator**(`language`, `bundle`): [`Hyphenator`](/api/index/interfaces/hyphenator/) Defined in: [src/core/hyphenation/index.ts:71](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/index.ts#L71) Synchronous variant of [getHyphenator](/api/index/functions/gethyphenator/): build a [Hyphenator](/api/index/interfaces/hyphenator/) from already-loaded pattern strings (useful when patterns are bundled or fetched out-of-band). ## Parameters [Section titled “Parameters”](#parameters) ### language [Section titled “language”](#language) [`SupportedLanguage`](/api/index/type-aliases/supportedlanguage/) The language (selects the left/right minimums). ### bundle [Section titled “bundle”](#bundle) The pattern and optional exception strings. #### exceptions? [Section titled “exceptions?”](#exceptions) `string` #### patterns [Section titled “patterns”](#patterns) `string` ## Returns [Section titled “Returns”](#returns) [`Hyphenator`](/api/index/interfaces/hyphenator/) The hyphenator. # eighthPtToPt > **eighthPtToPt**(`eighthPt`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L45) Eighths of a point (OOXML border widths, `w:sz` on borders): 8 = 1 pt. ## Parameters [Section titled “Parameters”](#parameters) ### eighthPt [Section titled “eighthPt”](#eighthpt) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # embeddedDocFontProvider > **embeddedDocFontProvider**(`embedded`): [`FontProvider`](/api/index/interfaces/fontprovider/) Defined in: [src/core/fonts/provider.ts:116](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L116) Fonts embedded in the source document itself (docx fontTable), keyed by the normalized family name — an exact-name match, never a substitution. ## Parameters [Section titled “Parameters”](#parameters) ### embedded [Section titled “embedded”](#embedded) `ReadonlyMap`<`string`, [`FontRegistry`](/api/index/classes/fontregistry/)> ## Returns [Section titled “Returns”](#returns) [`FontProvider`](/api/index/interfaces/fontprovider/) # emuToPt > **emuToPt**(`emu`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:50](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L50) English Metric Units (DrawingML): 914400 EMU = 1 inch = 72 pt → 12700 EMU = 1 pt. ## Parameters [Section titled “Parameters”](#parameters) ### emu [Section titled “emu”](#emu) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # fetchFontSet > **fetchFontSet**(`options?`): `Promise`<[`FontBytesByVariant`](/api/index/interfaces/fontbytesbyvariant/)> Defined in: [src/core/fonts/remote-fonts.ts:645](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L645) Download a full variant set (regular required; bold/italic/bold-italic best-effort) for the open family that best matches the requested name. ## Parameters [Section titled “Parameters”](#parameters) ### options? [Section titled “options?”](#options) [`FetchFontSetOptions`](/api/index/interfaces/fetchfontsetoptions/) = `{}` The family to substitute and an optional fetch override. ## Returns [Section titled “Returns”](#returns) `Promise`<[`FontBytesByVariant`](/api/index/interfaces/fontbytesbyvariant/)> The downloaded font bytes per variant. ## Throws [Section titled “Throws”](#throws) Error when the required regular face cannot be downloaded. # formatLoss > **formatLoss**(`loss`): `string` Defined in: [src/core/ir/loss.ts:40](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L40) Format a [Loss](/api/index/interfaces/loss/) as one human-readable line, e.g. `[degraded] charts at sheet "Q3": gradient flattened`. ## Parameters [Section titled “Parameters”](#parameters) ### loss [Section titled “loss”](#loss) [`Loss`](/api/index/interfaces/loss/) The loss to format. ## Returns [Section titled “Returns”](#returns) `string` The one-line description. # getHyphenator > **getHyphenator**(`language`): `Promise`<[`Hyphenator`](/api/index/interfaces/hyphenator/)> Defined in: [src/core/hyphenation/index.ts:48](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/index.ts#L48) Lazily build (and cache) a language’s [Hyphenator](/api/index/interfaces/hyphenator/). The patterns module is dynamically imported the first time a language is requested, so callers that never hyphenate pay no cold-start cost. ## Parameters [Section titled “Parameters”](#parameters) ### language [Section titled “language”](#language) [`SupportedLanguage`](/api/index/type-aliases/supportedlanguage/) The language to load. ## Returns [Section titled “Returns”](#returns) `Promise`<[`Hyphenator`](/api/index/interfaces/hyphenator/)> The cached hyphenator. # halfPtToPt > **halfPtToPt**(`halfPt`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:40](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L40) Half-points (OOXML font sizes, `w:sz`): 2 half-points = 1 pt. ## Parameters [Section titled “Parameters”](#parameters) ### halfPt [Section titled “halfPt”](#halfpt) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # inchToPt > **inchToPt**(`inches`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:60](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L60) Inches: 1 inch = 72 pt. ## Parameters [Section titled “Parameters”](#parameters) ### inches [Section titled “inches”](#inches) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # isEmbeddingRestricted > **isEmbeddingRestricted**(`fsType`): `boolean` Defined in: [src/core/fonts/provider.ts:248](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L248) True when the fsType licensing nibble forbids embedding entirely. ## Parameters [Section titled “Parameters”](#parameters) ### fsType [Section titled “fsType”](#fstype) `number` | `undefined` ## Returns [Section titled “Returns”](#returns) `boolean` # isEncryptedPackage > **isEncryptedPackage**(`bytes`): `boolean` Defined in: [src/core/crypto/offcrypto.ts:31](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/crypto/offcrypto.ts#L31) Whether the bytes are an OOXML package encrypted per ECMA-376 §2.3. ## Parameters [Section titled “Parameters”](#parameters) ### bytes [Section titled “bytes”](#bytes) `Uint8Array` ## Returns [Section titled “Returns”](#returns) `boolean` # layoutStyledDocument > **layoutStyledDocument**(`documentBody`, `documentOptions`): `LaidOutPdfDocument` Defined in: [src/layout/styled-layout.ts:1462](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L1462) Layout phase (the FlowDoc→PageDoc transform of ir-design §7): body → positioned pages (PageItems), font/image resources, logical structure. Drives the whole pass — numbering and note numbering, per-section geometry, per-block layout, the footnote/endnote/comment tails, then pagination — and returns the LaidOutPdfDocument (the PageDoc plus its PDF companion). ## Parameters [Section titled “Parameters”](#parameters) ### documentBody [Section titled “documentBody”](#documentbody) readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] The document body the section model partitions. ### documentOptions [Section titled “documentOptions”](#documentoptions) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/) The resolved fonts, styles, section model, and PDF-output toggles. ## Returns [Section titled “Returns”](#returns) `LaidOutPdfDocument` The positioned pages plus the PDF-only PdfLayoutAux companion. # localFontProvider > **localFontProvider**(): [`FontProvider`](/api/index/interfaces/fontprovider/) Defined in: [src/core/fonts/provider.ts:263](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L263) System fonts via the Local Font Access API (Chromium 103+, permission prompt). OPT-IN by design: never wired in implicitly. Answers only a request that names a family, with the installed face of that exact name. Returns ‘none’ when the API is unavailable (Node, Safari, Firefox), the request names no family (the document default, a writing system), the family is not installed, or the face’s OS/2 fsType marks embedding as restricted — embedding a restricted font into a PDF would violate its license, so the chain falls through to a substitute instead. ## Returns [Section titled “Returns”](#returns) [`FontProvider`](/api/index/interfaces/fontprovider/) # mmToPt > **mmToPt**(`mm`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:65](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L65) Millimetres: 25.4 mm = 1 inch = 72 pt. ## Parameters [Section titled “Parameters”](#parameters) ### mm [Section titled “mm”](#mm) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # parseTtf > **parseTtf**(`raw`): [`ParsedTtf`](/api/index/interfaces/parsedttf/) Defined in: [src/core/font/ttf-parser.ts:109](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L109) Parse TrueType / OpenType font bytes into a [ParsedTtf](/api/index/interfaces/parsedttf/). ## Parameters [Section titled “Parameters”](#parameters) ### raw [Section titled “raw”](#raw) `Uint8Array` The font bytes (sfnt: TrueType `0x00010000` or `'true'`, or OpenType-CFF `OTTO`). ## Returns [Section titled “Returns”](#returns) [`ParsedTtf`](/api/index/interfaces/parsedttf/) The parsed metrics, mappings and layout tables. ## Throws [Section titled “Throws”](#throws) Error when the bytes are not a TrueType or OpenType font. # pt > **pt**(`value`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:22](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L22) Brand a raw number as points. The number must already BE points. ## Parameters [Section titled “Parameters”](#parameters) ### value [Section titled “value”](#value) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # pxToPt > **pxToPt**(`px`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:55](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L55) CSS reference pixels: 96 px = 1 inch = 72 pt. ## Parameters [Section titled “Parameters”](#parameters) ### px [Section titled “px”](#px) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # readDocx > **readDocx**(`docx`): [`ReadResult`](/api/index/interfaces/readresult/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> Defined in: [src/word/docx-reader.ts:100](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-reader.ts#L100) Read a `.docx` package into the [FlowDoc](/api/index/interfaces/flowdoc/) interlayer (ir-design §7): the document-derived half of what the converter used to do inline. Parses the main document, styles, numbering, notes, comments, headers/footers, charts, embedded fonts and core properties, runs the body through the stage-6 FlowDoc transforms (list markers then the style cascade), and returns the tree plus any graceful-degradation losses. Caller-supplied conversion options (fonts, PDF/A, signature) stay with the converter/facade. ## Parameters [Section titled “Parameters”](#parameters) ### docx [Section titled “docx”](#docx) `Uint8Array` The raw `.docx` (OPC ZIP) bytes. ## Returns [Section titled “Returns”](#returns) [`ReadResult`](/api/index/interfaces/readresult/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> The parsed [FlowDoc](/api/index/interfaces/flowdoc/) and the losses recorded while reading. # readOs2FsType > **readOs2FsType**(`bytes`): `number` | `undefined` Defined in: [src/core/fonts/provider.ts:230](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L230) OS/2 fsType embedding permissions (OpenType §OS/2). Returns undefined when the table is absent/corrupt. The licensing nibble: 0 = installable, 2 = RESTRICTED (no embedding), 4 = preview & print, 8 = editable. ## Parameters [Section titled “Parameters”](#parameters) ### bytes [Section titled “bytes”](#bytes) `Uint8Array` ## Returns [Section titled “Returns”](#returns) `number` | `undefined` # readXlsx > **readXlsx**(`xlsx`, `options?`): [`ReadResult`](/api/index/interfaces/readresult/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> Defined in: [src/excel/xlsx-reader.ts:135](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/excel/xlsx-reader.ts#L135) Read a `.xlsx` and project it to a [FlowDoc](/api/index/interfaces/flowdoc/) in one step: readXlsxToSheetDoc then projectSheetDoc. Parsing itself is lossless — SpreadsheetML maps cleanly onto the sheet IR. The losses come from the projection: the print model’s defence-in-depth caps (grid size, per-sheet text budget, sparkline range) clip pathological sheets, and each clip is reported rather than applied in silence. ## Parameters [Section titled “Parameters”](#parameters) ### xlsx [Section titled “xlsx”](#xlsx) `Uint8Array` The `.xlsx` (OPC ZIP) bytes. ### options? [Section titled “options?”](#options) `ProjectSheetOptions` = `{}` Projection knobs (the W9 reference date). ## Returns [Section titled “Returns”](#returns) [`ReadResult`](/api/index/interfaces/readresult/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> The flow document plus whatever the projection had to clip. # remoteFontProvider > **remoteFontProvider**(`options?`): [`FontProvider`](/api/index/interfaces/fontprovider/) Defined in: [src/core/fonts/provider.ts:160](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L160) Open CDN substitutes (Arimo / Tinos / Cousine / Carlito / Caladea — the LibreOffice metric-compatible mapping), and the Noto face of a writing system they cannot draw. Always answers a family request; the chain reports it as a substitution. A family that is a curated key itself (`'notoserif'`) is that substitute. A `script` request is answered with that writing system’s regular face, or [NO\_FONT](/api/index/variables/no_font/) when it cannot be downloaded. A family’s set is shared by every request for it, those made while the download is in flight included, and a whole set is downloaded once per provider. A set whose regular face cannot be downloaded rejects `resolve` with [fetchFontSet](/api/index/functions/fetchfontset/)’s error rather than answering [NO\_FONT](/api/index/variables/no_font/): this is the chain’s last resort, and a chain that answers none sends the conversion to the auto-download path, which records no substitution. The failed set is not kept, so the next request asks the network again. Nor is a set kept that came without a bold or italic face. The requests that waited on it fall back to the faces it has, and the next request assembles the set anew: a face the network lost is asked for again, and one the CDN answered with an HTTP error is not, since the download cache beneath [fetchFontSet](/api/index/functions/fetchfontset/) remembers it as missing. ## Parameters [Section titled “Parameters”](#parameters) ### options? [Section titled “options?”](#options) An injectable `fetch` (defaults to the global one). #### fetch? [Section titled “fetch?”](#fetch) [`FetchLike`](/api/index/type-aliases/fetchlike/) ## Returns [Section titled “Returns”](#returns) [`FontProvider`](/api/index/interfaces/fontprovider/) The `'remote'` provider. # renderStyledPdf > **renderStyledPdf**(`body`, `options`): `Uint8Array` Defined in: [src/pdf/styled-page-renderer.ts:19](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/styled-page-renderer.ts#L19) Render a body to a PDF: lay it out, then emit it over a fresh PdfDocument. The byte-stable synchronous path. ## Parameters [Section titled “Parameters”](#parameters) ### body [Section titled “body”](#body) readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] ### options [Section titled “options”](#options) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/) ## Returns [Section titled “Returns”](#returns) `Uint8Array` ## Throws [Section titled “Throws”](#throws) Error when `options.encrypt` is set — encryption requires the async renderStyledPdfEncrypted path (WebCrypto). # resolveFamilyKey > **resolveFamilyKey**(`name`): [`FamilyKey`](/api/index/type-aliases/familykey/) Defined in: [src/core/fonts/remote-fonts.ts:564](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L564) The curated substitute for a family name — resolveFamilyStyle without the face it also carries. ## Parameters [Section titled “Parameters”](#parameters) ### name [Section titled “name”](#name) `string` | `undefined` The referenced family name (case-insensitive); empty ⇒ Arimo. ## Returns [Section titled “Returns”](#returns) [`FamilyKey`](/api/index/type-aliases/familykey/) The chosen [FamilyKey](/api/index/type-aliases/familykey/). # signPdf > **signPdf**(`pdf`, `cred`): `Promise`<`Uint8Array`<`ArrayBufferLike`>> Defined in: [src/pdf/signature.ts:179](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L179) Sign a PDF that already carries a signature placeholder (from addSignaturePlaceholder). Computes the real `/ByteRange`, hashes the covered bytes (SHA-256), builds the detached PKCS#7/CMS, and writes it into the reserved `/Contents` hole — leaving every other byte untouched. ## Parameters [Section titled “Parameters”](#parameters) ### pdf [Section titled “pdf”](#pdf) `Uint8Array` The placeholder-bearing PDF bytes. ### cred [Section titled “cred”](#cred) [`SignerCredentials`](/api/index/interfaces/signercredentials/) The signer’s certificate, key and algorithm. ## Returns [Section titled “Returns”](#returns) `Promise`<`Uint8Array`<`ArrayBufferLike`>> A new byte array with the real ByteRange and signature spliced in. ## Throws [Section titled “Throws”](#throws) Error when no placeholder is found, it is malformed, WebCrypto is unavailable, or the signature exceeds the reserved `/Contents` size. # splitPatternBundle > **splitPatternBundle**(`bundle`): `string`\[] Defined in: [src/core/hyphenation/liang.ts:156](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L156) Split a TeX-style pattern bundle (a whitespace-separated string) into the pattern array [createHyphenator](/api/index/functions/createhyphenator/) expects. ## Parameters [Section titled “Parameters”](#parameters) ### bundle [Section titled “bundle”](#bundle) `string` The whitespace-separated patterns. ## Returns [Section titled “Returns”](#returns) `string`\[] The pattern array (empty entries removed). # subsetTtf > **subsetTtf**(`parsed`, `usedGids`): `Uint8Array` Defined in: [src/core/font/ttf-subset.ts:65](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-subset.ts#L65) Subset a TrueType font to the glyphs in `usedGids` (plus their composite components and GID 0). All tables are kept intact so the CIDFontType2 `/CIDToGIDMap /Identity` contract holds; only `glyf`/`loca` are rebuilt, with unused glyphs zero-length. ## Parameters [Section titled “Parameters”](#parameters) ### parsed [Section titled “parsed”](#parsed) [`ParsedTtf`](/api/index/interfaces/parsedttf/) The parsed source font (must have `glyf` + `loca`). ### usedGids [Section titled “usedGids”](#usedgids) `Iterable`<`number`> The glyph ids actually used. ## Returns [Section titled “Returns”](#returns) `Uint8Array` The subset font bytes. ## Throws [Section titled “Throws”](#throws) Error when the font has no `glyf`/`loca` (e.g. a CFF/OTF font). # twipsToPt > **twipsToPt**(`twips`): [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/units.ts:35](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L35) ## Parameters [Section titled “Parameters”](#parameters) ### twips [Section titled “twips”](#twips) `number` ## Returns [Section titled “Returns”](#returns) [`Pt`](/api/index/type-aliases/pt/) # writeDocx > **writeDocx**(`flow`): [`WriteResult`](/api/index/interfaces/writeresult/) Defined in: [src/word/docx-writer.ts:307](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-writer.ts#L307) Serialize a [FlowDoc](/api/index/interfaces/flowdoc/) to a WordprocessingML package (E-DOCX) — the inverse of the docx reader. A flow medium with zero layout and zero I/O: the body’s resolved properties are written as direct (denormalized) formatting, so the round-trip is semantic, not byte-for-byte. Emits the main document plus numbering, footnotes/endnotes, comments (+ commentsExtended), per-section headers/footers, charts and media parts; anything not yet serialized is reported as a [Loss](/api/index/interfaces/loss/). ## Parameters [Section titled “Parameters”](#parameters) ### flow [Section titled “flow”](#flow) [`FlowDoc`](/api/index/interfaces/flowdoc/) The interlayer to write back. ## Returns [Section titled “Returns”](#returns) [`WriteResult`](/api/index/interfaces/writeresult/) The encoded `.docx` bytes and the loss report. # writeHtml > **writeHtml**(`source`): [`WriteResult`](/api/index/interfaces/writeresult/) Defined in: [src/html/html-writer.ts:117](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/html/html-writer.ts#L117) Render a [FlowDoc](/api/index/interfaces/flowdoc/) to a self-contained HTML document (ir-design §7). A flow medium: no pagination, no layout engine and no fonts to embed, so this is a pure, zero-I/O transform. `flow.body` already carries FINAL effective properties (the Stage-6 contract), so values map straight to CSS; every read still routes through the cascade resolver over the empty sheet, a memoized identity on reader output. Charts and shapes emit as inline SVG; deliberately out of scope (reported as losses): inline math and headers/footers (no fixed pages to band them onto). Page-break hints map to CSS `break-before`. ## Parameters [Section titled “Parameters”](#parameters) ### source [Section titled “source”](#source) [`FlowDoc`](/api/index/interfaces/flowdoc/) The format-neutral interlayer document tree. ## Returns [Section titled “Returns”](#returns) [`WriteResult`](/api/index/interfaces/writeresult/) The encoded HTML bytes plus the recorded [Loss](/api/index/interfaces/loss/) list. # writeMarkdown > **writeMarkdown**(`flow`, `options?`): [`WriteResult`](/api/index/interfaces/writeresult/) Defined in: [src/markdown/markdown-writer.ts:86](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/markdown/markdown-writer.ts#L86) Render a [FlowDoc](/api/index/interfaces/flowdoc/) to GitHub-Flavored Markdown (ir-design §7). A flow medium: no pagination, no layout engine and no fonts, so this is a pure, zero-I/O transform. Markdown says far less than the document model does — alignment, indents, colour, font metrics, tab stops and page geometry have no expression at all — so those are dropped and reported as [Loss](/api/index/interfaces/loss/) entries, deduplicated so one recurring omission reports once. ## Parameters [Section titled “Parameters”](#parameters) ### flow [Section titled “flow”](#flow) [`FlowDoc`](/api/index/interfaces/flowdoc/) The format-neutral interlayer document tree. ### options? [Section titled “options?”](#options) [`MarkdownWriteOptions`](/api/index/interfaces/markdownwriteoptions/) = `{}` Picture handling; see [MarkdownWriteOptions](/api/index/interfaces/markdownwriteoptions/). ## Returns [Section titled “Returns”](#returns) [`WriteResult`](/api/index/interfaces/writeresult/) The encoded Markdown bytes plus the recorded [Loss](/api/index/interfaces/loss/) list. # writeSvg > **writeSvg**(`laid`, `opts?`): [`WriteResult`](/api/index/interfaces/writeresult/) Defined in: [src/svg/svg-writer.ts:53](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/svg/svg-writer.ts#L53) Render a [LaidOutDocument](/api/index/interfaces/laidoutdocument/) to a single SVG preview (ir-design §7 / stage 6). Written purely against the PageDoc schema; knows nothing about OOXML or the PDF writer. PageItem coordinates are already top-left/y-down — SVG’s own frame — so they are emitted verbatim. Pages stack vertically in one ``, separated by [SvgWriteOptions.pageGap](/api/index/interfaces/svgwriteoptions/#pagegap), each on a white outlined rect so they read as pages. ## Parameters [Section titled “Parameters”](#parameters) ### laid [Section titled “laid”](#laid) [`LaidOutDocument`](/api/index/interfaces/laidoutdocument/) The laid-out, paginated document from the layout engine. ### opts? [Section titled “opts?”](#opts) [`SvgWriteOptions`](/api/index/interfaces/svgwriteoptions/) = `{}` Optional page-gap override. ## Returns [Section titled “Returns”](#returns) [`WriteResult`](/api/index/interfaces/writeresult/) The encoded SVG bytes plus the recorded [Loss](/api/index/interfaces/loss/) list. # BorderItem Defined in: [src/layout/page-doc.ts:486](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L486) One edge of a table-cell frame; `(x, y)` is the cell box’s top-left corner. ## Extends [Section titled “Extends”](#extends) * [`PageItemBase`](/api/index/interfaces/pageitembase/) ## Properties [Section titled “Properties”](#properties) ### artifact? [Section titled “artifact?”](#artifact) > `readonly` `optional` **artifact?**: `"pagination"` Defined in: [src/layout/page-doc.ts:430](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L430) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`artifact`](/api/index/interfaces/pageitembase/#artifact) *** ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/layout/page-doc.ts:399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L399) §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). #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`behind`](/api/index/interfaces/pageitembase/#behind) *** ### borderColorHex [Section titled “borderColorHex”](#bordercolorhex) > `readonly` **borderColorHex**: `string` Defined in: [src/layout/page-doc.ts:494](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L494) *** ### borderSizePt [Section titled “borderSizePt”](#bordersizept) > `readonly` **borderSizePt**: `number` Defined in: [src/layout/page-doc.ts:493](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L493) *** ### borderStyle? [Section titled “borderStyle?”](#borderstyle) > `readonly` `optional` **borderStyle?**: [`BorderStyle`](/api/core/document-model/type-aliases/borderstyle/) Defined in: [src/layout/page-doc.ts:500](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L500) §18.18.3 `ST_BorderStyle` — the rule’s PATTERN, when it is not solid. `dashed`/`dotted` are line patterns, not weights, and dropping them here painted 57423.xlsx’s dashed band as twelve continuous rules. *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:492](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L492) *** ### over? [Section titled “over?”](#over) > `readonly` `optional` **over?**: `boolean` Defined in: [src/layout/page-doc.ts:406](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L406) The item stands IN FRONT of the page’s text and covers it — a drawing floating over a spreadsheet’s cells. A page paints its text after its shapes, so such items are painted as a second layer, every pass again, once the first layer’s text is down. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`over`](/api/index/interfaces/pageitembase/#over) *** ### pictureId? [Section titled “pictureId?”](#pictureid) > `readonly` `optional` **pictureId?**: `number` Defined in: [src/layout/page-doc.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L424) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`pictureId`](/api/index/interfaces/pageitembase/#pictureid) *** ### side [Section titled “side”](#side) > `readonly` **side**: `"top"` | `"right"` | `"bottom"` | `"left"` Defined in: [src/layout/page-doc.ts:488](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L488) *** ### structId? [Section titled “structId?”](#structid) > `readonly` `optional` **structId?**: `number` Defined in: [src/layout/page-doc.ts:391](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L391) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`structId`](/api/index/interfaces/pageitembase/#structid) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"border"` Defined in: [src/layout/page-doc.ts:487](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L487) *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:491](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L491) *** ### window? [Section titled “window?”](#window) > `readonly` `optional` **window?**: `PageWindow` Defined in: [src/layout/page-doc.ts:414](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L414) The part of the page the item may paint, when it is cut off — a spreadsheet’s drawing printed in pieces, each piece seen only over the rows and columns of its own page (TableOverlay). Top-left frame, like the item itself. Items sharing a window paint together, in their own order, after the rest of their layer. #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`window`](/api/index/interfaces/pageitembase/#window) *** ### x [Section titled “x”](#x) > `readonly` **x**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:489](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L489) *** ### y [Section titled “y”](#y) > `readonly` **y**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:490](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L490) *** ### z? [Section titled “z?”](#z) > `readonly` `optional` **z?**: `number` Defined in: [src/layout/page-doc.ts:385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L385) §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. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`z`](/api/index/interfaces/pageitembase/#z) # Converter Defined in: [src/core/converter/facade.ts:124](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L124) A registry-driven converter: readers → layout → writers (ir-design §7). ## Properties [Section titled “Properties”](#properties) ### convert [Section titled “convert”](#convert) > **convert**: (`bytes`, `options?`) => `Promise`<[`ConvertResult`](/api/index/interfaces/convertresult/)> Defined in: [src/core/converter/facade.ts:130](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L130) Read the bytes and convert them to the requested target (default `'pdf'`). #### Parameters [Section titled “Parameters”](#parameters) ##### bytes [Section titled “bytes”](#bytes) `Uint8Array` ##### options? [Section titled “options?”](#options) [`ConvertOptions`](/api/index/interfaces/convertoptions/) #### Returns [Section titled “Returns”](#returns) `Promise`<[`ConvertResult`](/api/index/interfaces/convertresult/)> *** ### detect [Section titled “detect”](#detect) > **detect**: (`bytes`) => [`DocumentReader`](/api/index/interfaces/documentreader/)<`SourceDoc`> | `undefined` Defined in: [src/core/converter/facade.ts:128](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L128) Detect the input format by reader sniffing; undefined when unknown. #### Parameters [Section titled “Parameters”](#parameters-1) ##### bytes [Section titled “bytes”](#bytes-1) `Uint8Array` #### Returns [Section titled “Returns”](#returns-1) [`DocumentReader`](/api/index/interfaces/documentreader/)<`SourceDoc`> | `undefined` *** ### readers [Section titled “readers”](#readers) > `readonly` **readers**: readonly [`DocumentReader`](/api/index/interfaces/documentreader/)<`SourceDoc`>\[] Defined in: [src/core/converter/facade.ts:126](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L126) The registered readers, in sniffing order. # ConvertOptions Defined in: [src/core/converter/facade.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L45) Options for a [Converter.convert](/api/index/interfaces/converter/#convert) call (extends the docx PDF options). ## Extends [Section titled “Extends”](#extends) * `ConvertDocxOptions` ## Properties [Section titled “Properties”](#properties) ### attachments? [Section titled “attachments?”](#attachments) > `readonly` `optional` **attachments?**: readonly `AttachedFile`\[] Defined in: [src/layout/styled-layout.ts:503](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L503) Files to embed as associated files (catalog `/AF` + `/Names` `/EmbeddedFiles`). Only emitted for plain PDF and PDF/A-3 (PDF/A-1/2 forbid arbitrary embedded files); ignored for PDF/A-1/2. The docx/xlsx converters can embed the source document automatically via `embedSource`. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`attachments`](/api/index/interfaces/styledrenderoptions/#attachments) *** ### charts? [Section titled “charts?”](#charts) > `readonly` `optional` **charts?**: `ReadonlyMap`<`string`, [`Chart`](/api/core/document-model/interfaces/chart/)> Defined in: [src/layout/styled-layout.ts:407](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L407) Parsed charts keyed by relationship id (`ChartBlock.chartRelId`). Supplied by the converter, which resolves the chart parts from the package. #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`charts`](/api/index/interfaces/styledrenderoptions/#charts) *** ### commentAnnotations? [Section titled “commentAnnotations?”](#commentannotations) > `readonly` `optional` **commentAnnotations?**: `boolean` Defined in: [src/layout/styled-layout.ts:400](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L400) CM2b — also emit each comment as a native PDF `/Text` (sticky-note) annotation at its marker. Opt-in and interactive-only: suppressed under PDF/A and tagged output (where it would need annotation/appearance conformance), since the clickable marker + Comments section already carry the content there. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`commentAnnotations`](/api/index/interfaces/styledrenderoptions/#commentannotations) *** ### comments? [Section titled “comments?”](#comments) > `readonly` `optional` **comments?**: `ReadonlyMap`<`string`, [`Comment`](/api/core/document-model/interfaces/comment/)> Defined in: [src/layout/styled-layout.ts:392](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L392) §17.13.4 review comments by id; rendered as superscript markers in text and a list after the body (after endnotes), each with its author/date. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`comments`](/api/index/interfaces/styledrenderoptions/#comments) *** ### compatibilityMode? [Section titled “compatibilityMode?”](#compatibilitymode) > `readonly` `optional` **compatibilityMode?**: `number` Defined in: [src/layout/styled-layout.ts:485](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L485) \[MS-DOCX] `compatibilityMode` — the version of Word whose layout the document asks for; a Word document that states none is an older Word’s (see legacyTableOutdent). #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`compatibilityMode`](/api/index/interfaces/styledrenderoptions/#compatibilitymode) *** ### defaultTabStopPt? [Section titled “defaultTabStopPt?”](#defaulttabstoppt) > `readonly` `optional` **defaultTabStopPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/styled-layout.ts:490](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L490) ECMA-376 §17.15.1.25 `w:defaultTabStop` — the interval of the automatic tab stops, in points. Absent ⇒ 36 (half an inch, the standard’s default). #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`defaultTabStopPt`](/api/index/interfaces/styledrenderoptions/#defaulttabstoppt) *** ### doNotExpandShiftReturn? [Section titled “doNotExpandShiftReturn?”](#donotexpandshiftreturn) > `readonly` `optional` **doNotExpandShiftReturn?**: `boolean` Defined in: [src/layout/styled-layout.ts:467](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L467) ECMA-376 §17.15.1.35 `w:doNotExpandShiftReturn` — when set, a justified line that ends at a soft line break (`w:br`) is drawn at its natural width instead of being stretched out to the measure. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`doNotExpandShiftReturn`](/api/index/interfaces/styledrenderoptions/#donotexpandshiftreturn) *** ### embeddedFonts? [Section titled “embeddedFonts?”](#embeddedfonts) > `readonly` `optional` **embeddedFonts?**: `ReadonlyMap`<`string`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/layout/styled-layout.ts:358](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L358) The document’s OWN embedded fonts (`word/fonts/*.odttf`, de-obfuscated), keyed by normalized font name. A run whose `w:ascii` matches one renders with the real font — glyph-exact, no substitution. Highest priority. #### Inherited from [Section titled “Inherited from”](#inherited-from-7) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`embeddedFonts`](/api/index/interfaces/styledrenderoptions/#embeddedfonts) *** ### embedSource? [Section titled “embedSource?”](#embedsource) > `readonly` `optional` **embedSource?**: `boolean` Defined in: [src/word/docx-to-pdf.ts:50](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-to-pdf.ts#L50) For PDF/A-3 only: embed the input `.docx` as an associated source file (`/AFRelationship /Source`) so the archive carries its own source. Ignored for other profiles (PDF/A-1/2 forbid arbitrary embedded files). #### Inherited from [Section titled “Inherited from”](#inherited-from-8) `ConvertDocxOptions.embedSource` *** ### encrypt? [Section titled “encrypt?”](#encrypt) > `readonly` `optional` **encrypt?**: [`PdfEncryptOptions`](/api/index/interfaces/pdfencryptoptions/) Defined in: [src/layout/styled-layout.ts:496](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L496) §7.6 PDF encryption (AES-256, R6). Only honoured on the ASYNC conversion path (WebCrypto); mutually exclusive with `pdfA` (ISO 19005 forbids `/Encrypt`) and with signatures (v1). #### Inherited from [Section titled “Inherited from”](#inherited-from-9) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`encrypt`](/api/index/interfaces/styledrenderoptions/#encrypt) *** ### endnotes? [Section titled “endnotes?”](#endnotes) > `readonly` `optional` **endnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:387](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L387) #### Inherited from [Section titled “Inherited from”](#inherited-from-10) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`endnotes`](/api/index/interfaces/styledrenderoptions/#endnotes) *** ### fileName? [Section titled “fileName?”](#filename) > `readonly` `optional` **fileName?**: `string` Defined in: [src/core/converter/facade.ts:66](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L66) §18.3.1.34 `&F` — the workbook’s file name, for a spreadsheet whose header or footer prints it. Absent, the code is dropped. *** ### floatsOverText? [Section titled “floatsOverText?”](#floatsovertext) > `readonly` `optional` **floatsOverText?**: `boolean` Defined in: [src/layout/styled-layout.ts:344](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L344) The document’s front floats COVER the text under them. A spreadsheet’s drawings float over its cells — a note’s box hides the value beside its cell, a chart the data it sits on — where the passes a page is painted in put every line of text over every shape. See `FlowDoc.floatsOverText`. #### Inherited from [Section titled “Inherited from”](#inherited-from-11) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`floatsOverText`](/api/index/interfaces/styledrenderoptions/#floatsovertext) *** ### fontBytes? [Section titled “fontBytes?”](#fontbytes) > `readonly` `optional` **fontBytes?**: `Uint8Array`<`ArrayBufferLike`> Defined in: [src/word/docx-to-pdf.ts:35](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-to-pdf.ts#L35) A single regular-variant font as raw bytes. #### Inherited from [Section titled “Inherited from”](#inherited-from-12) `ConvertDocxOptions.fontBytes` *** ### fontFamily? [Section titled “fontFamily?”](#fontfamily) > `readonly` `optional` **fontFamily?**: `string` Defined in: [src/word/docx-to-pdf.ts:42](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-to-pdf.ts#L42) Force a substitute font family for the auto-download path (e.g. `'serif'`). Ignored when `fonts`/`fontBytes` are supplied. #### Inherited from [Section titled “Inherited from”](#inherited-from-13) `ConvertDocxOptions.fontFamily` *** ### fontFetch? [Section titled “fontFetch?”](#fontfetch) > `readonly` `optional` **fontFetch?**: [`FetchLike`](/api/index/type-aliases/fetchlike/) Defined in: [src/word/docx-to-pdf.ts:44](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-to-pdf.ts#L44) Injectable `fetch` for the auto-download path (defaults to the global `fetch`). #### Inherited from [Section titled “Inherited from”](#inherited-from-14) `ConvertDocxOptions.fontFetch` *** ### fontProviders? [Section titled “fontProviders?”](#fontproviders) > `readonly` `optional` **fontProviders?**: readonly [`FontProvider`](/api/index/interfaces/fontprovider/)\[] Defined in: [src/core/converter/facade.ts:80](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L80) Font resolution chain (ir-design §8), for the PDF and SVG targets. When set (and neither `fonts` nor `fontBytes` is), the converter asks these providers as `Ream.convert` does: for the document’s default faces, then for each family the document names but does not embed, then for the companion a remote substitute borrows letters from, then for each writing system its text holds. A face a remote or local provider gives is reported as a ‘substituted’ loss. When no provider answers the default faces, the PDF target fetches them as it does without a chain, and the faces answered by name still draw their families; the SVG target needs the default faces and throws without them. *** ### fonts? [Section titled “fonts?”](#fonts) > `readonly` `optional` **fonts?**: [`FontBytesByVariant`](/api/index/interfaces/fontbytesbyvariant/) Defined in: [src/word/docx-to-pdf.ts:37](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-to-pdf.ts#L37) Explicit font bytes per variant (regular/bold/italic/bold-italic). #### Inherited from [Section titled “Inherited from”](#inherited-from-15) `ConvertDocxOptions.fonts` *** ### footnotes? [Section titled “footnotes?”](#footnotes) > `readonly` `optional` **footnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:386](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L386) §17.11 notes content by id. Footnotes render in a reserved band at the bottom of the referencing page; endnotes flow after the body. #### Inherited from [Section titled “Inherited from”](#inherited-from-16) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`footnotes`](/api/index/interfaces/styledrenderoptions/#footnotes) *** ### gridLinePitchPt? [Section titled “gridLinePitchPt?”](#gridlinepitchpt) > `readonly` `optional` **gridLinePitchPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/styled-layout.ts:379](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L379) §17.6.5 — the pitch of the document grid the text is laid on. Set by the layout itself, per section (see SectionRenderCtx.options); callers state it on the section, not here. #### Inherited from [Section titled “Inherited from”](#inherited-from-17) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`gridLinePitchPt`](/api/index/interfaces/styledrenderoptions/#gridlinepitchpt) *** ### gutterAtTop? [Section titled “gutterAtTop?”](#gutterattop) > `readonly` `optional` **gutterAtTop?**: `boolean` Defined in: [src/layout/styled-layout.ts:479](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L479) ECMA-376 §17.15.1.38 `w:gutterAtTop` — the binding space belongs to the TOP margin, not the left. #### Inherited from [Section titled “Inherited from”](#inherited-from-18) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`gutterAtTop`](/api/index/interfaces/styledrenderoptions/#gutterattop) *** ### headersFooters? [Section titled “headersFooters?”](#headersfooters) > `readonly` `optional` **headersFooters?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:381](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L381) Header/footer body content keyed by relationship id. #### Inherited from [Section titled “Inherited from”](#inherited-from-19) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`headersFooters`](/api/index/interfaces/styledrenderoptions/#headersfooters) *** ### hyphenator? [Section titled “hyphenator?”](#hyphenator) > `readonly` `optional` **hyphenator?**: [`Hyphenator`](/api/index/interfaces/hyphenator/) Defined in: [src/layout/styled-layout.ts:419](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L419) Optional Liang hyphenator. When set, each word token is split at allowed hyphenation positions and offered to Knuth-Plass as potential break points (with a small disincentive). Improves justified paragraph rags. #### Inherited from [Section titled “Inherited from”](#inherited-from-20) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`hyphenator`](/api/index/interfaces/styledrenderoptions/#hyphenator) *** ### info? [Section titled “info?”](#info) > `readonly` `optional` **info?**: [`DocumentInfo`](/api/index/interfaces/documentinfo/) Defined in: [src/layout/styled-layout.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L424) Optional `/Info` dictionary metadata (ISO 32000-1 §14.3.3). Unset fields are omitted; if any field is set a PDF `/Info` entry is emitted. #### Inherited from [Section titled “Inherited from”](#inherited-from-21) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`info`](/api/index/interfaces/styledrenderoptions/#info) *** ### language? [Section titled “language?”](#language) > `readonly` `optional` **language?**: `string` Defined in: [src/layout/styled-layout.ts:461](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L461) Document natural language (BCP 47, e.g. `"en-US"`, `"ru-RU"`) for the tagged-PDF catalog `/Lang` (§14.9.2). Defaults to `"en-US"`. The docx converter fills this from the document’s default `w:lang`. #### Inherited from [Section titled “Inherited from”](#inherited-from-22) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`language`](/api/index/interfaces/styledrenderoptions/#language) *** ### layoutProfile? [Section titled “layoutProfile?”](#layoutprofile) > `readonly` `optional` **layoutProfile?**: `LayoutProfile` Defined in: [src/layout/styled-layout.ts:335](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L335) Renderer-compatibility profile for the line-height model (default `'ream'`). #### Inherited from [Section titled “Inherited from”](#inherited-from-23) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`layoutProfile`](/api/index/interfaces/styledrenderoptions/#layoutprofile) *** ### losses? [Section titled “losses?”](#losses) > `readonly` `optional` **losses?**: [`Loss`](/api/index/interfaces/loss/)\[] Defined in: [src/layout/styled-layout.ts:517](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L517) Sink the layout writes its [Loss](/api/index/interfaces/loss/) entries into: the characters no face on hand has a glyph for, which the page draws as empty boxes (see `undrawnLoss`). The converter always supplies one and returns it with the output; omitted ⇒ the boxes are drawn all the same, and nothing says so. #### Inherited from [Section titled “Inherited from”](#inherited-from-24) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`losses`](/api/index/interfaces/styledrenderoptions/#losses) *** ### marginBottom? [Section titled “marginBottom?”](#marginbottom) > `readonly` `optional` **marginBottom?**: `number` Defined in: [src/layout/styled-layout.ts:413](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L413) #### Inherited from [Section titled “Inherited from”](#inherited-from-25) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginBottom`](/api/index/interfaces/styledrenderoptions/#marginbottom) *** ### marginLeft? [Section titled “marginLeft?”](#marginleft) > `readonly` `optional` **marginLeft?**: `number` Defined in: [src/layout/styled-layout.ts:410](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L410) #### Inherited from [Section titled “Inherited from”](#inherited-from-26) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginLeft`](/api/index/interfaces/styledrenderoptions/#marginleft) *** ### marginRight? [Section titled “marginRight?”](#marginright) > `readonly` `optional` **marginRight?**: `number` Defined in: [src/layout/styled-layout.ts:411](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L411) #### Inherited from [Section titled “Inherited from”](#inherited-from-27) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginRight`](/api/index/interfaces/styledrenderoptions/#marginright) *** ### marginTop? [Section titled “marginTop?”](#margintop) > `readonly` `optional` **marginTop?**: `number` Defined in: [src/layout/styled-layout.ts:412](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L412) #### Inherited from [Section titled “Inherited from”](#inherited-from-28) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginTop`](/api/index/interfaces/styledrenderoptions/#margintop) *** ### now? [Section titled “now?”](#now) > `readonly` `optional` **now?**: `Date` Defined in: [src/core/converter/facade.ts:61](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L61) E-SHEET W9 — reference date for conditional-format `timePeriod` rules and TODAY()/NOW() in `expression` rules (spreadsheet input). An explicit input, never the wall clock; omitted ⇒ those clock-relative rules no-op. *** ### numbering? [Section titled “numbering?”](#numbering) > `readonly` `optional` **numbering?**: [`Numbering`](/api/core/document-model/interfaces/numbering/) Defined in: [src/layout/styled-layout.ts:362](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L362) §17.9 numbering definitions; applied to list paragraphs before layout. #### Inherited from [Section titled “Inherited from”](#inherited-from-29) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`numbering`](/api/index/interfaces/styledrenderoptions/#numbering) *** ### outline? [Section titled “outline?”](#outline) > `readonly` `optional` **outline?**: `boolean` | [`PdfOutlineOptions`](/api/index/interfaces/pdfoutlineoptions/) Defined in: [src/layout/styled-layout.ts:455](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L455) The PDF’s document outline — the bookmarks panel a viewer shows beside the pages (ISO 32000-1 §12.3.3) — built from the document’s headings, the way Word and LibreOffice export one. On by default: a document with headings gets an outline, one without gets none. `false` writes none; an object tunes it (see [PdfOutlineOptions](/api/index/interfaces/pdfoutlineoptions/)). #### Inherited from [Section titled “Inherited from”](#inherited-from-30) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`outline`](/api/index/interfaces/styledrenderoptions/#outline) *** ### pageBackgroundColorHex? [Section titled “pageBackgroundColorHex?”](#pagebackgroundcolorhex) > `readonly` `optional` **pageBackgroundColorHex?**: `string` Defined in: [src/layout/styled-layout.ts:472](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L472) ECMA-376 §17.2.1 `w:background` — the colour every page is painted before anything else is drawn on it. Absent ⇒ the paper’s own white. #### Inherited from [Section titled “Inherited from”](#inherited-from-31) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageBackgroundColorHex`](/api/index/interfaces/styledrenderoptions/#pagebackgroundcolorhex) *** ### pageBackgroundFill? [Section titled “pageBackgroundFill?”](#pagebackgroundfill) > `readonly` `optional` **pageBackgroundFill?**: [`ShapeFill`](/api/core/document-model/interfaces/shapefill/) Defined in: [src/layout/styled-layout.ts:474](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L474) §17.2.1 — the background’s gradient or picture, when it has one. #### Inherited from [Section titled “Inherited from”](#inherited-from-32) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageBackgroundFill`](/api/index/interfaces/styledrenderoptions/#pagebackgroundfill) *** ### pageHeight? [Section titled “pageHeight?”](#pageheight) > `readonly` `optional` **pageHeight?**: `number` Defined in: [src/layout/styled-layout.ts:409](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L409) #### Inherited from [Section titled “Inherited from”](#inherited-from-33) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageHeight`](/api/index/interfaces/styledrenderoptions/#pageheight) *** ### pageWidth? [Section titled “pageWidth?”](#pagewidth) > `readonly` `optional` **pageWidth?**: `number` Defined in: [src/layout/styled-layout.ts:408](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L408) #### Inherited from [Section titled “Inherited from”](#inherited-from-34) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageWidth`](/api/index/interfaces/styledrenderoptions/#pagewidth) *** ### pdfA? [Section titled “pdfA?”](#pdfa) > `readonly` `optional` **pdfA?**: `PdfALevel` Defined in: [src/layout/styled-layout.ts:434](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L434) When set, emit a PDF/A-conformant file: an OutputIntent with an embedded sRGB ICC profile, document XMP `/Metadata` (the pdfaid identifier), `/ID`, and subset-tagged fonts with a `/CIDSet`. The profile picks the rest: part 1 → PDF 1.4 + flattened image alpha (no transparency); part 2/3 → PDF 1.7 + preserved transparency (image `/SMask` + page group); part 3 → may carry embedded associated files (see `attachments`); level a → tagged (logical structure); b → visual; u → b + Unicode mapping. #### Inherited from [Section titled “Inherited from”](#inherited-from-35) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pdfA`](/api/index/interfaces/styledrenderoptions/#pdfa) *** ### pdfUA? [Section titled “pdfUA?”](#pdfua) > `readonly` `optional` **pdfUA?**: `boolean` Defined in: [src/layout/styled-layout.ts:447](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L447) PDF/UA-1 (ISO 14289-1): implies tagged; the XMP carries `pdfuaid:part=1` and the document always gets a title (AT announces it). Combines freely with `pdfA` level-a profiles. #### Inherited from [Section titled “Inherited from”](#inherited-from-36) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pdfUA`](/api/index/interfaces/styledrenderoptions/#pdfua) *** ### registriesByFamily? [Section titled “registriesByFamily?”](#registriesbyfamily) > `readonly` `optional` **registriesByFamily?**: `ReadonlyMap`<`SubstituteKey`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/layout/styled-layout.ts:352](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L352) Per-run font resolution: when supplied, each text run picks the registry of its declared family (sans→arimo / serif→tinos / mono→cousine via the run’s `w:ascii`) instead of always using `registry`. Absent ⇒ single-family (every run uses `registry`), byte-identical to before. `registry` remains the guaranteed fallback for math/chart/default glyphs and any missing family. #### Inherited from [Section titled “Inherited from”](#inherited-from-37) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`registriesByFamily`](/api/index/interfaces/styledrenderoptions/#registriesbyfamily) *** ### resources? [Section titled “resources?”](#resources) > `readonly` `optional` **resources?**: [`ResourceStore`](/api/index/classes/resourcestore/) Defined in: [src/layout/styled-layout.ts:402](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L402) Content-addressed binary store; image nodes reference it by [ResourceId](/api/index/type-aliases/resourceid/). #### Inherited from [Section titled “Inherited from”](#inherited-from-38) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`resources`](/api/index/interfaces/styledrenderoptions/#resources) *** ### section? [Section titled “section?”](#section) > `readonly` `optional` **section?**: [`SectionProperties`](/api/core/document-model/interfaces/sectionproperties/) Defined in: [src/layout/styled-layout.ts:367](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L367) Single-section legacy entry-point. If `sections` is set it takes precedence and `section` is ignored. #### Inherited from [Section titled “Inherited from”](#inherited-from-39) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`section`](/api/index/interfaces/styledrenderoptions/#section) *** ### sections? [Section titled “sections?”](#sections) > `readonly` `optional` **sections?**: readonly [`Section`](/api/core/document-model/interfaces/section/)\[] Defined in: [src/layout/styled-layout.ts:373](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L373) ECMA-376 §17.6 — ordered list of sections. Each section’s `endIndex` is the exclusive bound into the body array (section N covers `body[sections[N-1].endIndex..sections[N].endIndex)`). #### Inherited from [Section titled “Inherited from”](#inherited-from-40) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`sections`](/api/index/interfaces/styledrenderoptions/#sections) *** ### signature? [Section titled “signature?”](#signature) > `readonly` `optional` **signature?**: [`SignatureOptions`](/api/index/interfaces/signatureoptions/) Defined in: [src/word/docx-to-pdf.ts:55](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-to-pdf.ts#L55) Digitally sign the output (ISO 32000 §12.8). Requires the async convertDocxToPdf (signing uses WebCrypto); ignored by the sync converter. #### Inherited from [Section titled “Inherited from”](#inherited-from-41) `ConvertDocxOptions.signature` *** ### signaturePlaceholder? [Section titled “signaturePlaceholder?”](#signatureplaceholder) > `readonly` `optional` **signaturePlaceholder?**: [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/) Defined in: [src/layout/styled-layout.ts:510](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L510) Emit an (invisible) signature field + signature dictionary with placeholder `/ByteRange` and `/Contents` (ISO 32000 §12.8). The result is an UNSIGNED PDF; pass it to `signPdf()` to fill the placeholder with a real PKCS#7 signature. #### Inherited from [Section titled “Inherited from”](#inherited-from-42) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`signaturePlaceholder`](/api/index/interfaces/styledrenderoptions/#signatureplaceholder) *** ### strict? [Section titled “strict?”](#strict) > `readonly` `optional` **strict?**: `boolean` Defined in: [src/core/converter/facade.ts:55](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L55) Strict mode (handoff v1 §5): throw ConversionLossError on the first recorded loss instead of returning it in the report. *** ### tagged? [Section titled “tagged?”](#tagged) > `readonly` `optional` **tagged?**: `boolean` Defined in: [src/layout/styled-layout.ts:441](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L441) Emit a tagged PDF (ISO 32000-1 §14.8): a `/StructTreeRoot` describing reading order, marked content (BDC/EMC + MCID) on body text, and `/Artifact` marking of page decoration. Implied by `pdfA: 'PDF/A-1a'`. Independent of PDF/A otherwise (a plain tagged PDF is useful on its own). #### Inherited from [Section titled “Inherited from”](#inherited-from-43) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`tagged`](/api/index/interfaces/styledrenderoptions/#tagged) *** ### to? [Section titled “to?”](#to) > `readonly` `optional` **to?**: `"pdf"` | `"svg"` | `"html"` | `"md"` | `"docx"` | `"xlsx"` Defined in: [src/core/converter/facade.ts:50](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L50) Target: ‘pdf’ (default), ‘svg’ (page-stack preview), ‘html’/‘md’/‘docx’ (flowed), or ‘xlsx’ (the native grid writer — spreadsheet input only). *** ### typesetBy? [Section titled “typesetBy?”](#typesetby) > `readonly` `optional` **typesetBy?**: `"word"` Defined in: [src/layout/styled-layout.ts:337](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L337) The application whose rules the document is set by (see TypesetBy). #### Inherited from [Section titled “Inherited from”](#inherited-from-44) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`typesetBy`](/api/index/interfaces/styledrenderoptions/#typesetby) # ConvertResult Defined in: [src/core/converter/facade.ts:84](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L84) The output of a conversion: the encoded bytes and the accumulated losses. ## Properties [Section titled “Properties”](#properties) ### bytes [Section titled “bytes”](#bytes) > `readonly` **bytes**: `Uint8Array` Defined in: [src/core/converter/facade.ts:86](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L86) The encoded output bytes (PDF / SVG / HTML / DOCX / XLSX). *** ### losses [Section titled “losses”](#losses) > `readonly` **losses**: [`LossReport`](/api/index/type-aliases/lossreport/) Defined in: [src/core/converter/facade.ts:88](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L88) Every [Loss](/api/index/interfaces/loss/) recorded while reading the source and writing the target. # CreateConverterOptions Defined in: [src/core/converter/facade.ts:134](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L134) Options for [createConverter](/api/index/functions/createconverter/). ## Properties [Section titled “Properties”](#properties) ### readers? [Section titled “readers?”](#readers) > `readonly` `optional` **readers?**: readonly [`DocumentReader`](/api/index/interfaces/documentreader/)<`SourceDoc`>\[] Defined in: [src/core/converter/facade.ts:136](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/facade.ts#L136) Override / extend the reader registry (defaults to DEFAULT\_READERS). # DocumentInfo Defined in: [src/core/document-model/types.ts:2395](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2395) Document metadata (PDF `/Info`-shaped, sourced from `docProps/core.xml` and/or caller options). Lives in the model so FlowDoc can carry it format-neutrally. ## Properties [Section titled “Properties”](#properties) ### author? [Section titled “author?”](#author) > `readonly` `optional` **author?**: `string` Defined in: [src/core/document-model/types.ts:2397](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2397) *** ### creationDate? [Section titled “creationDate?”](#creationdate) > `readonly` `optional` **creationDate?**: `Date` Defined in: [src/core/document-model/types.ts:2404](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2404) ISO 8601 date; converted to PDF date format (`D:YYYYMMDDHHmmSS`). *** ### creator? [Section titled “creator?”](#creator) > `readonly` `optional` **creator?**: `string` Defined in: [src/core/document-model/types.ts:2400](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2400) *** ### keywords? [Section titled “keywords?”](#keywords) > `readonly` `optional` **keywords?**: `string` Defined in: [src/core/document-model/types.ts:2399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2399) *** ### modificationDate? [Section titled “modificationDate?”](#modificationdate) > `readonly` `optional` **modificationDate?**: `Date` Defined in: [src/core/document-model/types.ts:2405](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2405) *** ### producer? [Section titled “producer?”](#producer) > `readonly` `optional` **producer?**: `string` Defined in: [src/core/document-model/types.ts:2402](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2402) Producer; defaults to “Ream” if not provided. *** ### subject? [Section titled “subject?”](#subject) > `readonly` `optional` **subject?**: `string` Defined in: [src/core/document-model/types.ts:2398](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2398) *** ### title? [Section titled “title?”](#title) > `readonly` `optional` **title?**: `string` Defined in: [src/core/document-model/types.ts:2396](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/document-model/types.ts#L2396) # DocumentReader Defined in: [src/core/ir/adapters.ts:40](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L40) A synchronous reader for one source format (ir-design §7). All async I/O — font fetching, resource loading — lives in the conversion facade, not here. The adapter contracts may change until they stabilize against three or more adapters. Experimental This API should not be used in production and may be trimmed from a public release. ## Type Parameters [Section titled “Type Parameters”](#type-parameters) ### TDoc [Section titled “TDoc”](#tdoc) `TDoc` = [`FlowDoc`](/api/index/interfaces/flowdoc/) ## Properties [Section titled “Properties”](#properties) ### id [Section titled “id”](#id) > `readonly` **id**: `string` Defined in: [src/core/ir/adapters.ts:42](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L42) Format id: ‘docx’, ‘xlsx’, ‘pdf’, … Experimental This API should not be used in production and may be trimmed from a public release. *** ### produces [Section titled “produces”](#produces) > `readonly` **produces**: `"flow"` | `"page"` | `"sheet"` Defined in: [src/core/ir/adapters.ts:44](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L44) Which tree this reader produces (‘sheet’ projects to flow at the boundary). Experimental This API should not be used in production and may be trimmed from a public release. *** ### read [Section titled “read”](#read) > **read**: (`bytes`, `opts?`) => [`ReadResult`](/api/index/interfaces/readresult/)<`TDoc`> Defined in: [src/core/ir/adapters.ts:49](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L49) Experimental This API should not be used in production and may be trimmed from a public release. #### Parameters [Section titled “Parameters”](#parameters) ##### bytes [Section titled “bytes”](#bytes) `Uint8Array` ##### opts? [Section titled “opts?”](#opts) [`ReadOptions`](/api/index/interfaces/readoptions/) #### Returns [Section titled “Returns”](#returns) [`ReadResult`](/api/index/interfaces/readresult/)<`TDoc`> *** ### sniff [Section titled “sniff”](#sniff) > **sniff**: (`bytes`) => `boolean` Defined in: [src/core/ir/adapters.ts:48](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L48) Cheap format detection (magic bytes / container markers). Experimental This API should not be used in production and may be trimmed from a public release. #### Parameters [Section titled “Parameters”](#parameters-1) ##### bytes [Section titled “bytes”](#bytes-1) `Uint8Array` #### Returns [Section titled “Returns”](#returns-1) `boolean` *** ### supports [Section titled “supports”](#supports) > `readonly` **supports**: `ReadonlySet`<`string`> Defined in: [src/core/ir/adapters.ts:46](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L46) Feature vocabulary this reader understands (capability matrix source). Experimental This API should not be used in production and may be trimmed from a public release. # DocumentWriter Defined in: [src/core/ir/adapters.ts:71](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L71) A synchronous writer for one output format (ir-design §7). The adapter contracts may change until they stabilize against three or more adapters. Experimental This API should not be used in production and may be trimmed from a public release. ## Type Parameters [Section titled “Type Parameters”](#type-parameters) ### TDoc [Section titled “TDoc”](#tdoc) `TDoc` ## Properties [Section titled “Properties”](#properties) ### consumes [Section titled “consumes”](#consumes) > `readonly` **consumes**: `"flow"` | `"page"` | `"sheet"` Defined in: [src/core/ir/adapters.ts:75](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L75) Which tree this writer consumes (‘sheet’ for the native grid writer). Experimental This API should not be used in production and may be trimmed from a public release. *** ### id [Section titled “id”](#id) > `readonly` **id**: `string` Defined in: [src/core/ir/adapters.ts:73](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L73) Output format id: ‘pdf’, ‘svg’, ‘html’, ‘docx’, ‘xlsx’, … Experimental This API should not be used in production and may be trimmed from a public release. *** ### supports [Section titled “supports”](#supports) > `readonly` **supports**: `ReadonlySet`<`string`> Defined in: [src/core/ir/adapters.ts:77](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L77) Feature vocabulary this writer understands. Experimental This API should not be used in production and may be trimmed from a public release. *** ### write [Section titled “write”](#write) > **write**: (`doc`, `opts?`) => [`WriteResult`](/api/index/interfaces/writeresult/) Defined in: [src/core/ir/adapters.ts:79](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L79) Encode `doc` to the output bytes, collecting any losses. Experimental This API should not be used in production and may be trimmed from a public release. #### Parameters [Section titled “Parameters”](#parameters) ##### doc [Section titled “doc”](#doc) `TDoc` ##### opts? [Section titled “opts?”](#opts) [`WriteOptions`](/api/index/interfaces/writeoptions/) #### Returns [Section titled “Returns”](#returns) [`WriteResult`](/api/index/interfaces/writeresult/) # FaceFamily Defined in: [src/core/ir/flow.ts:33](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L33) A face’s family as a word processor names it (ECMA-376 §17.8.3.9 `w:font`). ## Properties [Section titled “Properties”](#properties) ### family [Section titled “family”](#family) > `readonly` **family**: `string` Defined in: [src/core/ir/flow.ts:35](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L35) The family’s own name: `Inter` for `Inter-SemiBold`, `Arial` for `ArialMT`. *** ### generic [Section titled “generic”](#generic) > `readonly` **generic**: `"roman"` | `"swiss"` | `"modern"` Defined in: [src/core/ir/flow.ts:37](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L37) §17.8.3.10 `w:family` — the kind of face, for a reader that has to substitute. # FaceGlyph Defined in: [src/core/ir/flow.ts:84](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L84) One glyph of a [FaceOutlines](/api/index/interfaces/faceoutlines/): what it draws and how far it advances. ## Properties [Section titled “Properties”](#properties) ### advance [Section titled “advance”](#advance) > `readonly` **advance**: `number` Defined in: [src/core/ir/flow.ts:88](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L88) How far the pen moves after it, in thousandths of an em. *** ### outline [Section titled “outline”](#outline) > `readonly` **outline**: readonly [`GlyphSeg`](/api/index/type-aliases/glyphseg/)\[] Defined in: [src/core/ir/flow.ts:86](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L86) Its contours in a one-unit em, y up, filled by the nonzero rule; empty when blank. # FaceOutlines Defined in: [src/core/ir/flow.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L45) The outlines a face drew a document’s characters with — what a writer needs to EMBED the face, so a reader that lacks it sets the text in the face the source was set in instead of a substitute (ECMA-376 §17.8.1). ## Properties [Section titled “Properties”](#properties) ### ascent [Section titled “ascent”](#ascent) > `readonly` **ascent**: `number` Defined in: [src/core/ir/flow.ts:74](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L74) The line to set the face in, above and below the baseline, in thousandths of an em — `descent` negative. A reader that reconstructs a page gives the line it measured the page against, so a paragraph set in the face’s single spacing lands where the page put it. *** ### bold [Section titled “bold”](#bold) > `readonly` **bold**: `boolean` Defined in: [src/core/ir/flow.ts:64](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L64) The style the face IS, which is the slot a family embeds it in. *** ### capHeight? [Section titled “capHeight?”](#capheight) > `readonly` `optional` **capHeight?**: `number` Defined in: [src/core/ir/flow.ts:76](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L76) *** ### descent [Section titled “descent”](#descent) > `readonly` **descent**: `number` Defined in: [src/core/ir/flow.ts:75](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L75) *** ### fixedPitch [Section titled “fixedPitch”](#fixedpitch) > `readonly` **fixedPitch**: `boolean` Defined in: [src/core/ir/flow.ts:80](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L80) *** ### fsType? [Section titled “fsType?”](#fstype) > `readonly` `optional` **fsType?**: `number` Defined in: [src/core/ir/flow.ts:62](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L62) OS/2 `fsType` — the embedding the face’s licence allows, as its program states it; absent where the program states nothing. *** ### glyphs [Section titled “glyphs”](#glyphs) > `readonly` **glyphs**: `ReadonlyMap`<`string`, [`FaceGlyph`](/api/index/interfaces/faceglyph/)> Defined in: [src/core/ir/flow.ts:47](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L47) Each character (one code point) the document shows in the face → its glyph. *** ### italic [Section titled “italic”](#italic) > `readonly` **italic**: `boolean` Defined in: [src/core/ir/flow.ts:65](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L65) *** ### italicAngle [Section titled “italicAngle”](#italicangle) > `readonly` **italicAngle**: `number` Defined in: [src/core/ir/flow.ts:79](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L79) Degrees counterclockwise from the vertical; a face slanted right is negative. *** ### kerning? [Section titled “kerning?”](#kerning) > `readonly` `optional` **kerning?**: `ReadonlyMap`<`string`, `number`> Defined in: [src/core/ir/flow.ts:52](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L52) The pairs the source KERNED the face by: two characters → the adjustment to the first one’s advance, in thousandths of an em (negative tightens). *** ### ligatures? [Section titled “ligatures?”](#ligatures) > `readonly` `optional` **ligatures?**: `ReadonlyMap`<`string`, [`FaceGlyph`](/api/index/interfaces/faceglyph/)> Defined in: [src/core/ir/flow.ts:57](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L57) The ligatures the source drew in the face: the letters one glyph stands for (“fi”, “ffl”) → that glyph. *** ### postScriptName [Section titled “postScriptName”](#postscriptname) > `readonly` **postScriptName**: `string` Defined in: [src/core/ir/flow.ts:67](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L67) The program’s own name for the face, without a subset tag. *** ### xHeight? [Section titled “xHeight?”](#xheight) > `readonly` `optional` **xHeight?**: `number` Defined in: [src/core/ir/flow.ts:77](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L77) # FetchFontSetOptions Defined in: [src/core/fonts/remote-fonts.ts:630](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L630) Options for [fetchFontSet](/api/index/functions/fetchfontset/). ## Properties [Section titled “Properties”](#properties) ### family? [Section titled “family?”](#family) > `readonly` `optional` **family?**: `string` Defined in: [src/core/fonts/remote-fonts.ts:632](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L632) Document font family name to substitute, or a curated [FamilyKey](/api/index/type-aliases/familykey/) directly. *** ### fetch? [Section titled “fetch?”](#fetch) > `readonly` `optional` **fetch?**: [`FetchLike`](/api/index/type-aliases/fetchlike/) Defined in: [src/core/fonts/remote-fonts.ts:634](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L634) Injectable fetch (defaults to the global `fetch`); lets tests run offline. # FillItem Defined in: [src/layout/page-doc.ts:504](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L504) A filled rectangle (cell shading); `(x, y)` is its top-left corner. ## Extends [Section titled “Extends”](#extends) * [`PageItemBase`](/api/index/interfaces/pageitembase/) ## Properties [Section titled “Properties”](#properties) ### artifact? [Section titled “artifact?”](#artifact) > `readonly` `optional` **artifact?**: `"pagination"` Defined in: [src/layout/page-doc.ts:430](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L430) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`artifact`](/api/index/interfaces/pageitembase/#artifact) *** ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/layout/page-doc.ts:399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L399) §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). #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`behind`](/api/index/interfaces/pageitembase/#behind) *** ### fillColorHex [Section titled “fillColorHex”](#fillcolorhex) > `readonly` **fillColorHex**: `string` Defined in: [src/layout/page-doc.ts:510](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L510) *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:509](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L509) *** ### over? [Section titled “over?”](#over) > `readonly` `optional` **over?**: `boolean` Defined in: [src/layout/page-doc.ts:406](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L406) The item stands IN FRONT of the page’s text and covers it — a drawing floating over a spreadsheet’s cells. A page paints its text after its shapes, so such items are painted as a second layer, every pass again, once the first layer’s text is down. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`over`](/api/index/interfaces/pageitembase/#over) *** ### pictureId? [Section titled “pictureId?”](#pictureid) > `readonly` `optional` **pictureId?**: `number` Defined in: [src/layout/page-doc.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L424) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`pictureId`](/api/index/interfaces/pageitembase/#pictureid) *** ### structId? [Section titled “structId?”](#structid) > `readonly` `optional` **structId?**: `number` Defined in: [src/layout/page-doc.ts:391](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L391) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`structId`](/api/index/interfaces/pageitembase/#structid) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"fill"` Defined in: [src/layout/page-doc.ts:505](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L505) *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:508](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L508) *** ### window? [Section titled “window?”](#window) > `readonly` `optional` **window?**: `PageWindow` Defined in: [src/layout/page-doc.ts:414](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L414) The part of the page the item may paint, when it is cut off — a spreadsheet’s drawing printed in pieces, each piece seen only over the rows and columns of its own page (TableOverlay). Top-left frame, like the item itself. Items sharing a window paint together, in their own order, after the rest of their layer. #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`window`](/api/index/interfaces/pageitembase/#window) *** ### x [Section titled “x”](#x) > `readonly` **x**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:506](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L506) *** ### y [Section titled “y”](#y) > `readonly` **y**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:507](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L507) *** ### z? [Section titled “z?”](#z) > `readonly` `optional` **z?**: `number` Defined in: [src/layout/page-doc.ts:385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L385) §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. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`z`](/api/index/interfaces/pageitembase/#z) # FlowDoc Defined in: [src/core/ir/flow.ts:103](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L103) The semantic IR tree (ir-design §5): everything a reader extracts from the document bytes, format-neutrally — the flow `body` plus its document-scoped companions (styles, numbering, header/footer bands, notes, charts, binary resources, metadata). Caller-supplied conversion options (fonts, PDF/A profile, signature, …) are deliberately NOT part of the tree; they parameterize transforms, not the document. `body` carries FINAL effective properties — readers materialize list markers and resolve the style cascade while building it — so render projections must not re-apply `styles`/`numbering`, which remain only as round-trip material. ## Properties [Section titled “Properties”](#properties) ### body [Section titled “body”](#body) > `readonly` **body**: readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[] Defined in: [src/core/ir/flow.ts:107](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L107) The document flow content, carrying resolved, effective properties. *** ### charts? [Section titled “charts?”](#charts) > `readonly` `optional` **charts?**: `ReadonlyMap`<`string`, [`Chart`](/api/core/document-model/interfaces/chart/)> Defined in: [src/core/ir/flow.ts:127](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L127) Parsed charts keyed by relationship id (ChartBlock.chartRelId). *** ### comments? [Section titled “comments?”](#comments) > `readonly` `optional` **comments?**: `ReadonlyMap`<`string`, [`Comment`](/api/core/document-model/interfaces/comment/)> Defined in: [src/core/ir/flow.ts:125](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L125) §17.13.4 review comments by id, anchored from a run’s `commentRef`. *** ### compatibilityMode? [Section titled “compatibilityMode?”](#compatibilitymode) > `readonly` `optional` **compatibilityMode?**: `number` Defined in: [src/core/ir/flow.ts:178](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L178) \[MS-DOCX] `w:compatSetting` `compatibilityMode` — the version of Word whose layout the document asks for: 15 is Word 2013’s, which every Word since sets a new document by. Word opens a document that states none in Compatibility Mode, and forms there none of the OpenType ligatures its faces carry. *** ### defaultTabStopPt? [Section titled “defaultTabStopPt?”](#defaulttabstoppt) > `readonly` `optional` **defaultTabStopPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/core/ir/flow.ts:186](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L186) ECMA-376 §17.15.1.25 `w:defaultTabStop` (a `.doc`’s `Dop.dxaTab`) — the interval of the automatic tab stops a tab falls to past the paragraph’s own. Absent ⇒ the standard’s half inch. Word writes 708 twips in a Russian-locale document, not 720, and every tab past the last explicit stop lands by that. *** ### doNotExpandShiftReturn? [Section titled “doNotExpandShiftReturn?”](#donotexpandshiftreturn) > `readonly` `optional` **doNotExpandShiftReturn?**: `boolean` Defined in: [src/core/ir/flow.ts:153](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L153) ECMA-376 §17.15.1.35 `w:doNotExpandShiftReturn` — a justified line that ends at a soft line break keeps its natural width. *** ### embeddedFonts? [Section titled “embeddedFonts?”](#embeddedfonts) > `readonly` `optional` **embeddedFonts?**: `ReadonlyMap`<`string`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/core/ir/flow.ts:131](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L131) Fonts embedded in the source document itself (docx fontTable), by name. *** ### endnotes? [Section titled “endnotes?”](#endnotes) > `readonly` `optional` **endnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/core/ir/flow.ts:123](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L123) *** ### faceFamilies? [Section titled “faceFamilies?”](#facefamilies) > `readonly` `optional` **faceFamilies?**: `ReadonlyMap`<`string`, [`FaceFamily`](/api/index/interfaces/facefamily/)> Defined in: [src/core/ir/flow.ts:139](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L139) The family each face a run names belongs to, where the two are not the same name. A PDF names a FACE — `Inter-SemiBold` — where a word processor names a family and states the weight beside it (`Inter`, bold). The layout finds a document’s own program by the face; a writer that hands the text to another program names the family, which is the name that program knows. *** ### faceOutlines? [Section titled “faceOutlines?”](#faceoutlines) > `readonly` `optional` **faceOutlines?**: `ReadonlyMap`<`string`, [`FaceOutlines`](/api/index/interfaces/faceoutlines/)> Defined in: [src/core/ir/flow.ts:144](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L144) The outlines of the faces a run names, keyed as [faceFamilies](/api/index/interfaces/flowdoc/#facefamilies) is — for a writer that embeds them (see [FaceOutlines](/api/index/interfaces/faceoutlines/)). *** ### floatsOverText? [Section titled “floatsOverText?”](#floatsovertext) > `readonly` `optional` **floatsOverText?**: `true` Defined in: [src/core/ir/flow.ts:200](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L200) The document’s front floats cover the text under them, as a spreadsheet’s drawings cover its cells: a note’s box hides the value beside its cell, and a chart the figures it sits on. Absent, the text is painted over them. *** ### footnotes? [Section titled “footnotes?”](#footnotes) > `readonly` `optional` **footnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/core/ir/flow.ts:122](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L122) §17.11 footnotes/endnotes content by id (separator stubs excluded). *** ### gutterAtTop? [Section titled “gutterAtTop?”](#gutterattop) > `readonly` `optional` **gutterAtTop?**: `boolean` Defined in: [src/core/ir/flow.ts:170](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L170) ECMA-376 §17.15.1.38 `w:gutterAtTop` — the binding space `w:pgMar @w:gutter` reserves belongs to the TOP margin rather than the left. *** ### headersFooters? [Section titled “headersFooters?”](#headersfooters) > `readonly` `optional` **headersFooters?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/core/ir/flow.ts:120](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L120) *** ### info? [Section titled “info?”](#info) > `readonly` `optional` **info?**: [`DocumentInfo`](/api/index/interfaces/documentinfo/) Defined in: [src/core/ir/flow.ts:146](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L146) Document metadata from docProps/core.xml. *** ### kind [Section titled “kind”](#kind) > `readonly` **kind**: `"flow"` Defined in: [src/core/ir/flow.ts:105](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L105) Discriminant for SourceDoc (a FlowDoc passes through projection). *** ### language? [Section titled “language?”](#language) > `readonly` `optional` **language?**: `string` Defined in: [src/core/ir/flow.ts:148](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L148) Document natural language hint (BCP-47), e.g. for tagged-PDF /Lang. *** ### numbering? [Section titled “numbering?”](#numbering) > `readonly` `optional` **numbering?**: [`Numbering`](/api/core/document-model/interfaces/numbering/) Defined in: [src/core/ir/flow.ts:119](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L119) Raw numbering definitions (round-trip material). `body` already carries the materialized list markers — readers apply numbering as a FlowDoc transform, so render projections must not re-apply it. *** ### pageBackgroundColorHex? [Section titled “pageBackgroundColorHex?”](#pagebackgroundcolorhex) > `readonly` `optional` **pageBackgroundColorHex?**: `string` Defined in: [src/core/ir/flow.ts:159](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L159) ECMA-376 §17.2.1 `w:background` — the colour every page is painted, when the document asks for one AND §17.15.1.28 `w:displayBackgroundShape` says to draw it. *** ### pageBackgroundFill? [Section titled “pageBackgroundFill?”](#pagebackgroundfill) > `readonly` `optional` **pageBackgroundFill?**: [`ShapeFill`](/api/core/document-model/interfaces/shapefill/) Defined in: [src/core/ir/flow.ts:165](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L165) ECMA-376 §17.2.1 — the same background as the FILL it is, when that is more than a flat colour: the `v:background`’s gradient or picture. The colour above stays the flat fallback, for writers that paint only colours. *** ### resources [Section titled “resources”](#resources) > `readonly` **resources**: [`ResourceStore`](/api/index/classes/resourcestore/) Defined in: [src/core/ir/flow.ts:129](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L129) Content-addressed binary resources (images). *** ### section? [Section titled “section?”](#section) > `readonly` `optional` **section?**: [`SectionProperties`](/api/core/document-model/interfaces/sectionproperties/) Defined in: [src/core/ir/flow.ts:111](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L111) Single-section page geometry (xlsx print setup). *** ### sections [Section titled “sections”](#sections) > `readonly` **sections**: readonly [`Section`](/api/core/document-model/interfaces/section/)\[] Defined in: [src/core/ir/flow.ts:109](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L109) Multi-section page geometry (docx). Empty for single-geometry sources. *** ### styles [Section titled “styles”](#styles) > `readonly` **styles**: [`StyleSheet`](/api/core/document-model/interfaces/stylesheet/) Defined in: [src/core/ir/flow.ts:113](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L113) Resolved style sheet, kept as round-trip material (already folded into `body`). *** ### typesetBy? [Section titled “typesetBy?”](#typesetby) > `readonly` `optional` **typesetBy?**: `"word"` Defined in: [src/core/ir/flow.ts:194](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/flow.ts#L194) The application whose rules the document is set by: `'word'` for one Word sets — lines as tall as the faces on them make them (§17.3.1.33), table rows as tall as their borders make them (§17.4.38); see the layout’s `TypesetBy`. Absent, the layout’s flat 1.2× lines and borders that take no room. # FontBytesByVariant Defined in: [src/core/font/font-registry.ts:38](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L38) Raw TTF/OTF bytes per style variant; only `regular` is required. ## Properties [Section titled “Properties”](#properties) ### bold? [Section titled “bold?”](#bold) > `readonly` `optional` **bold?**: `Uint8Array`<`ArrayBufferLike`> Defined in: [src/core/font/font-registry.ts:42](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L42) The bold face, if available. *** ### boldItalic? [Section titled “boldItalic?”](#bolditalic) > `readonly` `optional` **boldItalic?**: `Uint8Array`<`ArrayBufferLike`> Defined in: [src/core/font/font-registry.ts:46](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L46) The bold-italic face, if available. *** ### italic? [Section titled “italic?”](#italic) > `readonly` `optional` **italic?**: `Uint8Array`<`ArrayBufferLike`> Defined in: [src/core/font/font-registry.ts:44](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L44) The italic face, if available. *** ### regular [Section titled “regular”](#regular) > `readonly` **regular**: `Uint8Array` Defined in: [src/core/font/font-registry.ts:40](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L40) The regular (upright, normal-weight) face — required. # FontProvider Defined in: [src/core/fonts/provider.ts:61](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L61) One stage in the font-resolution chain (ir-design §8). ## Properties [Section titled “Properties”](#properties) ### id [Section titled “id”](#id) > `readonly` **id**: `string` Defined in: [src/core/fonts/provider.ts:63](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L63) Provider id: `'embedded'` | `'caller'` | `'local'` | `'remote'` | a custom id. *** ### resolve [Section titled “resolve”](#resolve) > **resolve**: (`req`) => `Promise`<[`FontAnswer`](/api/index/type-aliases/fontanswer/)> Defined in: [src/core/fonts/provider.ts:65](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L65) Resolve a request to bytes, or [NO\_FONT](/api/index/variables/no_font/) to defer to the next provider. #### Parameters [Section titled “Parameters”](#parameters) ##### req [Section titled “req”](#req) [`FontRequest`](/api/index/interfaces/fontrequest/) #### Returns [Section titled “Returns”](#returns) `Promise`<[`FontAnswer`](/api/index/type-aliases/fontanswer/)> # FontRequest Defined in: [src/core/fonts/provider.ts:26](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L26) A font resolution request: the wanted family and style. ## Properties [Section titled “Properties”](#properties) ### bold [Section titled “bold”](#bold) > `readonly` **bold**: `boolean` Defined in: [src/core/fonts/provider.ts:40](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L40) Whether a bold face is wanted. *** ### family? [Section titled “family?”](#family) > `readonly` `optional` **family?**: `string` Defined in: [src/core/fonts/provider.ts:32](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L32) Family name as the document references it (e.g. “Times New Roman”). Absent, the request is for the document’s default faces, or for a writing system (`script`). *** ### italic [Section titled “italic”](#italic) > `readonly` **italic**: `boolean` Defined in: [src/core/fonts/provider.ts:42](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L42) Whether an italic face is wanted. *** ### script? [Section titled “script?”](#script) > `readonly` `optional` **script?**: [`ScriptKey`](/api/index/type-aliases/scriptkey/) Defined in: [src/core/fonts/provider.ts:38](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L38) A writing system the document’s text holds and the Latin substitutes cannot draw (Japanese, Arabic, Devanagari…): the request is for the face that draws it, regular only. Set without a `family`. # Hyphenator Defined in: [src/core/hyphenation/liang.ts:60](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L60) A configured hyphenator for one language. ## Properties [Section titled “Properties”](#properties) ### hyphenate [Section titled “hyphenate”](#hyphenate) > **hyphenate**: (`word`) => `number`\[] Defined in: [src/core/hyphenation/liang.ts:66](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L66) Return the 0-indexed break positions inside `word`. A position `p` means the word can be split between `word[p-1]` and `word[p]`; e.g. “computer” with breaks `[3,5]` → “com·pu·ter”. #### Parameters [Section titled “Parameters”](#parameters) ##### word [Section titled “word”](#word) `string` #### Returns [Section titled “Returns”](#returns) `number`\[] # HyphenatorOptions Defined in: [src/core/hyphenation/liang.ts:70](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L70) Options for [createHyphenator](/api/index/functions/createhyphenator/). ## Properties [Section titled “Properties”](#properties) ### exceptions? [Section titled “exceptions?”](#exceptions) > `readonly` `optional` **exceptions?**: readonly `string`\[] Defined in: [src/core/hyphenation/liang.ts:79](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L79) Explicit exceptions that override pattern output. Each is a word with hyphens marking the allowed breaks, e.g. `"as-so-ciate"`. *** ### leftMin? [Section titled “leftMin?”](#leftmin) > `readonly` `optional` **leftMin?**: `number` Defined in: [src/core/hyphenation/liang.ts:72](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L72) Minimum characters before the first break (TeX default: 2). *** ### rightMin? [Section titled “rightMin?”](#rightmin) > `readonly` `optional` **rightMin?**: `number` Defined in: [src/core/hyphenation/liang.ts:74](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/liang.ts#L74) Minimum characters after the last break (TeX default: 3 for English, often 2 elsewhere). # ImageItem Defined in: [src/layout/page-doc.ts:517](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L517) A placed raster image (resource name binds to the page XObject dict); `(x, y)` is its top-left corner. ## Extends [Section titled “Extends”](#extends) * [`PageItemBase`](/api/index/interfaces/pageitembase/) ## Properties [Section titled “Properties”](#properties) ### alpha? [Section titled “alpha?”](#alpha) > `readonly` `optional` **alpha?**: `number` Defined in: [src/layout/page-doc.ts:532](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L532) §20.1.8.4 `a:alphaModFix` — how opaque the picture is drawn, 0…1. A slide backed by a photograph at 70 % shows a pale wash of it, not the photograph. *** ### artifact? [Section titled “artifact?”](#artifact) > `readonly` `optional` **artifact?**: `"pagination"` Defined in: [src/layout/page-doc.ts:430](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L430) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`artifact`](/api/index/interfaces/pageitembase/#artifact) *** ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/layout/page-doc.ts:399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L399) §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). #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`behind`](/api/index/interfaces/pageitembase/#behind) *** ### clip? [Section titled “clip?”](#clip) > `readonly` `optional` **clip?**: `object` Defined in: [src/layout/page-doc.ts:548](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L548) §20.1.8.14 — a picture FILL is the shape’s outline painted with a picture, so it is clipped to that outline: the paths in the shape’s local frame and the matrix that maps them onto the page. #### paths [Section titled “paths”](#paths) > `readonly` **paths**: readonly `VectorPath`\[] #### transform [Section titled “transform”](#transform) > `readonly` **transform**: readonly \[`number`, `number`, `number`, `number`, `number`, `number`] *** ### crop? [Section titled “crop?”](#crop) > `readonly` `optional` **crop?**: [`ImageCrop`](/api/core/document-model/interfaces/imagecrop/) Defined in: [src/layout/page-doc.ts:525](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L525) §20.1.8.55 `a:srcRect` — the part of the source the frame shows. *** ### duotone? [Section titled “duotone?”](#duotone) > `readonly` `optional` **duotone?**: `object` Defined in: [src/layout/page-doc.ts:537](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L537) §20.1.8.23 `a:duotone` — the picture painted between two colours instead of its own: its dark end is the first, its light end the second. #### highlightHex [Section titled “highlightHex”](#highlighthex) > `readonly` **highlightHex**: `string` #### shadowHex [Section titled “shadowHex”](#shadowhex) > `readonly` **shadowHex**: `string` *** ### flipH? [Section titled “flipH?”](#fliph) > `readonly` `optional` **flipH?**: `boolean` Defined in: [src/layout/page-doc.ts:541](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L541) §20.1.7.6 — the picture drawn mirrored in its box. *** ### flipV? [Section titled “flipV?”](#flipv) > `readonly` `optional` **flipV?**: `boolean` Defined in: [src/layout/page-doc.ts:542](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L542) *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:522](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L522) *** ### imageResourceName [Section titled “imageResourceName”](#imageresourcename) > `readonly` **imageResourceName**: `string` Defined in: [src/layout/page-doc.ts:523](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L523) *** ### over? [Section titled “over?”](#over) > `readonly` `optional` **over?**: `boolean` Defined in: [src/layout/page-doc.ts:406](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L406) The item stands IN FRONT of the page’s text and covers it — a drawing floating over a spreadsheet’s cells. A page paints its text after its shapes, so such items are painted as a second layer, every pass again, once the first layer’s text is down. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`over`](/api/index/interfaces/pageitembase/#over) *** ### pictureId? [Section titled “pictureId?”](#pictureid) > `readonly` `optional` **pictureId?**: `number` Defined in: [src/layout/page-doc.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L424) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`pictureId`](/api/index/interfaces/pageitembase/#pictureid) *** ### rotationDeg? [Section titled “rotationDeg?”](#rotationdeg) > `readonly` `optional` **rotationDeg?**: `number` Defined in: [src/layout/page-doc.ts:539](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L539) §20.1.7.6 — degrees clockwise about the box’s centre. *** ### structId? [Section titled “structId?”](#structid) > `readonly` `optional` **structId?**: `number` Defined in: [src/layout/page-doc.ts:391](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L391) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`structId`](/api/index/interfaces/pageitembase/#structid) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"image"` Defined in: [src/layout/page-doc.ts:518](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L518) *** ### wash? [Section titled “wash?”](#wash) > `readonly` `optional` **wash?**: `object` Defined in: [src/layout/page-doc.ts:527](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L527) §14.1.2.10 — the contrast/brightness wash the picture is drawn through. #### black [Section titled “black”](#black) > `readonly` **black**: `number` #### gain [Section titled “gain”](#gain) > `readonly` **gain**: `number` *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:521](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L521) *** ### window? [Section titled “window?”](#window) > `readonly` `optional` **window?**: `PageWindow` Defined in: [src/layout/page-doc.ts:414](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L414) The part of the page the item may paint, when it is cut off — a spreadsheet’s drawing printed in pieces, each piece seen only over the rows and columns of its own page (TableOverlay). Top-left frame, like the item itself. Items sharing a window paint together, in their own order, after the rest of their layer. #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`window`](/api/index/interfaces/pageitembase/#window) *** ### x [Section titled “x”](#x) > `readonly` **x**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:519](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L519) *** ### y [Section titled “y”](#y) > `readonly` **y**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:520](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L520) *** ### z? [Section titled “z?”](#z) > `readonly` `optional` **z?**: `number` Defined in: [src/layout/page-doc.ts:385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L385) §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. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`z`](/api/index/interfaces/pageitembase/#z) # LaidOutDocument Defined in: [src/layout/page-doc.ts:829](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L829) ## Properties [Section titled “Properties”](#properties) ### fontResources [Section titled “fontResources”](#fontresources) > `readonly` **fontResources**: `Map`<`string`, `FontResource`> Defined in: [src/layout/page-doc.ts:833](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L833) *** ### imageResources [Section titled “imageResources”](#imageresources) > `readonly` **imageResources**: `Map`<[`ResourceId`](/api/index/type-aliases/resourceid/), `ImageResource`> Defined in: [src/layout/page-doc.ts:834](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L834) *** ### pages [Section titled “pages”](#pages) > `readonly` **pages**: readonly [`LaidOutPage`](/api/index/interfaces/laidoutpage/)\[] Defined in: [src/layout/page-doc.ts:830](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L830) *** ### resources [Section titled “resources”](#resources) > `readonly` **resources**: [`ResourceStore`](/api/index/classes/resourcestore/) Defined in: [src/layout/page-doc.ts:832](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L832) # LaidOutPage Defined in: [src/layout/page-doc.ts:837](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L837) ## Properties [Section titled “Properties”](#properties) ### commands [Section titled “commands”](#commands) > `readonly` **commands**: [`PageItem`](/api/index/type-aliases/pageitem/)\[] Defined in: [src/layout/page-doc.ts:838](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L838) *** ### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:840](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L840) *** ### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:839](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L839) # Loss Defined in: [src/core/ir/loss.ts:19](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L19) A single conversion loss: something the pipeline dropped, degraded or substituted. ## Properties [Section titled “Properties”](#properties) ### detail [Section titled “detail”](#detail) > `readonly` **detail**: `string` Defined in: [src/core/ir/loss.ts:25](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L25) Human-readable specifics: what exactly happened to what. *** ### feature [Section titled “feature”](#feature) > `readonly` **feature**: `string` Defined in: [src/core/ir/loss.ts:23](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L23) The affected [Feature](/api/index/type-aliases/feature/) (drives the capability/loss matrix). *** ### severity [Section titled “severity”](#severity) > `readonly` **severity**: [`LossSeverity`](/api/index/type-aliases/lossseverity/) Defined in: [src/core/ir/loss.ts:21](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L21) How badly the content was affected. *** ### where? [Section titled “where?”](#where) > `readonly` `optional` **where?**: `string` Defined in: [src/core/ir/loss.ts:27](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L27) Optional location hint (page/paragraph/sheet reference). # MarkdownWriteOptions Defined in: [src/markdown/markdown-writer.ts:53](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/markdown/markdown-writer.ts#L53) Options for [writeMarkdown](/api/index/functions/writemarkdown/). ## Properties [Section titled “Properties”](#properties) ### images? [Section titled “images?”](#images) > `readonly` `optional` **images?**: `"dataUri"` | `"link"` | `"drop"` Defined in: [src/markdown/markdown-writer.ts:61](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/markdown/markdown-writer.ts#L61) How a picture reaches the output. `'dataUri'` (the default) inlines the bytes as a `data:` URI, keeping the single-blob [WriteResult](/api/index/interfaces/writeresult/) contract and the zero-I/O promise; `'link'` emits a relative `./media/…` path and records that the bytes were not written anywhere; `'drop'` omits pictures entirely. *** ### pageBreaks? [Section titled “pageBreaks?”](#pagebreaks) > `readonly` `optional` **pageBreaks?**: `"drop"` | `"rule"` Defined in: [src/markdown/markdown-writer.ts:70](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/markdown/markdown-writer.ts#L70) What a page break becomes. `'drop'` (the default) leaves it out and reports it: a paginated document breaks its pages wherever the layout needs to, and a rule at every one of them would litter the text. `'rule'` writes a `---` thematic break instead, which is what a SLIDE DECK wants — the `.pptx` and `.ppt` readers mark each slide boundary with a page break, and it is the only structure a deck has. # NativeBag Defined in: [src/core/ir/index.ts:33](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/index.ts#L33) Passthrough bag for the round-trip door (ir-design §4): a node MAY carry the source format’s raw fragment keyed by format id (e.g. `{ ooxml: }`). Writers for other formats ignore it; a same-format writer may use it to reproduce constructs the neutral core does not model. v1 promises only cross-format fidelity — this keeps the door open without promising more. ## Indexable [Section titled “Indexable”](#indexable) > \[`formatId`: `string`]: `unknown` # PageItemBase Defined in: [src/layout/page-doc.ts:380](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L380) The fields every [PageItem](/api/index/type-aliases/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. ## Extended by [Section titled “Extended by”](#extended-by) * [`TextLineItem`](/api/index/interfaces/textlineitem/) * [`BorderItem`](/api/index/interfaces/borderitem/) * [`FillItem`](/api/index/interfaces/fillitem/) * [`ImageItem`](/api/index/interfaces/imageitem/) * [`ShapeItem`](/api/index/interfaces/shapeitem/) ## Properties [Section titled “Properties”](#properties) ### artifact? [Section titled “artifact?”](#artifact) > `readonly` `optional` **artifact?**: `"pagination"` Defined in: [src/layout/page-doc.ts:430](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L430) 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. *** ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/layout/page-doc.ts:399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L399) §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). *** ### over? [Section titled “over?”](#over) > `readonly` `optional` **over?**: `boolean` Defined in: [src/layout/page-doc.ts:406](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L406) The item stands IN FRONT of the page’s text and covers it — a drawing floating over a spreadsheet’s cells. A page paints its text after its shapes, so such items are painted as a second layer, every pass again, once the first layer’s text is down. *** ### pictureId? [Section titled “pictureId?”](#pictureid) > `readonly` `optional` **pictureId?**: `number` Defined in: [src/layout/page-doc.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L424) 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. *** ### structId? [Section titled “structId?”](#structid) > `readonly` `optional` **structId?**: `number` Defined in: [src/layout/page-doc.ts:391](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L391) 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. *** ### window? [Section titled “window?”](#window) > `readonly` `optional` **window?**: `PageWindow` Defined in: [src/layout/page-doc.ts:414](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L414) The part of the page the item may paint, when it is cut off — a spreadsheet’s drawing printed in pieces, each piece seen only over the rows and columns of its own page (TableOverlay). Top-left frame, like the item itself. Items sharing a window paint together, in their own order, after the rest of their layer. *** ### z? [Section titled “z?”](#z) > `readonly` `optional` **z?**: `number` Defined in: [src/layout/page-doc.ts:385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L385) §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. # ParsedTtf Defined in: [src/core/font/ttf-parser.ts:41](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L41) A parsed TrueType / OpenType font (ISO/IEC 14496-22): metrics, the cmap-derived codepoint→glyph mapping, OpenType layout maps (ligatures, kerning, Arabic joining) and the raw bytes for embedding. Glyph outlines (glyf/CFF) are not decoded — the whole font is embedded in the PDF /FontFile2. ## Properties [Section titled “Properties”](#properties) ### advanceWidths [Section titled “advanceWidths”](#advancewidths) > `readonly` **advanceWidths**: readonly `number`\[] Defined in: [src/core/font/ttf-parser.ts:77](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L77) *** ### ascender [Section titled “ascender”](#ascender) > `readonly` **ascender**: `number` Defined in: [src/core/font/ttf-parser.ts:48](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L48) *** ### capHeight [Section titled “capHeight”](#capheight) > `readonly` **capHeight**: `number` Defined in: [src/core/font/ttf-parser.ts:55](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L55) *** ### descender [Section titled “descender”](#descender) > `readonly` **descender**: `number` Defined in: [src/core/font/ttf-parser.ts:49](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L49) *** ### flags [Section titled “flags”](#flags) > `readonly` **flags**: `number` Defined in: [src/core/font/ttf-parser.ts:73](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L73) *** ### fontBBox [Section titled “fontBBox”](#fontbbox) > `readonly` **fontBBox**: readonly \[`number`, `number`, `number`, `number`] Defined in: [src/core/font/ttf-parser.ts:47](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L47) *** ### glyphForCodepoint [Section titled “glyphForCodepoint”](#glyphforcodepoint) > `readonly` **glyphForCodepoint**: (`cp`) => `number` Defined in: [src/core/font/ttf-parser.ts:78](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L78) #### Parameters [Section titled “Parameters”](#parameters) ##### cp [Section titled “cp”](#cp) `number` #### Returns [Section titled “Returns”](#returns) `number` *** ### glyphOffsets [Section titled “glyphOffsets”](#glyphoffsets) > `readonly` **glyphOffsets**: readonly `number`\[] Defined in: [src/core/font/ttf-parser.ts:76](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L76) *** ### indexToLocFormat [Section titled “indexToLocFormat”](#indextolocformat) > `readonly` **indexToLocFormat**: `0` | `1` Defined in: [src/core/font/ttf-parser.ts:75](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L75) *** ### italicAngle [Section titled “italicAngle”](#italicangle) > `readonly` **italicAngle**: `number` Defined in: [src/core/font/ttf-parser.ts:71](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L71) *** ### joiningForms [Section titled “joiningForms”](#joiningforms) > `readonly` **joiningForms**: `ArabicJoiningForms` Defined in: [src/core/font/ttf-parser.ts:87](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L87) Arabic cursive-joining substitutions (init/medi/fina). Empty for non-Arabic fonts, so the shaper leaves output unchanged. *** ### kerning [Section titled “kerning”](#kerning) > `readonly` **kerning**: `KerningMap` Defined in: [src/core/font/ttf-parser.ts:82](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L82) OpenType pair kerning: `"gid1,gid2"` → advance adjustment in font units. *** ### ligatures [Section titled “ligatures”](#ligatures) > `readonly` **ligatures**: `LigatureMap` Defined in: [src/core/font/ttf-parser.ts:80](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L80) OpenType ligature substitutions: input GID sequence `"gid1,gid2[,gid3…]"` → output GID. *** ### lineGap [Section titled “lineGap”](#linegap) > `readonly` **lineGap**: `number` Defined in: [src/core/font/ttf-parser.ts:54](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L54) hhea line gap (font units); with ascender/descender it forms the hhea vertical triple that drives the `'libreoffice'` line-height profile (E-PARITY). *** ### numGlyphs [Section titled “numGlyphs”](#numglyphs) > `readonly` **numGlyphs**: `number` Defined in: [src/core/font/ttf-parser.ts:74](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L74) *** ### postScriptName [Section titled “postScriptName”](#postscriptname) > `readonly` **postScriptName**: `string` Defined in: [src/core/font/ttf-parser.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L45) *** ### raw [Section titled “raw”](#raw) > `readonly` **raw**: `Uint8Array` Defined in: [src/core/font/ttf-parser.ts:42](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L42) *** ### sfntVersion [Section titled “sfntVersion”](#sfntversion) > `readonly` **sfntVersion**: `number` Defined in: [src/core/font/ttf-parser.ts:43](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L43) *** ### stemV [Section titled “stemV”](#stemv) > `readonly` **stemV**: `number` Defined in: [src/core/font/ttf-parser.ts:72](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L72) *** ### tables [Section titled “tables”](#tables) > `readonly` **tables**: `ReadonlyMap`<`string`, `TtfTableInfo`> Defined in: [src/core/font/ttf-parser.ts:44](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L44) *** ### unitsPerEm [Section titled “unitsPerEm”](#unitsperem) > `readonly` **unitsPerEm**: `number` Defined in: [src/core/font/ttf-parser.ts:46](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L46) *** ### vmetrics [Section titled “vmetrics”](#vmetrics) > `readonly` **vmetrics**: `object` Defined in: [src/core/font/ttf-parser.ts:63](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L63) E-PARITY line-height metrics: OS/2 win/typo verticals (font units) selected by layout profile. `'word'` uses winAscent/winDescent (the GDI cell box); `'libreoffice'` uses the hhea triple above, or typo\* when `useTypoMetrics` is set. All fall back to hhea when the font has no OS/2 table. #### typoAscent [Section titled “typoAscent”](#typoascent) > `readonly` **typoAscent**: `number` #### typoDescent [Section titled “typoDescent”](#typodescent) > `readonly` **typoDescent**: `number` #### typoLineGap [Section titled “typoLineGap”](#typolinegap) > `readonly` **typoLineGap**: `number` #### useTypoMetrics [Section titled “useTypoMetrics”](#usetypometrics) > `readonly` **useTypoMetrics**: `boolean` #### winAscent [Section titled “winAscent”](#winascent) > `readonly` **winAscent**: `number` #### winDescent [Section titled “winDescent”](#windescent) > `readonly` **winDescent**: `number` *** ### xHeight [Section titled “xHeight”](#xheight) > `readonly` **xHeight**: `number` Defined in: [src/core/font/ttf-parser.ts:56](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-parser.ts#L56) # PdfEncryptOptions Defined in: [src/pdf/encryption.ts:30](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L30) Passwords and permissions for preparePdfEncryption. ## Properties [Section titled “Properties”](#properties) ### ownerPassword? [Section titled “ownerPassword?”](#ownerpassword) > `readonly` `optional` **ownerPassword?**: `string` Defined in: [src/pdf/encryption.ts:34](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L34) Overrides the permission restrictions. Defaults to the user password. *** ### permissions? [Section titled “permissions?”](#permissions) > `readonly` `optional` **permissions?**: [`PdfPermissions`](/api/index/interfaces/pdfpermissions/) Defined in: [src/pdf/encryption.ts:35](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L35) *** ### userPassword? [Section titled “userPassword?”](#userpassword) > `readonly` `optional` **userPassword?**: `string` Defined in: [src/pdf/encryption.ts:32](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L32) Required to OPEN the document. Empty string = opens without a prompt. # PdfOutlineOptions Defined in: [src/layout/styled-layout.ts:971](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L971) How the PDF’s document outline is built (ISO 32000-1 §12.3.3); see [StyledRenderOptions.outline](/api/index/interfaces/styledrenderoptions/#outline). ## Properties [Section titled “Properties”](#properties) ### maxLevel? [Section titled “maxLevel?”](#maxlevel) > `readonly` `optional` **maxLevel?**: `number` Defined in: [src/layout/styled-layout.ts:978](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L978) The deepest heading level the outline takes, 1–9. Default 9: every outline level a paragraph can carry (§17.3.1.20 `w:outlineLvl` 0–8), as LibreOffice’s export takes. `3` keeps Heading 1–3, as a table of contents usually does. *** ### openPanel? [Section titled “openPanel?”](#openpanel) > `readonly` `optional` **openPanel?**: `boolean` Defined in: [src/layout/styled-layout.ts:984](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L984) Open the viewer’s bookmarks panel with the document (ISO 32000-1 §7.7.2, catalog `/PageMode /UseOutlines`). Default `false`: the viewer decides, and the panel is a click away. # PdfPermissions Defined in: [src/pdf/encryption.ts:12](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L12) The user-access permission flags (`/P`, §7.6.4.4.7); each defaults to allowed. ## Properties [Section titled “Properties”](#properties) ### annotating? [Section titled “annotating?”](#annotating) > `readonly` `optional` **annotating?**: `boolean` Defined in: [src/pdf/encryption.ts:20](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L20) Bit 6 — add/modify annotations (default true). *** ### contentAccessibility? [Section titled “contentAccessibility?”](#contentaccessibility) > `readonly` `optional` **contentAccessibility?**: `boolean` Defined in: [src/pdf/encryption.ts:24](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L24) Bit 10 — extraction for accessibility (default true; forced by PDF/UA). *** ### copying? [Section titled “copying?”](#copying) > `readonly` `optional` **copying?**: `boolean` Defined in: [src/pdf/encryption.ts:18](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L18) Bit 5 — copy text and graphics (default true). *** ### documentAssembly? [Section titled “documentAssembly?”](#documentassembly) > `readonly` `optional` **documentAssembly?**: `boolean` Defined in: [src/pdf/encryption.ts:26](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L26) Bit 11 — assemble (insert/rotate/delete pages) (default true). *** ### fillingForms? [Section titled “fillingForms?”](#fillingforms) > `readonly` `optional` **fillingForms?**: `boolean` Defined in: [src/pdf/encryption.ts:22](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L22) Bit 9 — fill in form fields (default true). *** ### modifying? [Section titled “modifying?”](#modifying) > `readonly` `optional` **modifying?**: `boolean` Defined in: [src/pdf/encryption.ts:16](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L16) Bit 4 — modify contents (default true). *** ### printing? [Section titled “printing?”](#printing) > `readonly` `optional` **printing?**: `boolean` Defined in: [src/pdf/encryption.ts:14](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/encryption.ts#L14) Bit 3 — print the document (default true). # ReadOptions Defined in: [src/core/ir/adapters.ts:11](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L11) Reader-call options. Open-ended; per-reader limits live in the readers. ## Indexable [Section titled “Indexable”](#indexable) > \[`key`: `string`]: `unknown` Reserved for reader-specific knobs (limits live in the readers). # ReadResult Defined in: [src/core/ir/adapters.ts:17](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L17) The result of [DocumentReader.read](/api/index/interfaces/documentreader/#read): the parsed tree plus any losses. ## Type Parameters [Section titled “Type Parameters”](#type-parameters) ### TDoc [Section titled “TDoc”](#tdoc) `TDoc` ## Properties [Section titled “Properties”](#properties) ### doc [Section titled “doc”](#doc) > `readonly` **doc**: `TDoc` Defined in: [src/core/ir/adapters.ts:19](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L19) The parsed document tree. *** ### flowing? [Section titled “flowing?”](#flowing) > `readonly` `optional` **flowing?**: () => `ReadResult`<`TDoc`> Defined in: [src/core/ir/adapters.ts:30](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L30) The same source read again as a document that flows, for a medium that places nothing — Markdown. Present only where the reader kept the source as a page for marks such a medium drops anyway: a PDF whose words are mostly glyphs it names no character for, or whose tables are ruled, kept where its marks stand so that a paged medium can show them exactly. Called only by that medium, so the source is read twice only when it asks. #### Returns [Section titled “Returns”](#returns) `ReadResult`<`TDoc`> *** ### losses [Section titled “losses”](#losses) > `readonly` **losses**: [`LossReport`](/api/index/type-aliases/lossreport/) Defined in: [src/core/ir/adapters.ts:21](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L21) Losses recorded while reading. # ReamConvertOptions Defined in: [src/core/converter/ream.ts:100](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L100) Options for [Ream.convert](/api/index/classes/ream/#convert) and [Ream.convertWithReport](/api/index/classes/ream/#convertwithreport). Extends the low-level [StyledRenderOptions](/api/index/interfaces/styledrenderoptions/) (minus the font `registry`, the `styles` and the `losses` sink, which Ream builds itself) with font resolution and source-touching conveniences. ## Extends [Section titled “Extends”](#extends) * `Omit`<[`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/), `"registry"` | `"styles"` | `"losses"`> ## Properties [Section titled “Properties”](#properties) ### attachments? [Section titled “attachments?”](#attachments) > `readonly` `optional` **attachments?**: readonly `AttachedFile`\[] Defined in: [src/layout/styled-layout.ts:503](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L503) Files to embed as associated files (catalog `/AF` + `/Names` `/EmbeddedFiles`). Only emitted for plain PDF and PDF/A-3 (PDF/A-1/2 forbid arbitrary embedded files); ignored for PDF/A-1/2. The docx/xlsx converters can embed the source document automatically via `embedSource`. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`attachments`](/api/index/interfaces/styledrenderoptions/#attachments) *** ### charts? [Section titled “charts?”](#charts) > `readonly` `optional` **charts?**: `ReadonlyMap`<`string`, [`Chart`](/api/core/document-model/interfaces/chart/)> Defined in: [src/layout/styled-layout.ts:407](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L407) Parsed charts keyed by relationship id (`ChartBlock.chartRelId`). Supplied by the converter, which resolves the chart parts from the package. #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`charts`](/api/index/interfaces/styledrenderoptions/#charts) *** ### commentAnnotations? [Section titled “commentAnnotations?”](#commentannotations) > `readonly` `optional` **commentAnnotations?**: `boolean` Defined in: [src/layout/styled-layout.ts:400](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L400) CM2b — also emit each comment as a native PDF `/Text` (sticky-note) annotation at its marker. Opt-in and interactive-only: suppressed under PDF/A and tagged output (where it would need annotation/appearance conformance), since the clickable marker + Comments section already carry the content there. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`commentAnnotations`](/api/index/interfaces/styledrenderoptions/#commentannotations) *** ### comments? [Section titled “comments?”](#comments) > `readonly` `optional` **comments?**: `ReadonlyMap`<`string`, [`Comment`](/api/core/document-model/interfaces/comment/)> Defined in: [src/layout/styled-layout.ts:392](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L392) §17.13.4 review comments by id; rendered as superscript markers in text and a list after the body (after endnotes), each with its author/date. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`comments`](/api/index/interfaces/styledrenderoptions/#comments) *** ### compatibilityMode? [Section titled “compatibilityMode?”](#compatibilitymode) > `readonly` `optional` **compatibilityMode?**: `number` Defined in: [src/layout/styled-layout.ts:485](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L485) \[MS-DOCX] `compatibilityMode` — the version of Word whose layout the document asks for; a Word document that states none is an older Word’s (see legacyTableOutdent). #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`compatibilityMode`](/api/index/interfaces/styledrenderoptions/#compatibilitymode) *** ### defaultTabStopPt? [Section titled “defaultTabStopPt?”](#defaulttabstoppt) > `readonly` `optional` **defaultTabStopPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/styled-layout.ts:490](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L490) ECMA-376 §17.15.1.25 `w:defaultTabStop` — the interval of the automatic tab stops, in points. Absent ⇒ 36 (half an inch, the standard’s default). #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`defaultTabStopPt`](/api/index/interfaces/styledrenderoptions/#defaulttabstoppt) *** ### doNotExpandShiftReturn? [Section titled “doNotExpandShiftReturn?”](#donotexpandshiftreturn) > `readonly` `optional` **doNotExpandShiftReturn?**: `boolean` Defined in: [src/layout/styled-layout.ts:467](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L467) ECMA-376 §17.15.1.35 `w:doNotExpandShiftReturn` — when set, a justified line that ends at a soft line break (`w:br`) is drawn at its natural width instead of being stretched out to the measure. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`doNotExpandShiftReturn`](/api/index/interfaces/styledrenderoptions/#donotexpandshiftreturn) *** ### embeddedFonts? [Section titled “embeddedFonts?”](#embeddedfonts) > `readonly` `optional` **embeddedFonts?**: `ReadonlyMap`<`string`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/layout/styled-layout.ts:358](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L358) The document’s OWN embedded fonts (`word/fonts/*.odttf`, de-obfuscated), keyed by normalized font name. A run whose `w:ascii` matches one renders with the real font — glyph-exact, no substitution. Highest priority. #### Inherited from [Section titled “Inherited from”](#inherited-from-7) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`embeddedFonts`](/api/index/interfaces/styledrenderoptions/#embeddedfonts) *** ### embedSource? [Section titled “embedSource?”](#embedsource) > `readonly` `optional` **embedSource?**: `boolean` Defined in: [src/core/converter/ream.ts:125](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L125) PDF/A-3 only: embed the parsed source file (`/AFRelationship /Source`). *** ### encrypt? [Section titled “encrypt?”](#encrypt) > `readonly` `optional` **encrypt?**: [`PdfEncryptOptions`](/api/index/interfaces/pdfencryptoptions/) Defined in: [src/layout/styled-layout.ts:496](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L496) §7.6 PDF encryption (AES-256, R6). Only honoured on the ASYNC conversion path (WebCrypto); mutually exclusive with `pdfA` (ISO 19005 forbids `/Encrypt`) and with signatures (v1). #### Inherited from [Section titled “Inherited from”](#inherited-from-8) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`encrypt`](/api/index/interfaces/styledrenderoptions/#encrypt) *** ### endnotes? [Section titled “endnotes?”](#endnotes) > `readonly` `optional` **endnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:387](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L387) #### Inherited from [Section titled “Inherited from”](#inherited-from-9) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`endnotes`](/api/index/interfaces/styledrenderoptions/#endnotes) *** ### fileName? [Section titled “fileName?”](#filename) > `readonly` `optional` **fileName?**: `string` Defined in: [src/core/converter/ream.ts:141](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L141) §18.3.1.34 `&F` — the workbook’s file name, for a spreadsheet whose header or footer prints it. A byte-oriented reader cannot know it; supplied here, the code resolves, and omitted it is dropped exactly as before. *** ### floatsOverText? [Section titled “floatsOverText?”](#floatsovertext) > `readonly` `optional` **floatsOverText?**: `boolean` Defined in: [src/layout/styled-layout.ts:344](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L344) The document’s front floats COVER the text under them. A spreadsheet’s drawings float over its cells — a note’s box hides the value beside its cell, a chart the data it sits on — where the passes a page is painted in put every line of text over every shape. See `FlowDoc.floatsOverText`. #### Inherited from [Section titled “Inherited from”](#inherited-from-10) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`floatsOverText`](/api/index/interfaces/styledrenderoptions/#floatsovertext) *** ### fontBytes? [Section titled “fontBytes?”](#fontbytes) > `readonly` `optional` **fontBytes?**: `Uint8Array`<`ArrayBufferLike`> Defined in: [src/core/converter/ream.ts:107](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L107) Shorthand for supplying a single regular-variant font as raw bytes. *** ### fontFamily? [Section titled “fontFamily?”](#fontfamily) > `readonly` `optional` **fontFamily?**: `string` Defined in: [src/core/converter/ream.ts:109](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L109) Substitute family hint for the auto-download path. *** ### fontFetch? [Section titled “fontFetch?”](#fontfetch) > `readonly` `optional` **fontFetch?**: [`FetchLike`](/api/index/type-aliases/fetchlike/) Defined in: [src/core/converter/ream.ts:111](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L111) Injectable `fetch` for the auto-download path (defaults to the global `fetch`). *** ### fontProviders? [Section titled “fontProviders?”](#fontproviders) > `readonly` `optional` **fontProviders?**: readonly [`FontProvider`](/api/index/interfaces/fontprovider/)\[] Defined in: [src/core/converter/ream.ts:121](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L121) Font resolution chain (caller/embedded/local/remote), used when neither `fonts` nor `fontBytes` is given. It is asked for the document’s default faces, then for each family the document names (and does not embed), then for the face of each writing system its text holds; the first provider to answer a request wins it. A remote or local winner records a substitution [Loss](/api/index/interfaces/loss/). When no provider answers the default faces, the faces answered by name are kept and the rest is downloaded as without a chain. *** ### fonts? [Section titled “fonts?”](#fonts) > `readonly` `optional` **fonts?**: [`FontBytesByVariant`](/api/index/interfaces/fontbytesbyvariant/) Defined in: [src/core/converter/ream.ts:105](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L105) Explicit font bytes per variant (regular/bold/italic/bold-italic). *** ### footnotes? [Section titled “footnotes?”](#footnotes) > `readonly` `optional` **footnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:386](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L386) §17.11 notes content by id. Footnotes render in a reserved band at the bottom of the referencing page; endnotes flow after the body. #### Inherited from [Section titled “Inherited from”](#inherited-from-11) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`footnotes`](/api/index/interfaces/styledrenderoptions/#footnotes) *** ### gridLinePitchPt? [Section titled “gridLinePitchPt?”](#gridlinepitchpt) > `readonly` `optional` **gridLinePitchPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/styled-layout.ts:379](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L379) §17.6.5 — the pitch of the document grid the text is laid on. Set by the layout itself, per section (see SectionRenderCtx.options); callers state it on the section, not here. #### Inherited from [Section titled “Inherited from”](#inherited-from-12) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`gridLinePitchPt`](/api/index/interfaces/styledrenderoptions/#gridlinepitchpt) *** ### gutterAtTop? [Section titled “gutterAtTop?”](#gutterattop) > `readonly` `optional` **gutterAtTop?**: `boolean` Defined in: [src/layout/styled-layout.ts:479](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L479) ECMA-376 §17.15.1.38 `w:gutterAtTop` — the binding space belongs to the TOP margin, not the left. #### Inherited from [Section titled “Inherited from”](#inherited-from-13) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`gutterAtTop`](/api/index/interfaces/styledrenderoptions/#gutterattop) *** ### headersFooters? [Section titled “headersFooters?”](#headersfooters) > `readonly` `optional` **headersFooters?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:381](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L381) Header/footer body content keyed by relationship id. #### Inherited from [Section titled “Inherited from”](#inherited-from-14) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`headersFooters`](/api/index/interfaces/styledrenderoptions/#headersfooters) *** ### hyphenator? [Section titled “hyphenator?”](#hyphenator) > `readonly` `optional` **hyphenator?**: [`Hyphenator`](/api/index/interfaces/hyphenator/) Defined in: [src/layout/styled-layout.ts:419](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L419) Optional Liang hyphenator. When set, each word token is split at allowed hyphenation positions and offered to Knuth-Plass as potential break points (with a small disincentive). Improves justified paragraph rags. #### Inherited from [Section titled “Inherited from”](#inherited-from-15) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`hyphenator`](/api/index/interfaces/styledrenderoptions/#hyphenator) *** ### images? [Section titled “images?”](#images) > `readonly` `optional` **images?**: `"dataUri"` | `"link"` | `"drop"` Defined in: [src/core/converter/ream.ts:147](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L147) Markdown only: how a picture reaches the output — inlined as a `data:` URI (the default), named under `./media/` for a caller that writes the bytes itself, or dropped. See [MarkdownWriteOptions](/api/index/interfaces/markdownwriteoptions/). *** ### info? [Section titled “info?”](#info) > `readonly` `optional` **info?**: [`DocumentInfo`](/api/index/interfaces/documentinfo/) Defined in: [src/layout/styled-layout.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L424) Optional `/Info` dictionary metadata (ISO 32000-1 §14.3.3). Unset fields are omitted; if any field is set a PDF `/Info` entry is emitted. #### Inherited from [Section titled “Inherited from”](#inherited-from-16) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`info`](/api/index/interfaces/styledrenderoptions/#info) *** ### language? [Section titled “language?”](#language) > `readonly` `optional` **language?**: `string` Defined in: [src/layout/styled-layout.ts:461](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L461) Document natural language (BCP 47, e.g. `"en-US"`, `"ru-RU"`) for the tagged-PDF catalog `/Lang` (§14.9.2). Defaults to `"en-US"`. The docx converter fills this from the document’s default `w:lang`. #### Inherited from [Section titled “Inherited from”](#inherited-from-17) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`language`](/api/index/interfaces/styledrenderoptions/#language) *** ### layoutProfile? [Section titled “layoutProfile?”](#layoutprofile) > `readonly` `optional` **layoutProfile?**: `LayoutProfile` Defined in: [src/layout/styled-layout.ts:335](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L335) Renderer-compatibility profile for the line-height model (default `'ream'`). #### Inherited from [Section titled “Inherited from”](#inherited-from-18) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`layoutProfile`](/api/index/interfaces/styledrenderoptions/#layoutprofile) *** ### marginBottom? [Section titled “marginBottom?”](#marginbottom) > `readonly` `optional` **marginBottom?**: `number` Defined in: [src/layout/styled-layout.ts:413](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L413) #### Inherited from [Section titled “Inherited from”](#inherited-from-19) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginBottom`](/api/index/interfaces/styledrenderoptions/#marginbottom) *** ### marginLeft? [Section titled “marginLeft?”](#marginleft) > `readonly` `optional` **marginLeft?**: `number` Defined in: [src/layout/styled-layout.ts:410](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L410) #### Inherited from [Section titled “Inherited from”](#inherited-from-20) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginLeft`](/api/index/interfaces/styledrenderoptions/#marginleft) *** ### marginRight? [Section titled “marginRight?”](#marginright) > `readonly` `optional` **marginRight?**: `number` Defined in: [src/layout/styled-layout.ts:411](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L411) #### Inherited from [Section titled “Inherited from”](#inherited-from-21) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginRight`](/api/index/interfaces/styledrenderoptions/#marginright) *** ### marginTop? [Section titled “marginTop?”](#margintop) > `readonly` `optional` **marginTop?**: `number` Defined in: [src/layout/styled-layout.ts:412](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L412) #### Inherited from [Section titled “Inherited from”](#inherited-from-22) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`marginTop`](/api/index/interfaces/styledrenderoptions/#margintop) *** ### now? [Section titled “now?”](#now) > `readonly` `optional` **now?**: `Date` Defined in: [src/core/converter/ream.ts:135](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L135) Reference date for spreadsheet conditional-format `timePeriod` rules and for `TODAY()`/`NOW()` in `expression` rules (E-SHEET W9). Supplying it re-projects a spreadsheet source so those clock-relative rules resolve against this date — an explicit input, never the wall clock. Omitted, they no-op and the output is unchanged. *** ### numbering? [Section titled “numbering?”](#numbering) > `readonly` `optional` **numbering?**: [`Numbering`](/api/core/document-model/interfaces/numbering/) Defined in: [src/layout/styled-layout.ts:362](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L362) §17.9 numbering definitions; applied to list paragraphs before layout. #### Inherited from [Section titled “Inherited from”](#inherited-from-23) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`numbering`](/api/index/interfaces/styledrenderoptions/#numbering) *** ### outline? [Section titled “outline?”](#outline) > `readonly` `optional` **outline?**: `boolean` | [`PdfOutlineOptions`](/api/index/interfaces/pdfoutlineoptions/) Defined in: [src/layout/styled-layout.ts:455](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L455) The PDF’s document outline — the bookmarks panel a viewer shows beside the pages (ISO 32000-1 §12.3.3) — built from the document’s headings, the way Word and LibreOffice export one. On by default: a document with headings gets an outline, one without gets none. `false` writes none; an object tunes it (see [PdfOutlineOptions](/api/index/interfaces/pdfoutlineoptions/)). #### Inherited from [Section titled “Inherited from”](#inherited-from-24) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`outline`](/api/index/interfaces/styledrenderoptions/#outline) *** ### pageBackgroundColorHex? [Section titled “pageBackgroundColorHex?”](#pagebackgroundcolorhex) > `readonly` `optional` **pageBackgroundColorHex?**: `string` Defined in: [src/layout/styled-layout.ts:472](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L472) ECMA-376 §17.2.1 `w:background` — the colour every page is painted before anything else is drawn on it. Absent ⇒ the paper’s own white. #### Inherited from [Section titled “Inherited from”](#inherited-from-25) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageBackgroundColorHex`](/api/index/interfaces/styledrenderoptions/#pagebackgroundcolorhex) *** ### pageBackgroundFill? [Section titled “pageBackgroundFill?”](#pagebackgroundfill) > `readonly` `optional` **pageBackgroundFill?**: [`ShapeFill`](/api/core/document-model/interfaces/shapefill/) Defined in: [src/layout/styled-layout.ts:474](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L474) §17.2.1 — the background’s gradient or picture, when it has one. #### Inherited from [Section titled “Inherited from”](#inherited-from-26) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageBackgroundFill`](/api/index/interfaces/styledrenderoptions/#pagebackgroundfill) *** ### pageBreaks? [Section titled “pageBreaks?”](#pagebreaks) > `readonly` `optional` **pageBreaks?**: `"drop"` | `"rule"` Defined in: [src/core/converter/ream.ts:153](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L153) Markdown only: what a page break becomes — nothing (the default), or the `---` thematic break a slide deck wants between its slides. See [MarkdownWriteOptions](/api/index/interfaces/markdownwriteoptions/). *** ### pageHeight? [Section titled “pageHeight?”](#pageheight) > `readonly` `optional` **pageHeight?**: `number` Defined in: [src/layout/styled-layout.ts:409](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L409) #### Inherited from [Section titled “Inherited from”](#inherited-from-27) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageHeight`](/api/index/interfaces/styledrenderoptions/#pageheight) *** ### pageWidth? [Section titled “pageWidth?”](#pagewidth) > `readonly` `optional` **pageWidth?**: `number` Defined in: [src/layout/styled-layout.ts:408](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L408) #### Inherited from [Section titled “Inherited from”](#inherited-from-28) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pageWidth`](/api/index/interfaces/styledrenderoptions/#pagewidth) *** ### pdfA? [Section titled “pdfA?”](#pdfa) > `readonly` `optional` **pdfA?**: `PdfALevel` Defined in: [src/layout/styled-layout.ts:434](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L434) When set, emit a PDF/A-conformant file: an OutputIntent with an embedded sRGB ICC profile, document XMP `/Metadata` (the pdfaid identifier), `/ID`, and subset-tagged fonts with a `/CIDSet`. The profile picks the rest: part 1 → PDF 1.4 + flattened image alpha (no transparency); part 2/3 → PDF 1.7 + preserved transparency (image `/SMask` + page group); part 3 → may carry embedded associated files (see `attachments`); level a → tagged (logical structure); b → visual; u → b + Unicode mapping. #### Inherited from [Section titled “Inherited from”](#inherited-from-29) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pdfA`](/api/index/interfaces/styledrenderoptions/#pdfa) *** ### pdfUA? [Section titled “pdfUA?”](#pdfua) > `readonly` `optional` **pdfUA?**: `boolean` Defined in: [src/layout/styled-layout.ts:447](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L447) PDF/UA-1 (ISO 14289-1): implies tagged; the XMP carries `pdfuaid:part=1` and the document always gets a title (AT announces it). Combines freely with `pdfA` level-a profiles. #### Inherited from [Section titled “Inherited from”](#inherited-from-30) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`pdfUA`](/api/index/interfaces/styledrenderoptions/#pdfua) *** ### registriesByFamily? [Section titled “registriesByFamily?”](#registriesbyfamily) > `readonly` `optional` **registriesByFamily?**: `ReadonlyMap`<`SubstituteKey`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/layout/styled-layout.ts:352](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L352) Per-run font resolution: when supplied, each text run picks the registry of its declared family (sans→arimo / serif→tinos / mono→cousine via the run’s `w:ascii`) instead of always using `registry`. Absent ⇒ single-family (every run uses `registry`), byte-identical to before. `registry` remains the guaranteed fallback for math/chart/default glyphs and any missing family. #### Inherited from [Section titled “Inherited from”](#inherited-from-31) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`registriesByFamily`](/api/index/interfaces/styledrenderoptions/#registriesbyfamily) *** ### resources? [Section titled “resources?”](#resources) > `readonly` `optional` **resources?**: [`ResourceStore`](/api/index/classes/resourcestore/) Defined in: [src/layout/styled-layout.ts:402](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L402) Content-addressed binary store; image nodes reference it by [ResourceId](/api/index/type-aliases/resourceid/). #### Inherited from [Section titled “Inherited from”](#inherited-from-32) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`resources`](/api/index/interfaces/styledrenderoptions/#resources) *** ### section? [Section titled “section?”](#section) > `readonly` `optional` **section?**: [`SectionProperties`](/api/core/document-model/interfaces/sectionproperties/) Defined in: [src/layout/styled-layout.ts:367](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L367) Single-section legacy entry-point. If `sections` is set it takes precedence and `section` is ignored. #### Inherited from [Section titled “Inherited from”](#inherited-from-33) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`section`](/api/index/interfaces/styledrenderoptions/#section) *** ### sections? [Section titled “sections?”](#sections) > `readonly` `optional` **sections?**: readonly [`Section`](/api/core/document-model/interfaces/section/)\[] Defined in: [src/layout/styled-layout.ts:373](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L373) ECMA-376 §17.6 — ordered list of sections. Each section’s `endIndex` is the exclusive bound into the body array (section N covers `body[sections[N-1].endIndex..sections[N].endIndex)`). #### Inherited from [Section titled “Inherited from”](#inherited-from-34) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`sections`](/api/index/interfaces/styledrenderoptions/#sections) *** ### sheetNames? [Section titled “sheetNames?”](#sheetnames) > `readonly` `optional` **sheetNames?**: `boolean` Defined in: [src/core/converter/ream.ts:160](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L160) Markdown from a SPREADSHEET only: open each sheet with a heading carrying its tab name. On by default — markdown has no pages to tell one sheet from the next by, so without them a workbook is a pile of tables with nothing to say which is which. Set `false` for the bare tables. *** ### signature? [Section titled “signature?”](#signature) > `readonly` `optional` **signature?**: [`SignatureOptions`](/api/index/interfaces/signatureoptions/) Defined in: [src/core/converter/ream.ts:127](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L127) Digitally sign the output (ISO 32000 §12.8, WebCrypto). *** ### signaturePlaceholder? [Section titled “signaturePlaceholder?”](#signatureplaceholder) > `readonly` `optional` **signaturePlaceholder?**: [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/) Defined in: [src/layout/styled-layout.ts:510](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L510) Emit an (invisible) signature field + signature dictionary with placeholder `/ByteRange` and `/Contents` (ISO 32000 §12.8). The result is an UNSIGNED PDF; pass it to `signPdf()` to fill the placeholder with a real PKCS#7 signature. #### Inherited from [Section titled “Inherited from”](#inherited-from-35) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`signaturePlaceholder`](/api/index/interfaces/styledrenderoptions/#signatureplaceholder) *** ### strict? [Section titled “strict?”](#strict) > `readonly` `optional` **strict?**: `boolean` Defined in: [src/core/converter/ream.ts:123](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L123) Throw [ConversionLossError](/api/index/classes/conversionlosserror/) on the first loss instead of reporting it. *** ### tagged? [Section titled “tagged?”](#tagged) > `readonly` `optional` **tagged?**: `boolean` Defined in: [src/layout/styled-layout.ts:441](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L441) Emit a tagged PDF (ISO 32000-1 §14.8): a `/StructTreeRoot` describing reading order, marked content (BDC/EMC + MCID) on body text, and `/Artifact` marking of page decoration. Implied by `pdfA: 'PDF/A-1a'`. Independent of PDF/A otherwise (a plain tagged PDF is useful on its own). #### Inherited from [Section titled “Inherited from”](#inherited-from-36) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`tagged`](/api/index/interfaces/styledrenderoptions/#tagged) *** ### typesetBy? [Section titled “typesetBy?”](#typesetby) > `readonly` `optional` **typesetBy?**: `"word"` Defined in: [src/layout/styled-layout.ts:337](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L337) The application whose rules the document is set by (see TypesetBy). #### Inherited from [Section titled “Inherited from”](#inherited-from-37) [`StyledRenderOptions`](/api/index/interfaces/styledrenderoptions/).[`typesetBy`](/api/index/interfaces/styledrenderoptions/#typesetby) # ReamParseOptions Defined in: [src/core/converter/ream.ts:59](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L59) Options for [Ream.parse](/api/index/classes/ream/#parse). ## Properties [Section titled “Properties”](#properties) ### filters? [Section titled “filters?”](#filters) > `readonly` `optional` **filters?**: `Readonly`<`Record`<`string`, [`StreamFilter`](/api/index/type-aliases/streamfilter/) | `undefined`>> Defined in: [src/core/converter/ream.ts:91](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L91) PDF only: decoders for `/Filter` names the reader does not implement (§7.4). A filter it cannot undo leaves that stream unread — and when the unread one is the cross-reference, the whole document is missing — so a caller who needs such a file supplies the decoder rather than the library carrying one for every filter anyone might write: ```ts // browser: any wasm/JS decoder you ship — brotli-dec-wasm is ~200 KB import brotliPromise from 'brotli-dec-wasm'; const brotli = await brotliPromise; Ream.parse(pdf, { filters: { BrotliDecode: (b) => brotli.decompress(b) } }); ``` ```ts // node, where the runtime already carries one import { brotliDecompressSync } from 'node:zlib'; Ream.parse(pdf, { filters: { BrotliDecode: (b) => brotliDecompressSync(b) } }); ``` Absent, or throwing, the filter is reported unreadable by name. *** ### password? [Section titled “password?”](#password) > `readonly` `optional` **password?**: `string` Defined in: [src/core/converter/ream.ts:68](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L68) The password an encrypted source is opened with: a PDF’s user password (ISO 32000 §7.6) or an OOXML package’s (ECMA-376 §2.3, MS-OFFCRYPTO). Defaults to the empty string, which opens a PDF’s common permissions-only encryption (EP14); an encrypted OOXML package always names a password. *** ### readers? [Section titled “readers?”](#readers) > `readonly` `optional` **readers?**: readonly [`DocumentReader`](/api/index/interfaces/documentreader/)<`SourceDoc`>\[] Defined in: [src/core/converter/ream.ts:61](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L61) Reader registry override; defaults to the built-in docx + xlsx readers. # ShapeItem Defined in: [src/layout/page-doc.ts:558](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L558) DrawingML vector geometry. `shape.transform` maps the shape’s local y-up frame into the top-left page frame (see `flipTransform`). ## Extends [Section titled “Extends”](#extends) * [`PageItemBase`](/api/index/interfaces/pageitembase/) ## Properties [Section titled “Properties”](#properties) ### artifact? [Section titled “artifact?”](#artifact) > `readonly` `optional` **artifact?**: `"pagination"` Defined in: [src/layout/page-doc.ts:430](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L430) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`artifact`](/api/index/interfaces/pageitembase/#artifact) *** ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/layout/page-doc.ts:399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L399) §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). #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`behind`](/api/index/interfaces/pageitembase/#behind) *** ### over? [Section titled “over?”](#over) > `readonly` `optional` **over?**: `boolean` Defined in: [src/layout/page-doc.ts:406](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L406) The item stands IN FRONT of the page’s text and covers it — a drawing floating over a spreadsheet’s cells. A page paints its text after its shapes, so such items are painted as a second layer, every pass again, once the first layer’s text is down. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`over`](/api/index/interfaces/pageitembase/#over) *** ### pictureId? [Section titled “pictureId?”](#pictureid) > `readonly` `optional` **pictureId?**: `number` Defined in: [src/layout/page-doc.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L424) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`pictureId`](/api/index/interfaces/pageitembase/#pictureid) *** ### shape [Section titled “shape”](#shape) > `readonly` **shape**: `VectorShape` Defined in: [src/layout/page-doc.ts:560](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L560) *** ### structId? [Section titled “structId?”](#structid) > `readonly` `optional` **structId?**: `number` Defined in: [src/layout/page-doc.ts:391](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L391) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`structId`](/api/index/interfaces/pageitembase/#structid) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"shape"` Defined in: [src/layout/page-doc.ts:559](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L559) *** ### window? [Section titled “window?”](#window) > `readonly` `optional` **window?**: `PageWindow` Defined in: [src/layout/page-doc.ts:414](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L414) The part of the page the item may paint, when it is cut off — a spreadsheet’s drawing printed in pieces, each piece seen only over the rows and columns of its own page (TableOverlay). Top-left frame, like the item itself. Items sharing a window paint together, in their own order, after the rest of their layer. #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`window`](/api/index/interfaces/pageitembase/#window) *** ### z? [Section titled “z?”](#z) > `readonly` `optional` **z?**: `number` Defined in: [src/layout/page-doc.ts:385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L385) §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. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`z`](/api/index/interfaces/pageitembase/#z) # SignatureOptions Defined in: [src/pdf/signature.ts:50](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L50) Converter convenience: everything needed to emit a placeholder and sign in one call. ## Extends [Section titled “Extends”](#extends) * [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`SignerCredentials`](/api/index/interfaces/signercredentials/) ## Properties [Section titled “Properties”](#properties) ### algorithm? [Section titled “algorithm?”](#algorithm) > `readonly` `optional` **algorithm?**: `"rsa"` | `"ecdsa"` Defined in: [src/pdf/signature.ts:43](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L43) Signature algorithm of the key (default `'rsa'`). #### Inherited from [Section titled “Inherited from”](#inherited-from) [`SignerCredentials`](/api/index/interfaces/signercredentials/).[`algorithm`](/api/index/interfaces/signercredentials/#algorithm) *** ### certificate [Section titled “certificate”](#certificate) > `readonly` **certificate**: `Uint8Array` Defined in: [src/pdf/signature.ts:36](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L36) Signer’s X.509 certificate (DER). #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`SignerCredentials`](/api/index/interfaces/signercredentials/).[`certificate`](/api/index/interfaces/signercredentials/#certificate) *** ### contactInfo? [Section titled “contactInfo?”](#contactinfo) > `readonly` `optional` **contactInfo?**: `string` Defined in: [src/pdf/signature.ts:24](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L24) #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`contactInfo`](/api/index/interfaces/signatureplaceholder/#contactinfo) *** ### extraCertificates? [Section titled “extraCertificates?”](#extracertificates) > `readonly` `optional` **extraCertificates?**: readonly `Uint8Array`<`ArrayBufferLike`>\[] Defined in: [src/pdf/signature.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L45) Optional chain certificates (DER) to embed alongside the signer cert. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`SignerCredentials`](/api/index/interfaces/signercredentials/).[`extraCertificates`](/api/index/interfaces/signercredentials/#extracertificates) *** ### fieldName? [Section titled “fieldName?”](#fieldname) > `readonly` `optional` **fieldName?**: `string` Defined in: [src/pdf/signature.ts:28](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L28) Signature field name (default `"Signature1"`). #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`fieldName`](/api/index/interfaces/signatureplaceholder/#fieldname) *** ### location? [Section titled “location?”](#location) > `readonly` `optional` **location?**: `string` Defined in: [src/pdf/signature.ts:21](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L21) #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`location`](/api/index/interfaces/signatureplaceholder/#location) *** ### name? [Section titled “name?”](#name) > `readonly` `optional` **name?**: `string` Defined in: [src/pdf/signature.ts:23](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L23) Signer name recorded in the dictionary (`/Name`). #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`name`](/api/index/interfaces/signatureplaceholder/#name) *** ### privateKey [Section titled “privateKey”](#privatekey) > `readonly` **privateKey**: `CryptoKey` Defined in: [src/pdf/signature.ts:41](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L41) WebCrypto private key. An RSASSA-PKCS1-v1\_5 key (default) or — when `algorithm` is `'ecdsa'` — an ECDSA key (P-256/P-384/P-521). #### Inherited from [Section titled “Inherited from”](#inherited-from-7) [`SignerCredentials`](/api/index/interfaces/signercredentials/).[`privateKey`](/api/index/interfaces/signercredentials/#privatekey) *** ### reason? [Section titled “reason?”](#reason) > `readonly` `optional` **reason?**: `string` Defined in: [src/pdf/signature.ts:20](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L20) #### Inherited from [Section titled “Inherited from”](#inherited-from-8) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`reason`](/api/index/interfaces/signatureplaceholder/#reason) *** ### reserveBytes? [Section titled “reserveBytes?”](#reservebytes) > `readonly` `optional` **reserveBytes?**: `number` Defined in: [src/pdf/signature.ts:30](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L30) Bytes reserved for the `/Contents` signature hole (default 8192). #### Inherited from [Section titled “Inherited from”](#inherited-from-9) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`reserveBytes`](/api/index/interfaces/signatureplaceholder/#reservebytes) *** ### signingTime? [Section titled “signingTime?”](#signingtime) > `readonly` `optional` **signingTime?**: `Date` Defined in: [src/pdf/signature.ts:26](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L26) Claimed signing time (→ `/M` and the CMS `signingTime` attribute). #### Inherited from [Section titled “Inherited from”](#inherited-from-10) [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/).[`signingTime`](/api/index/interfaces/signatureplaceholder/#signingtime) # SignaturePlaceholder Defined in: [src/pdf/signature.ts:19](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L19) The signature-dictionary metadata stamped at placeholder time by addSignaturePlaceholder. ## Extended by [Section titled “Extended by”](#extended-by) * [`SignatureOptions`](/api/index/interfaces/signatureoptions/) ## Properties [Section titled “Properties”](#properties) ### contactInfo? [Section titled “contactInfo?”](#contactinfo) > `readonly` `optional` **contactInfo?**: `string` Defined in: [src/pdf/signature.ts:24](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L24) *** ### fieldName? [Section titled “fieldName?”](#fieldname) > `readonly` `optional` **fieldName?**: `string` Defined in: [src/pdf/signature.ts:28](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L28) Signature field name (default `"Signature1"`). *** ### location? [Section titled “location?”](#location) > `readonly` `optional` **location?**: `string` Defined in: [src/pdf/signature.ts:21](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L21) *** ### name? [Section titled “name?”](#name) > `readonly` `optional` **name?**: `string` Defined in: [src/pdf/signature.ts:23](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L23) Signer name recorded in the dictionary (`/Name`). *** ### reason? [Section titled “reason?”](#reason) > `readonly` `optional` **reason?**: `string` Defined in: [src/pdf/signature.ts:20](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L20) *** ### reserveBytes? [Section titled “reserveBytes?”](#reservebytes) > `readonly` `optional` **reserveBytes?**: `number` Defined in: [src/pdf/signature.ts:30](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L30) Bytes reserved for the `/Contents` signature hole (default 8192). *** ### signingTime? [Section titled “signingTime?”](#signingtime) > `readonly` `optional` **signingTime?**: `Date` Defined in: [src/pdf/signature.ts:26](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L26) Claimed signing time (→ `/M` and the CMS `signingTime` attribute). # SignerCredentials Defined in: [src/pdf/signature.ts:34](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L34) The signing key material consumed by [signPdf](/api/index/functions/signpdf/). ## Extended by [Section titled “Extended by”](#extended-by) * [`SignatureOptions`](/api/index/interfaces/signatureoptions/) ## Properties [Section titled “Properties”](#properties) ### algorithm? [Section titled “algorithm?”](#algorithm) > `readonly` `optional` **algorithm?**: `"rsa"` | `"ecdsa"` Defined in: [src/pdf/signature.ts:43](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L43) Signature algorithm of the key (default `'rsa'`). *** ### certificate [Section titled “certificate”](#certificate) > `readonly` **certificate**: `Uint8Array` Defined in: [src/pdf/signature.ts:36](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L36) Signer’s X.509 certificate (DER). *** ### extraCertificates? [Section titled “extraCertificates?”](#extracertificates) > `readonly` `optional` **extraCertificates?**: readonly `Uint8Array`<`ArrayBufferLike`>\[] Defined in: [src/pdf/signature.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L45) Optional chain certificates (DER) to embed alongside the signer cert. *** ### privateKey [Section titled “privateKey”](#privatekey) > `readonly` **privateKey**: `CryptoKey` Defined in: [src/pdf/signature.ts:41](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L41) WebCrypto private key. An RSASSA-PKCS1-v1\_5 key (default) or — when `algorithm` is `'ecdsa'` — an ECDSA key (P-256/P-384/P-521). *** ### signingTime? [Section titled “signingTime?”](#signingtime) > `readonly` `optional` **signingTime?**: `Date` Defined in: [src/pdf/signature.ts:46](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf/signature.ts#L46) # StyledRenderOptions Defined in: [src/layout/styled-layout.ts:331](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L331) The full option set the layout engine and PDF emitter consume: the resolved font registry, the style/numbering tables, the section model and page geometry, the after-body apparatus (footnotes, endnotes, comments), and every PDF-output toggle (PDF/A, tagged, PDF/UA, encryption, attachments, signatures). Only `registry` and `styles` are required; everything else falls back to a sensible default. ## Properties [Section titled “Properties”](#properties) ### attachments? [Section titled “attachments?”](#attachments) > `readonly` `optional` **attachments?**: readonly `AttachedFile`\[] Defined in: [src/layout/styled-layout.ts:503](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L503) Files to embed as associated files (catalog `/AF` + `/Names` `/EmbeddedFiles`). Only emitted for plain PDF and PDF/A-3 (PDF/A-1/2 forbid arbitrary embedded files); ignored for PDF/A-1/2. The docx/xlsx converters can embed the source document automatically via `embedSource`. *** ### charts? [Section titled “charts?”](#charts) > `readonly` `optional` **charts?**: `ReadonlyMap`<`string`, [`Chart`](/api/core/document-model/interfaces/chart/)> Defined in: [src/layout/styled-layout.ts:407](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L407) Parsed charts keyed by relationship id (`ChartBlock.chartRelId`). Supplied by the converter, which resolves the chart parts from the package. *** ### commentAnnotations? [Section titled “commentAnnotations?”](#commentannotations) > `readonly` `optional` **commentAnnotations?**: `boolean` Defined in: [src/layout/styled-layout.ts:400](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L400) CM2b — also emit each comment as a native PDF `/Text` (sticky-note) annotation at its marker. Opt-in and interactive-only: suppressed under PDF/A and tagged output (where it would need annotation/appearance conformance), since the clickable marker + Comments section already carry the content there. *** ### comments? [Section titled “comments?”](#comments) > `readonly` `optional` **comments?**: `ReadonlyMap`<`string`, [`Comment`](/api/core/document-model/interfaces/comment/)> Defined in: [src/layout/styled-layout.ts:392](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L392) §17.13.4 review comments by id; rendered as superscript markers in text and a list after the body (after endnotes), each with its author/date. *** ### compatibilityMode? [Section titled “compatibilityMode?”](#compatibilitymode) > `readonly` `optional` **compatibilityMode?**: `number` Defined in: [src/layout/styled-layout.ts:485](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L485) \[MS-DOCX] `compatibilityMode` — the version of Word whose layout the document asks for; a Word document that states none is an older Word’s (see legacyTableOutdent). *** ### defaultTabStopPt? [Section titled “defaultTabStopPt?”](#defaulttabstoppt) > `readonly` `optional` **defaultTabStopPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/styled-layout.ts:490](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L490) ECMA-376 §17.15.1.25 `w:defaultTabStop` — the interval of the automatic tab stops, in points. Absent ⇒ 36 (half an inch, the standard’s default). *** ### doNotExpandShiftReturn? [Section titled “doNotExpandShiftReturn?”](#donotexpandshiftreturn) > `readonly` `optional` **doNotExpandShiftReturn?**: `boolean` Defined in: [src/layout/styled-layout.ts:467](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L467) ECMA-376 §17.15.1.35 `w:doNotExpandShiftReturn` — when set, a justified line that ends at a soft line break (`w:br`) is drawn at its natural width instead of being stretched out to the measure. *** ### embeddedFonts? [Section titled “embeddedFonts?”](#embeddedfonts) > `readonly` `optional` **embeddedFonts?**: `ReadonlyMap`<`string`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/layout/styled-layout.ts:358](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L358) The document’s OWN embedded fonts (`word/fonts/*.odttf`, de-obfuscated), keyed by normalized font name. A run whose `w:ascii` matches one renders with the real font — glyph-exact, no substitution. Highest priority. *** ### encrypt? [Section titled “encrypt?”](#encrypt) > `readonly` `optional` **encrypt?**: [`PdfEncryptOptions`](/api/index/interfaces/pdfencryptoptions/) Defined in: [src/layout/styled-layout.ts:496](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L496) §7.6 PDF encryption (AES-256, R6). Only honoured on the ASYNC conversion path (WebCrypto); mutually exclusive with `pdfA` (ISO 19005 forbids `/Encrypt`) and with signatures (v1). *** ### endnotes? [Section titled “endnotes?”](#endnotes) > `readonly` `optional` **endnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:387](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L387) *** ### floatsOverText? [Section titled “floatsOverText?”](#floatsovertext) > `readonly` `optional` **floatsOverText?**: `boolean` Defined in: [src/layout/styled-layout.ts:344](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L344) The document’s front floats COVER the text under them. A spreadsheet’s drawings float over its cells — a note’s box hides the value beside its cell, a chart the data it sits on — where the passes a page is painted in put every line of text over every shape. See `FlowDoc.floatsOverText`. *** ### footnotes? [Section titled “footnotes?”](#footnotes) > `readonly` `optional` **footnotes?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:386](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L386) §17.11 notes content by id. Footnotes render in a reserved band at the bottom of the referencing page; endnotes flow after the body. *** ### gridLinePitchPt? [Section titled “gridLinePitchPt?”](#gridlinepitchpt) > `readonly` `optional` **gridLinePitchPt?**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/styled-layout.ts:379](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L379) §17.6.5 — the pitch of the document grid the text is laid on. Set by the layout itself, per section (see SectionRenderCtx.options); callers state it on the section, not here. *** ### gutterAtTop? [Section titled “gutterAtTop?”](#gutterattop) > `readonly` `optional` **gutterAtTop?**: `boolean` Defined in: [src/layout/styled-layout.ts:479](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L479) ECMA-376 §17.15.1.38 `w:gutterAtTop` — the binding space belongs to the TOP margin, not the left. *** ### headersFooters? [Section titled “headersFooters?”](#headersfooters) > `readonly` `optional` **headersFooters?**: `ReadonlyMap`<`string`, readonly [`BodyElement`](/api/core/document-model/type-aliases/bodyelement/)\[]> Defined in: [src/layout/styled-layout.ts:381](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L381) Header/footer body content keyed by relationship id. *** ### hyphenator? [Section titled “hyphenator?”](#hyphenator) > `readonly` `optional` **hyphenator?**: [`Hyphenator`](/api/index/interfaces/hyphenator/) Defined in: [src/layout/styled-layout.ts:419](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L419) Optional Liang hyphenator. When set, each word token is split at allowed hyphenation positions and offered to Knuth-Plass as potential break points (with a small disincentive). Improves justified paragraph rags. *** ### info? [Section titled “info?”](#info) > `readonly` `optional` **info?**: [`DocumentInfo`](/api/index/interfaces/documentinfo/) Defined in: [src/layout/styled-layout.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L424) Optional `/Info` dictionary metadata (ISO 32000-1 §14.3.3). Unset fields are omitted; if any field is set a PDF `/Info` entry is emitted. *** ### language? [Section titled “language?”](#language) > `readonly` `optional` **language?**: `string` Defined in: [src/layout/styled-layout.ts:461](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L461) Document natural language (BCP 47, e.g. `"en-US"`, `"ru-RU"`) for the tagged-PDF catalog `/Lang` (§14.9.2). Defaults to `"en-US"`. The docx converter fills this from the document’s default `w:lang`. *** ### layoutProfile? [Section titled “layoutProfile?”](#layoutprofile) > `readonly` `optional` **layoutProfile?**: `LayoutProfile` Defined in: [src/layout/styled-layout.ts:335](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L335) Renderer-compatibility profile for the line-height model (default `'ream'`). *** ### losses? [Section titled “losses?”](#losses) > `readonly` `optional` **losses?**: [`Loss`](/api/index/interfaces/loss/)\[] Defined in: [src/layout/styled-layout.ts:517](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L517) Sink the layout writes its [Loss](/api/index/interfaces/loss/) entries into: the characters no face on hand has a glyph for, which the page draws as empty boxes (see `undrawnLoss`). The converter always supplies one and returns it with the output; omitted ⇒ the boxes are drawn all the same, and nothing says so. *** ### marginBottom? [Section titled “marginBottom?”](#marginbottom) > `readonly` `optional` **marginBottom?**: `number` Defined in: [src/layout/styled-layout.ts:413](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L413) *** ### marginLeft? [Section titled “marginLeft?”](#marginleft) > `readonly` `optional` **marginLeft?**: `number` Defined in: [src/layout/styled-layout.ts:410](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L410) *** ### marginRight? [Section titled “marginRight?”](#marginright) > `readonly` `optional` **marginRight?**: `number` Defined in: [src/layout/styled-layout.ts:411](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L411) *** ### marginTop? [Section titled “marginTop?”](#margintop) > `readonly` `optional` **marginTop?**: `number` Defined in: [src/layout/styled-layout.ts:412](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L412) *** ### numbering? [Section titled “numbering?”](#numbering) > `readonly` `optional` **numbering?**: [`Numbering`](/api/core/document-model/interfaces/numbering/) Defined in: [src/layout/styled-layout.ts:362](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L362) §17.9 numbering definitions; applied to list paragraphs before layout. *** ### outline? [Section titled “outline?”](#outline) > `readonly` `optional` **outline?**: `boolean` | [`PdfOutlineOptions`](/api/index/interfaces/pdfoutlineoptions/) Defined in: [src/layout/styled-layout.ts:455](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L455) The PDF’s document outline — the bookmarks panel a viewer shows beside the pages (ISO 32000-1 §12.3.3) — built from the document’s headings, the way Word and LibreOffice export one. On by default: a document with headings gets an outline, one without gets none. `false` writes none; an object tunes it (see [PdfOutlineOptions](/api/index/interfaces/pdfoutlineoptions/)). *** ### pageBackgroundColorHex? [Section titled “pageBackgroundColorHex?”](#pagebackgroundcolorhex) > `readonly` `optional` **pageBackgroundColorHex?**: `string` Defined in: [src/layout/styled-layout.ts:472](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L472) ECMA-376 §17.2.1 `w:background` — the colour every page is painted before anything else is drawn on it. Absent ⇒ the paper’s own white. *** ### pageBackgroundFill? [Section titled “pageBackgroundFill?”](#pagebackgroundfill) > `readonly` `optional` **pageBackgroundFill?**: [`ShapeFill`](/api/core/document-model/interfaces/shapefill/) Defined in: [src/layout/styled-layout.ts:474](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L474) §17.2.1 — the background’s gradient or picture, when it has one. *** ### pageHeight? [Section titled “pageHeight?”](#pageheight) > `readonly` `optional` **pageHeight?**: `number` Defined in: [src/layout/styled-layout.ts:409](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L409) *** ### pageWidth? [Section titled “pageWidth?”](#pagewidth) > `readonly` `optional` **pageWidth?**: `number` Defined in: [src/layout/styled-layout.ts:408](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L408) *** ### pdfA? [Section titled “pdfA?”](#pdfa) > `readonly` `optional` **pdfA?**: `PdfALevel` Defined in: [src/layout/styled-layout.ts:434](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L434) When set, emit a PDF/A-conformant file: an OutputIntent with an embedded sRGB ICC profile, document XMP `/Metadata` (the pdfaid identifier), `/ID`, and subset-tagged fonts with a `/CIDSet`. The profile picks the rest: part 1 → PDF 1.4 + flattened image alpha (no transparency); part 2/3 → PDF 1.7 + preserved transparency (image `/SMask` + page group); part 3 → may carry embedded associated files (see `attachments`); level a → tagged (logical structure); b → visual; u → b + Unicode mapping. *** ### pdfUA? [Section titled “pdfUA?”](#pdfua) > `readonly` `optional` **pdfUA?**: `boolean` Defined in: [src/layout/styled-layout.ts:447](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L447) PDF/UA-1 (ISO 14289-1): implies tagged; the XMP carries `pdfuaid:part=1` and the document always gets a title (AT announces it). Combines freely with `pdfA` level-a profiles. *** ### registriesByFamily? [Section titled “registriesByFamily?”](#registriesbyfamily) > `readonly` `optional` **registriesByFamily?**: `ReadonlyMap`<`SubstituteKey`, [`FontRegistry`](/api/index/classes/fontregistry/)> Defined in: [src/layout/styled-layout.ts:352](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L352) Per-run font resolution: when supplied, each text run picks the registry of its declared family (sans→arimo / serif→tinos / mono→cousine via the run’s `w:ascii`) instead of always using `registry`. Absent ⇒ single-family (every run uses `registry`), byte-identical to before. `registry` remains the guaranteed fallback for math/chart/default glyphs and any missing family. *** ### registry [Section titled “registry”](#registry) > `readonly` **registry**: [`FontRegistry`](/api/index/classes/fontregistry/) Defined in: [src/layout/styled-layout.ts:333](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L333) The resolved font set every run draws with (the guaranteed fallback registry). *** ### resources? [Section titled “resources?”](#resources) > `readonly` `optional` **resources?**: [`ResourceStore`](/api/index/classes/resourcestore/) Defined in: [src/layout/styled-layout.ts:402](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L402) Content-addressed binary store; image nodes reference it by [ResourceId](/api/index/type-aliases/resourceid/). *** ### section? [Section titled “section?”](#section) > `readonly` `optional` **section?**: [`SectionProperties`](/api/core/document-model/interfaces/sectionproperties/) Defined in: [src/layout/styled-layout.ts:367](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L367) Single-section legacy entry-point. If `sections` is set it takes precedence and `section` is ignored. *** ### sections? [Section titled “sections?”](#sections) > `readonly` `optional` **sections?**: readonly [`Section`](/api/core/document-model/interfaces/section/)\[] Defined in: [src/layout/styled-layout.ts:373](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L373) ECMA-376 §17.6 — ordered list of sections. Each section’s `endIndex` is the exclusive bound into the body array (section N covers `body[sections[N-1].endIndex..sections[N].endIndex)`). *** ### signaturePlaceholder? [Section titled “signaturePlaceholder?”](#signatureplaceholder) > `readonly` `optional` **signaturePlaceholder?**: [`SignaturePlaceholder`](/api/index/interfaces/signatureplaceholder/) Defined in: [src/layout/styled-layout.ts:510](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L510) Emit an (invisible) signature field + signature dictionary with placeholder `/ByteRange` and `/Contents` (ISO 32000 §12.8). The result is an UNSIGNED PDF; pass it to `signPdf()` to fill the placeholder with a real PKCS#7 signature. *** ### styles [Section titled “styles”](#styles) > `readonly` **styles**: [`StyleSheet`](/api/core/document-model/interfaces/stylesheet/) Defined in: [src/layout/styled-layout.ts:360](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L360) §18.8 / ECMA-376 style table the cascade resolves against. *** ### tagged? [Section titled “tagged?”](#tagged) > `readonly` `optional` **tagged?**: `boolean` Defined in: [src/layout/styled-layout.ts:441](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L441) Emit a tagged PDF (ISO 32000-1 §14.8): a `/StructTreeRoot` describing reading order, marked content (BDC/EMC + MCID) on body text, and `/Artifact` marking of page decoration. Implied by `pdfA: 'PDF/A-1a'`. Independent of PDF/A otherwise (a plain tagged PDF is useful on its own). *** ### typesetBy? [Section titled “typesetBy?”](#typesetby) > `readonly` `optional` **typesetBy?**: `"word"` Defined in: [src/layout/styled-layout.ts:337](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/styled-layout.ts#L337) The application whose rules the document is set by (see TypesetBy). # SvgWriteOptions Defined in: [src/svg/svg-writer.ts:36](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/svg/svg-writer.ts#L36) Options for [writeSvg](/api/index/functions/writesvg/). ## Properties [Section titled “Properties”](#properties) ### pageGap? [Section titled “pageGap?”](#pagegap) > `readonly` `optional` **pageGap?**: `number` Defined in: [src/svg/svg-writer.ts:38](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/svg/svg-writer.ts#L38) Gap between stacked pages, in px/pt (default 12). # TextLineItem Defined in: [src/layout/page-doc.ts:442](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L442) A laid-out line of text (tokens carry their fonts/sizes/positions). ## Extends [Section titled “Extends”](#extends) * [`PageItemBase`](/api/index/interfaces/pageitembase/) ## Properties [Section titled “Properties”](#properties) ### artifact? [Section titled “artifact?”](#artifact) > `readonly` `optional` **artifact?**: `"pagination"` Defined in: [src/layout/page-doc.ts:430](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L430) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`artifact`](/api/index/interfaces/pageitembase/#artifact) *** ### baselineY [Section titled “baselineY”](#baseliney) > `readonly` **baselineY**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:447](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L447) Distance from the page TOP down to the text baseline. *** ### behind? [Section titled “behind?”](#behind) > `readonly` `optional` **behind?**: `boolean` Defined in: [src/layout/page-doc.ts:399](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L399) §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). #### Inherited from [Section titled “Inherited from”](#inherited-from-1) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`behind`](/api/index/interfaces/pageitembase/#behind) *** ### clip? [Section titled “clip?”](#clip) > `readonly` `optional` **clip?**: `object` Defined in: [src/layout/page-doc.ts:448](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L448) #### height [Section titled “height”](#height) > `readonly` **height**: [`Pt`](/api/index/type-aliases/pt/) #### width [Section titled “width”](#width) > `readonly` **width**: [`Pt`](/api/index/type-aliases/pt/) #### x [Section titled “x”](#x) > `readonly` **x**: [`Pt`](/api/index/type-aliases/pt/) #### y [Section titled “y”](#y) > `readonly` **y**: [`Pt`](/api/index/type-aliases/pt/) *** ### line [Section titled “line”](#line) > `readonly` **line**: `Line` Defined in: [src/layout/page-doc.ts:444](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L444) *** ### originX [Section titled “originX”](#originx) > `readonly` **originX**: [`Pt`](/api/index/type-aliases/pt/) Defined in: [src/layout/page-doc.ts:445](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L445) *** ### over? [Section titled “over?”](#over) > `readonly` `optional` **over?**: `boolean` Defined in: [src/layout/page-doc.ts:406](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L406) The item stands IN FRONT of the page’s text and covers it — a drawing floating over a spreadsheet’s cells. A page paints its text after its shapes, so such items are painted as a second layer, every pass again, once the first layer’s text is down. #### Inherited from [Section titled “Inherited from”](#inherited-from-2) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`over`](/api/index/interfaces/pageitembase/#over) *** ### pictureId? [Section titled “pictureId?”](#pictureid) > `readonly` `optional` **pictureId?**: `number` Defined in: [src/layout/page-doc.ts:424](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L424) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-3) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`pictureId`](/api/index/interfaces/pageitembase/#pictureid) *** ### rotationDeg? [Section titled “rotationDeg?”](#rotationdeg) > `readonly` `optional` **rotationDeg?**: `number` Defined in: [src/layout/page-doc.ts:455](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L455) 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. *** ### structId? [Section titled “structId?”](#structid) > `readonly` `optional` **structId?**: `number` Defined in: [src/layout/page-doc.ts:391](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L391) 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. #### Inherited from [Section titled “Inherited from”](#inherited-from-4) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`structId`](/api/index/interfaces/pageitembase/#structid) *** ### type [Section titled “type”](#type) > `readonly` **type**: `"line"` Defined in: [src/layout/page-doc.ts:443](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L443) *** ### warp? [Section titled “warp?”](#warp) > `readonly` `optional` **warp?**: `TextLineWarp` Defined in: [src/layout/page-doc.ts:461](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L461) §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. *** ### window? [Section titled “window?”](#window) > `readonly` `optional` **window?**: `PageWindow` Defined in: [src/layout/page-doc.ts:414](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L414) The part of the page the item may paint, when it is cut off — a spreadsheet’s drawing printed in pieces, each piece seen only over the rows and columns of its own page (TableOverlay). Top-left frame, like the item itself. Items sharing a window paint together, in their own order, after the rest of their layer. #### Inherited from [Section titled “Inherited from”](#inherited-from-5) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`window`](/api/index/interfaces/pageitembase/#window) *** ### z? [Section titled “z?”](#z) > `readonly` `optional` **z?**: `number` Defined in: [src/layout/page-doc.ts:385](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L385) §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. #### Inherited from [Section titled “Inherited from”](#inherited-from-6) [`PageItemBase`](/api/index/interfaces/pageitembase/).[`z`](/api/index/interfaces/pageitembase/#z) # WriteOptions Defined in: [src/core/ir/adapters.ts:53](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L53) Writer-call options. Open-ended; per-writer knobs live in the writers. ## Indexable [Section titled “Indexable”](#indexable) > \[`key`: `string`]: `unknown` # WriteResult Defined in: [src/core/ir/adapters.ts:58](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L58) The result of [DocumentWriter.write](/api/index/interfaces/documentwriter/#write): the encoded bytes plus any losses. ## Properties [Section titled “Properties”](#properties) ### bytes [Section titled “bytes”](#bytes) > `readonly` **bytes**: `Uint8Array` Defined in: [src/core/ir/adapters.ts:60](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L60) The encoded output bytes. *** ### losses [Section titled “losses”](#losses) > `readonly` **losses**: [`LossReport`](/api/index/type-aliases/lossreport/) Defined in: [src/core/ir/adapters.ts:62](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/adapters.ts#L62) Losses recorded while writing. # FamilyKey > **FamilyKey** = `"arimo"` | `"tinos"` | `"cousine"` | `"carlito"` | `"caladea"` | `"notoserif"` Defined in: [src/core/fonts/remote-fonts.ts:41](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L41) A curated open substitute family (the Croscore + Carlito/Caladea set, like LibreOffice), or the family a twin borrows the letters it lacks from (see companionOf). # Feature > **Feature** = `string` Defined in: [src/core/ir/features.ts:16](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/features.ts#L16) A capability/loss feature name. A plain string, hierarchical via dot-segments (`'tables.nested'` ⊂ `'tables'`); the vocabulary is OPEN so third-party adapters can introduce their own. [FEATURES](/api/index/variables/features/) canonicalizes the names the core uses. # FetchLike > **FetchLike** = (`url`) => `Promise`<{ `arrayBuffer`: () => `Promise`<`ArrayBuffer`>; `ok`: `boolean`; }> Defined in: [src/core/fonts/remote-fonts.ts:578](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L578) A minimal `fetch`-like function (injectable for tests / offline use). ## Parameters [Section titled “Parameters”](#parameters) ### url [Section titled “url”](#url) `string` ## Returns [Section titled “Returns”](#returns) `Promise`<{ `arrayBuffer`: () => `Promise`<`ArrayBuffer`>; `ok`: `boolean`; }> # FontAnswer > **FontAnswer** = { `bytes`: `Uint8Array`; `faceName`: `string`; `kind`: `"bytes"`; `providerId`: `string`; } | { `kind`: `"none"`; } Defined in: [src/core/fonts/provider.ts:46](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L46) A provider’s answer: resolved bytes, or `none` to fall through to the next provider. ## Union Members [Section titled “Union Members”](#union-members) ### Type Literal [Section titled “Type Literal”](#type-literal) { `bytes`: `Uint8Array`; `faceName`: `string`; `kind`: `"bytes"`; `providerId`: `string`; } #### bytes [Section titled “bytes”](#bytes) > `readonly` **bytes**: `Uint8Array` #### faceName [Section titled “faceName”](#facename) > `readonly` **faceName**: `string` Face the bytes actually are (for substitution reporting). #### kind [Section titled “kind”](#kind) > `readonly` **kind**: `"bytes"` #### providerId [Section titled “providerId”](#providerid) > `readonly` **providerId**: `string` Which provider answered (chain bookkeeping). *** ### Type Literal [Section titled “Type Literal”](#type-literal-1) { `kind`: `"none"`; } # FontVariant > **FontVariant** = `"regular"` | `"bold"` | `"italic"` | `"boldItalic"` Defined in: [src/core/font/font-registry.ts:9](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/font-registry.ts#L9) A font style slot: regular, bold, italic or bold-italic. # GlyphSeg > **GlyphSeg** = { `op`: `"move"`; `x`: `number`; `y`: `number`; } | { `op`: `"line"`; `x`: `number`; `y`: `number`; } | { `op`: `"cubic"`; `x`: `number`; `x1`: `number`; `x2`: `number`; `y`: `number`; `y1`: `number`; `y2`: `number`; } | { `op`: `"close"`; } Defined in: [src/core/font/ttf-build.ts:18](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/font/ttf-build.ts#L18) One piece of a glyph’s outline, in a one-unit em with y up. # KnownFeature > **KnownFeature** = *typeof* [`FEATURES`](/api/index/variables/features/)\[keyof *typeof* [`FEATURES`](/api/index/variables/features/)] Defined in: [src/core/ir/features.ts:45](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/features.ts#L45) Union of the canonical [FEATURES](/api/index/variables/features/) values. # LossReport > **LossReport** = `ReadonlyArray`<[`Loss`](/api/index/interfaces/loss/)> Defined in: [src/core/ir/loss.ts:31](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L31) An ordered, read-only list of [Loss](/api/index/interfaces/loss/) entries, returned alongside the output. # LossSeverity > **LossSeverity** = `"dropped"` | `"degraded"` | `"substituted"` Defined in: [src/core/ir/loss.ts:16](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/loss.ts#L16) * `dropped` — content is absent from the output (e.g. math → markdown). * `degraded` — content survives with reduced fidelity (e.g. gradient → flat fill). * `substituted` — content was replaced by an equivalent (e.g. font substitution). # PageItem > **PageItem** = [`TextLineItem`](/api/index/interfaces/textlineitem/) | [`BorderItem`](/api/index/interfaces/borderitem/) | [`FillItem`](/api/index/interfaces/fillitem/) | [`ImageItem`](/api/index/interfaces/imageitem/) | [`ShapeItem`](/api/index/interfaces/shapeitem/) Defined in: [src/layout/page-doc.ts:564](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/layout/page-doc.ts#L564) A positioned item on a laid-out page: a text line, border, fill, image, or vector shape. # Pt > **Pt** = `number` & `object` Defined in: [src/core/ir/units.ts:19](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/units.ts#L19) The IR’s one length unit: PostScript points (1/72 inch), as a branded number. Readers convert their format-native units (twips, half-points, EMU, …) to `Pt` at the boundary, and writers convert out the same way. The brand is shallow — a `Pt` is assignable to `number` so layout arithmetic reads it freely; only *constructing* one requires [pt](/api/index/functions/pt/) or a `*ToPt` converter. ## Type Declaration [Section titled “Type Declaration”](#type-declaration) ### \_\_brand [Section titled “\_\_brand”](#__brand) > `readonly` **\_\_brand**: `"pt"` # ReamTarget > **ReamTarget** = `"pdf"` | `"svg"` | `"html"` | `"md"` | `"docx"` | `"xlsx"` Defined in: [src/core/converter/ream.ts:50](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/converter/ream.ts#L50) The output formats [Ream.convert](/api/index/classes/ream/#convert) can produce. # ResourceId > **ResourceId** = `string` & `object` Defined in: [src/core/ir/resources.ts:16](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/resources.ts#L16) A content-addressed id for a binary resource held in a [ResourceStore](/api/index/classes/resourcestore/). ## Type Declaration [Section titled “Type Declaration”](#type-declaration) ### \_\_brand [Section titled “\_\_brand”](#__brand) > `readonly` **\_\_brand**: `"resource-id"` # ScriptKey > **ScriptKey** = `"jp"` | `"kr"` | `"sc"` | `"arabic"` | `"hebrew"` | `"thai"` | `"devanagari"` | `"bengali"` | `"gurmukhi"` | `"gujarati"` | `"oriya"` | `"tamil"` | `"telugu"` | `"kannada"` | `"malayalam"` | `"symbols1"` | `"symbols2"` Defined in: [src/core/fonts/remote-fonts.ts:55](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/remote-fonts.ts#L55) A WRITING SYSTEM the curated five cannot draw at all. They are Latin families — Greek, Cyrillic and Hebrew ride along, everything else is a notdef box — and 2145 characters of the corpus fall outside them: Han, Kana, Hangul, Arabic, the geometric symbols a form’s checkbox is made of. The scripts of India are outside them too, and a line of Hindi, Tamil or Bengali came out as a row of boxes. These are fetched only when a document actually holds such a character, and only in the regular weight: Noto Sans SC is ten megabytes, and a bold run in it is better stroked (see `SyntheticFace`) than downloaded four times over. # StreamFilter > **StreamFilter** = (`bytes`) => `Uint8Array` Defined in: [src/pdf-reader/document.ts:386](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf-reader/document.ts#L386) A decoder for one `/Filter` name, supplied by the caller. §7.4 leaves the filter set open, and a reader is not obliged to implement every one — but it cannot pretend, either: an undecoded stream is not the stream. Brotli-Prototype-FileA.pdf compresses all thirty of its streams with `/BrotliDecode` (PDF 2.0), including the cross-reference, so unread it is a document with no pages at all. Rather than carry a decoder for every filter anyone might write — Brotli alone is RFC 7932’s context-modelled Huffman scheme and a 122 KB static dictionary, in every bundle, for a filter almost nothing produces — the reader takes one from whoever needs it: ```ts // browser: any wasm/JS decoder you ship — brotli-dec-wasm is ~200 KB import brotliPromise from 'brotli-dec-wasm'; const brotli = await brotliPromise; Ream.parse(pdf, { filters: { BrotliDecode: (b) => brotli.decompress(b) } }); ``` ```ts // node, where the runtime already carries one import { brotliDecompressSync } from 'node:zlib'; Ream.parse(pdf, { filters: { BrotliDecode: (b) => brotliDecompressSync(b) } }); ``` A decoder that throws is treated as one that was never supplied: the filter is reported unreadable rather than its failure escaping into the parse. ## Parameters [Section titled “Parameters”](#parameters) ### bytes [Section titled “bytes”](#bytes) `Uint8Array` ## Returns [Section titled “Returns”](#returns) `Uint8Array` # StreamFilters > **StreamFilters** = `Readonly`<`Record`<`string`, [`StreamFilter`](/api/index/type-aliases/streamfilter/) | `undefined`>> Defined in: [src/pdf-reader/document.ts:389](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/pdf-reader/document.ts#L389) Caller-supplied [StreamFilter](/api/index/type-aliases/streamfilter/)s, keyed by `/Filter` name (no slash). # SupportedLanguage > **SupportedLanguage** = `"en-us"` | `"ru"` Defined in: [src/core/hyphenation/index.ts:12](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/hyphenation/index.ts#L12) A language for which bundled hyphenation patterns exist. # docxReader > `const` **docxReader**: [`DocumentReader`](/api/index/interfaces/documentreader/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> Defined in: [src/word/docx-reader.ts:285](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-reader.ts#L285) The [DocumentReader](/api/index/interfaces/documentreader/) registration for `.docx`: its id, the FlowDoc feature set it supports, the sniffer, and the [readDocx](/api/index/functions/readdocx/) entry point. # docxWriter > `const` **docxWriter**: [`DocumentWriter`](/api/index/interfaces/documentwriter/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> Defined in: [src/word/docx-writer.ts:958](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/word/docx-writer.ts#L958) The [DocumentWriter](/api/index/interfaces/documentwriter/) registration for `.docx`: its id, the medium it consumes (`flow`), the feature set it supports, and the [writeDocx](/api/index/functions/writedocx/) entry point. # FEATURES > `const` **FEATURES**: `object` Defined in: [src/core/ir/features.ts:19](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/ir/features.ts#L19) The feature names the core declares, so the docs’ capability matrix is code-generated. ## Type Declaration [Section titled “Type Declaration”](#type-declaration) ### cellFormatting [Section titled “cellFormatting”](#cellformatting) > `readonly` **cellFormatting**: `"cellFormatting"` = `'cellFormatting'` ### charts [Section titled “charts”](#charts) > `readonly` **charts**: `"charts"` = `'charts'` ### fontsEmbedding [Section titled “fontsEmbedding”](#fontsembedding) > `readonly` **fontsEmbedding**: `"fonts.embedding"` = `'fonts.embedding'` ### fontsSubstitution [Section titled “fontsSubstitution”](#fontssubstitution) > `readonly` **fontsSubstitution**: `"fonts.substitution"` = `'fonts.substitution'` ### headersFooters [Section titled “headersFooters”](#headersfooters) > `readonly` **headersFooters**: `"headersFooters"` = `'headersFooters'` ### hyperlinks [Section titled “hyperlinks”](#hyperlinks) > `readonly` **hyperlinks**: `"hyperlinks"` = `'hyperlinks'` ### hyphenation [Section titled “hyphenation”](#hyphenation) > `readonly` **hyphenation**: `"hyphenation"` = `'hyphenation'` ### images [Section titled “images”](#images) > `readonly` **images**: `"images"` = `'images'` ### imagesJp2 [Section titled “imagesJp2”](#imagesjp2) > `readonly` **imagesJp2**: `"images.jp2"` = `'images.jp2'` ### lists [Section titled “lists”](#lists) > `readonly` **lists**: `"lists"` = `'lists'` ### math [Section titled “math”](#math) > `readonly` **math**: `"math"` = `'math'` ### pdfA [Section titled “pdfA”](#pdfa) > `readonly` **pdfA**: `"pdf.archival"` = `'pdf.archival'` ### pdfSignatures [Section titled “pdfSignatures”](#pdfsignatures) > `readonly` **pdfSignatures**: `"pdf.signatures"` = `'pdf.signatures'` ### pdfTagged [Section titled “pdfTagged”](#pdftagged) > `readonly` **pdfTagged**: `"pdf.tagged"` = `'pdf.tagged'` ### rtl [Section titled “rtl”](#rtl) > `readonly` **rtl**: `"rtl"` = `'rtl'` ### sections [Section titled “sections”](#sections) > `readonly` **sections**: `"sections"` = `'sections'` ### shapes [Section titled “shapes”](#shapes) > `readonly` **shapes**: `"shapes"` = `'shapes'` ### smartArt [Section titled “smartArt”](#smartart) > `readonly` **smartArt**: `"shapes.smartArt"` = `'shapes.smartArt'` ### tables [Section titled “tables”](#tables) > `readonly` **tables**: `"tables"` = `'tables'` ### tablesNested [Section titled “tablesNested”](#tablesnested) > `readonly` **tablesNested**: `"tables.nested"` = `'tables.nested'` ### text [Section titled “text”](#text) > `readonly` **text**: `"text"` = `'text'` ### trackedChanges [Section titled “trackedChanges”](#trackedchanges) > `readonly` **trackedChanges**: `"trackedChanges"` = `'trackedChanges'` # htmlWriter > `const` **htmlWriter**: [`DocumentWriter`](/api/index/interfaces/documentwriter/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> Defined in: [src/html/html-writer.ts:176](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/html/html-writer.ts#L176) The flow-medium [DocumentWriter](/api/index/interfaces/documentwriter/) adapter (id `'html'`), wrapping [writeHtml](/api/index/functions/writehtml/), with the set of [FEATURES](/api/index/variables/features/) it renders. # markdownWriter > `const` **markdownWriter**: [`DocumentWriter`](/api/index/interfaces/documentwriter/)<[`FlowDoc`](/api/index/interfaces/flowdoc/)> Defined in: [src/markdown/markdown-writer.ts:117](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/markdown/markdown-writer.ts#L117) The flow-medium [DocumentWriter](/api/index/interfaces/documentwriter/) adapter (id `'md'`), wrapping [writeMarkdown](/api/index/functions/writemarkdown/), with the set of [FEATURES](/api/index/variables/features/) it renders. # NO_FONT > `const` **NO\_FONT**: [`FontAnswer`](/api/index/type-aliases/fontanswer/) Defined in: [src/core/fonts/provider.ts:58](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/core/fonts/provider.ts#L58) The shared `none` answer — a provider that cannot satisfy a request. # svgWriter > `const` **svgWriter**: [`DocumentWriter`](/api/index/interfaces/documentwriter/)<[`LaidOutDocument`](/api/index/interfaces/laidoutdocument/)> Defined in: [src/svg/svg-writer.ts:95](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/svg/svg-writer.ts#L95) The page-medium [DocumentWriter](/api/index/interfaces/documentwriter/) adapter (id `'svg'`), wrapping [writeSvg](/api/index/functions/writesvg/), with the set of [FEATURES](/api/index/variables/features/) it renders. # xlsxReader > `const` **xlsxReader**: [`DocumentReader`](/api/index/interfaces/documentreader/)<`SheetDoc`> Defined in: [src/excel/xlsx-reader.ts:1305](https://github.com/alex-krassavin/reamkit/blob/e3129870038c308ac93aac6b2f10a70eb6eec62f/src/excel/xlsx-reader.ts#L1305) The OOXML `.xlsx` [DocumentReader](/api/index/interfaces/documentreader/): sniffs the OPC ZIP’s directory for `xl/workbook.xml` and reads it into a SheetDoc. The reader’s native tree is the SheetDoc; the facade/Ream project it to a [FlowDoc](/api/index/interfaces/flowdoc/) for rendering (E-SHEET SB1).