Skip to content
Inkoxide

Search covers every page and heading of the docs. Use ↑ ↓ and ↵.

Schema reference

Every node, style key and value of document schema version 1.

Edit this page

Conventions

  • Units. Every length is in PDF points (1/72 in). Percentages ("50%") are allowed only where the type says Length or LengthPercent; they resolve against the containing block (width for padding and horizontal properties, as in CSS). Gaps resolve against the box's own content box, and a percentage height needs a containing block with a set height: the page content box, for a child of the page.
  • Numbers. An integer may be written with a zero fraction (400.0), as JSON Schema reads it. Other numbers are read as 32-bit floats, so a number past a bound by less than a float's precision there is read as the bound and accepted (1000000.01 where the maximum is 1000000). Percentages and fr sizes are bounded as written: "10000.0001%" is out of range.
  • Colours. [r, g, b, a] floats in [0, 1], DeviceRGB.
  • Strictness. Unknown properties are errors (UNKNOWN_FIELD), as are properties on the wrong node type (e.g. runs on a box) and text-only style properties on non-text nodes (STYLE_NOT_APPLICABLE).
  • Resolved input. Nothing is inherited: every text run carries its own font, size and colour.
  • Defaults follow CSS flexbox except flexDirection, which defaults to column (document flow is vertical).
  • Header/footer. Laid out at the full page width: once, or again on every page when it shows page numbers. The header is painted at the top of every physical page (y = 0), the footer with its bottom edge on the bottom of the page. Use their padding to inset them and size the page margins so the flow does not overlap them.
  • Placeholders. A run with placeholder: "pageNumber" | "totalPages" is filled in after pagination, and the text wraps and aligns at the width of the digits. A header, a footer or an overlay is laid out with each page's numbers. Flow text is laid out with the numbers of the page it lands on, and the flow is paginated again if they move it. Flow text painted on several pages (in a fixed node or a table's header rows) reserves the width of 999 in the run's font for each page's digits; a longer number can overflow that space.
  • Page references. A run with pageOf: "id" shows the number of the page the node with that id starts on, as an entry of a table of contents does, and is laid out like a placeholder: at the width of its digits, with the flow paginated again when the numbers move it, and at the width of 999 in flow text painted on several pages. The id is one a #id link could name; any other is UNKNOWN_ANCHOR. A node painted on several pages counts on the first of them.
  • Leaders. A run with leader: ". " fills the room its line has left with the pattern repeated: the dots between an entry of a table of contents and its page number. It takes no room when the lines are broken, and it stays on the line of what follows it. When the line is painted, the leaders on it share the room between the line's width and its box's, and the line then fills its box whatever its textAlign; a justified line's spaces keep their width. Each draws its pattern whole, in the run's font and unshaped (a pattern with a character the font lacks, or in a colour font, draws nothing), on a grid from the right edge of the line box, so the leaders of several lines line up. A text node as wide as its content has no room to fill.
  • Bookmark titles. A run with bookmarkTitle: level, in a header, a footer or an overlay (a fixed, absolutely positioned page child), shows the title of the last bookmark of that level that starts on the page it is painted on or on an earlier one: a running header. It is empty before the first such bookmark, and after a bookmark of a lower level until the next of its own. The header, footer or overlay is laid out on each page with the titles as the runs' text, shaped like any text. Anywhere else the run is INVALID_VALUE.
  • Images. Intrinsic size is the pixel size at 96 dpi (1 px = 0.75 pt), like CSS. An image with no width and no height that is wider than the room it has is scaled down to fit it, keeping its aspect ratio (CSS would let it overflow). fit defaults to fill, like CSS object-fit, and objectPosition places a fitted image in its box like object-position (centred by default; what falls outside the box is clipped).

Validation error codes

CodeMeaning
PARSE_ERRORInput is not well-formed JSON or MessagePack
UNSUPPORTED_VERSIONversion is not 1
UNKNOWN_FIELDProperty not allowed at this position
MISSING_FIELDRequired property missing
INVALID_TYPEWrong JSON type
INVALID_VALUEValue not in the allowed set / wrong format; a string too short or too long; an array with more items than its fixed length; break where pagination does not apply (headers, footers, table cells, fixed overlays), or a forced break where it would do nothing (see Break.before)
OUT_OF_RANGENumber outside its allowed range; page margins that leave no room for content
DUPLICATE_IDFont id declared twice, attachment name or XMP schema prefix declared twice, or form field name used twice (except by the buttons of one radio group), or used both for a field and for a group of fields (a and a.b)
UNKNOWN_FONTFont id not declared in fonts
FONT_NOT_REGISTEREDDeclared font has no registered bytes
UNKNOWN_IMAGEImage src not provided in the render options
INVALID_IMAGEImage data cannot be decoded (a JPEG is not decoded: its structure is checked)
IMAGE_TOO_LARGERaster image (not SVG) over 50 megapixels (width × height). An SVG has its own limit: a width or height over 100,000 px is INVALID_IMAGE
UNKNOWN_ATTACHMENTAn attachment names a file not declared in attachments
ATTACHMENT_NOT_REGISTEREDAn attachment's src not provided in the render options. A render reports it, and so does validation given the render's options
ATTACHMENT_TOO_LARGEAn attachment over 64 MiB, or attachments over 256 MiB together
STYLE_NOT_APPLICABLEStyle property set on a node type it does not apply to
INVALID_TABLEInconsistent table structure (spans, columns, header rows)
INVALID_NODENode type not allowed here (e.g. pageBreak in a header)
UNKNOWN_ANCHORA #id link or a run's pageOf names no displayed node id in the page body, flow or overlays (ids in headers, footers and under display: none are not destinations)
PDFA_CONFLICTThe document uses something the PDF/A level does not allow: at any level, a page side under 3 points (at the page's size); under PDF/A-1b, transparency (a colour with alpha below 1, opacity below 1, debug, an image, inline image, emoji image or background image with partial alpha (unless the render option flattenAlpha draws it on white; binary alpha is a stencil mask), an SVG drawn with opacity, a mask, a blend mode, an isolated group or a clip path other than one path, or a colour glyph that needs transparency: a bitmap with partial alpha or a layer with an opacity); under PDF/A-1b, 2b and 2a, attachments (at attachments[0]). A render reports it at the first such use, and so does validation given the render's options, but for colour glyphs: a render checks those once the text is shaped, after the rest, and names one only when nothing else conflicts
UA_CONFLICTWith the render option pdfUA: the document lacks something PDF/UA requires (meta.title, meta.lang, alt on an image or a figure box, label on a field, headings that go down one level at a time from h1, a listItem inside a list, a listBody inside a listItem and a tocItem inside a toc; with pdfUA: '2', no #id link to decoration, a fixed or artifact node, and no bookmark on it). A render reports it at the first such thing, and so does validation given the render's options

Each error is { "code", "path", "message" }, with path like pages[0].children[3].runs[1].font. Validation returns at most 100 errors. A problem found while reading the document's structure (input that does not parse, an unknown or missing property, a wrong type, a value the reader rejects) is returned alone, as the rest cannot be checked.

Document (top level)

A fully resolved, declarative document tree rendered to PDF by the Inkoxide engine. All lengths are PDF points (1/72 in); all colours are RGBA floats in [0, 1]. Unknown properties are errors.

PropertyTypeRequiredNotes
version1yes
metaMeta
fontsarray of FontDeclmax items 256; Fonts the document references. Bytes are registered through the API (registerFont / options); this list lets validation fail early.
fallbackFontsarray of Idmax items 256; Font ids tried, in order, for characters missing from a run's font. Every id must be declared in fonts; an id listed again is skipped.
emojiImagesobjectmax properties 4096; Emoji drawn as images: each key is one emoji sequence (😀, 👍🏽, 🇫🇷, 👩‍💻; U+FE0F is ignored) of at most 64 bytes in UTF-8, each value the id of an image in the render option images. Where text has the sequence with emoji presentation, the image is drawn in its place, 1em high (the run's size), its bottom 0.1em below the run's baseline (which its verticalAlign raises or lowers), and the sequence is its text for copying and search. A ZWJ sequence without an image tries its parts.
attachmentsarray of AttachmentDeclmax items 1000; Files the PDF carries, each written once: viewers list them in their attachments panel, and attachment nodes and runs show icons that open them. At most 1000 files, of at most 64 MiB each and 256 MiB together. Under PDF/A, only PDF/A-3b and PDF/A-3a allow them; PDF/A-1b, PDF/A-2b and PDF/A-2a refuse them (PDFA_CONFLICT).
pagesarray of PageSpecyesmin items 1

Definitions

Id

Type: string (min length 1, max length 256)

Link target. #id jumps to the top of the first node with that id in the page body (the flow or an overlay): a node in a header or footer, or hidden by display: none, is not a destination (UNKNOWN_ANCHOR if there is none). Anything else must be an absolute URI with a scheme (https:, mailto:, …) and opens in the viewer. javascript: is rejected.

Type: string (min length 1, max length 2048)

Bookmark

Document outline entry pointing at the top of its node. Entries appear in document order; an entry nests under the nearest earlier entry with a lower level. Flowing content only (not headers or footers).

PropertyTypeRequiredNotes
titlestringyesmin length 1, max length 1024
levelinteger≥ 1, ≤ 32, default 1
expandedbooleandefault true; Whether the entry starts open in the viewer's outline, showing the entries under it. Default true.
zoomnumber (> 0, ≤ 64) or "page" | "width"How the viewer shows the node: at a scale (1 is 100%) with the node's top-left corner at the top-left of the window, the whole page (page), or the page's width from the node's top (width). Default: the node at the top-left, at the viewer's current zoom.

Debug

A development aid: draws the element's boxes on top of the page, its margin (orange), border (yellow) and padding (green) as light fills and its content box as a blue outline, with its border-box size in points as a small label. On a text node it also outlines each line: its line box (dashed), its baseline, and the glyphs of each run on it, from the run font's ascender to its descender. The label is drawn with lines, so no text is added to the document. A box split across pages is drawn on each page it crosses. It changes the output: leave it off in production.

Type: boolean (default false)

Role

What the node is in tagged output (render option tagged or pdfUA, or PDF/A-2a or 3a): a heading (h1 to h6), a paragraph, a section, a quote, a caption, a figure, a list (list, whose items are listItem boxes, each with a label and a listBody), a table of contents (toc, whose entries are tocItem boxes), or decoration (artifact), which is not read. Without tagging it does nothing. A text takes h1–h6, p, caption, label, blockQuote and artifact; an image figure and artifact; a box any. By default a text is a paragraph, an image a figure, and a box is not an element: its children belong to its parent. Elements are read in document order, whatever zIndex, floats or positioning draw first. Under PDF/UA-2 (pdfUA: '2'), the roles inside a box with a link make no elements: its link holds what is inside it.

Type: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p" | "section" | "blockQuote" | "caption" | "figure" | "list" | "listItem" | "label" | "listBody" | "toc" | "tocItem" | "artifact"

Meta

PropertyTypeRequiredNotes
titlestring
authorstring
subjectstring
keywordsstring
creatorstring
producerstringThe PDF producer, written to the PDF Info dictionary (and to the XMP metadata of PDF/A). Default Inkoxide <version>.
langstringBCP-47 language tag of the document, e.g. "en" or "en-GB".
creationDatestringformat date-time; RFC 3339 timestamp written to the PDF Info dictionary. Overridden by the creationDate render option. When neither is set, no date is written (output stays deterministic).
pageMode"useNone" | "useOutlines" | "useThumbs" | "fullScreen" | "useAttachments"What the viewer shows when it opens the document: no panel (useNone), the bookmarks (useOutlines), page thumbnails (useThumbs), the pages full screen (fullScreen) or the attachments (useAttachments). Default: useOutlines when the document has bookmarks, else useNone.
pageLayout"singlePage" | "oneColumn" | "twoColumnLeft" | "twoColumnRight" | "twoPageLeft" | "twoPageRight"How the viewer lays out the pages: one at a time (singlePage), one scrolling column (oneColumn), two scrolling columns with odd pages on the left or right (twoColumnLeft, twoColumnRight), or two pages at a time with odd pages on the left or right (twoPageLeft, twoPageRight). Default: the viewer's own setting.
xmpExtensionsarray of XmpSchemamax items 16; XMP schemas the PDF/A metadata declares and fills in, such as Factur-X's (fx) for an e-invoice: PDF/A accepts properties outside its own schemas only when they are declared, which these are, as Text. At most 16 schemas of 64 properties. Without PDF/A there is no XMP to put them in, and render refuses them.

FontDecl

PropertyTypeRequiredNotes
idIdyes
familystringyesmin length 1; The family name. Text runs name fonts by id; text in SVG images is matched to the declared fonts by its font-family against this (ignoring ASCII case), then stretch, style and weight, as CSS matches fonts.
weightinteger≥ 1, ≤ 1000, default 400; The weight SVG text's font-weight is matched against.
weightRangearray of number (each ≥ 1, ≤ 1000)exactly 2 items; A variable font's weights, lowest first, as CSS @font-face takes them ([100, 900]): SVG text of a weight in it is drawn at that wght, and of a weight outside it at the nearer end. It replaces weight in matching.
style"normal" | "italic"default "normal"; The style SVG text's font-style is matched against.
stretchnumber≥ 1, ≤ 1000, default 100; The width SVG text's font-stretch is matched against, a percentage of the normal width (75 is condensed).
stretchRangearray of number (each ≥ 1, ≤ 1000)exactly 2 items; A variable font's widths, as percentages, lowest first: SVG text of a width in it is drawn at that wdth, as weightRange draws weights. It replaces stretch in matching.
sourceIdThe registered font it draws with; id when absent. One variable font can then serve several declarations, each with its own variations.
variationsobjectmax properties 16; A variable font's axis values, by tag, as CSS font-variation-settings ({"wght": 650, "wdth": 75}): text in this font is drawn and measured at that instance, and the PDF embeds the instance, never the variable font. A value is clamped to its axis; an axis the font lacks is ignored, with a warning, as every axis of a static font is. Tags are four printable ASCII characters; at most 16 axes, and at most 64 declarations with variations in a document.
opticalSizing"auto" | "none"default "auto"; Whether text in a font with an opsz axis is drawn at the optical size of its font size in points, as CSS font-optical-sizing. variations with opsz set it instead. Each size a document uses is its own embedded instance: at most 64 per declaration (the smallest sizes first) and 1024 in a document (those of the first declarations first), and text of another size draws at the declaration's own.

NonNegative

A non-negative number of at most 1000000.

Type: number (≥ 0, ≤ 1000000)

Percent

A percentage within ±10000%, like "50%".

Type: string matching ^-?0*([0-9]{1,4}(\.[0-9]+)?|10000(\.0+)?)%$

NonNegativePercent

A percentage within [0%, 10000%], like "50%".

Type: string matching ^(0*([0-9]{1,4}(\.[0-9]+)?|10000(\.0+)?)|-0+(\.0+)?)%$

Fr

A flexible size, a share of the free space, of at most 1000000fr, like "1fr".

Type: string matching ^0*([0-9]{1,6}(\.[0-9]+)?|1000000(\.0+)?)fr$

Length

Points (within ±1000000), a percentage of the containing block (within ±10000%), or "auto". A percentage height needs a containing block with a definite height, as in CSS: a child of the page takes it of the page content height; in a header or footer, or in a box whose height is not set, it is auto.

Type: number (≥ -1000000, ≤ 1000000) or Percent or "auto"

LengthPercent

Points (within ±1000000) or a percentage of the containing block's width (within ±10000%). In gap, rowGap and columnGap, a percentage is of the box's own content box instead, as in CSS: a column gap of its width, a row gap of its height.

Type: number (≥ -1000000, ≤ 1000000) or Percent

NonNegativeLength

A Length that is not negative: points (at most 1000000), a percentage of the containing block (at most 10000%), or "auto". A percentage height needs a containing block with a definite height, as for Length.

Type: number (≥ 0, ≤ 1000000) or NonNegativePercent or "auto"

NonNegativeLengthPercent

A LengthPercent that is not negative: points (at most 1000000) or a percentage (at most 10000%), of what LengthPercent says.

Type: number (≥ 0, ≤ 1000000) or NonNegativePercent

Color

[r, g, b, a], each in [0, 1].

Type: array of number (each ≥ 0, ≤ 1) (exactly 4 items)

Size

Page size in points. PDF/A, at any level, takes sides of 3 points or more: a render of a smaller page as PDF/A fails with PDFA_CONFLICT at the page's size.

PropertyTypeRequiredNotes
widthnumberyes> 0, ≤ 14400
heightnumberyes> 0, ≤ 14400

EdgesNumber

PropertyTypeRequiredNotes
topNonNegative
rightNonNegative
bottomNonNegative
leftNonNegative

EdgesLengthPercent

Padding: a NonNegativeLengthPercent per side.

EdgesLength

PropertyTypeRequiredNotes
topLength
rightLength
bottomLength
leftLength

EdgesColor

PropertyTypeRequiredNotes
topColor
rightColor
bottomColor
leftColor

PageSpec

A page template. Its content flows across as many physical pages as needed.

PropertyTypeRequiredNotes
sizeSizeyes
marginEdgesNumberleft + right must be less than the page width and top + bottom less than its height; margins that leave no room for content are OUT_OF_RANGE at margin.
backgroundColorFills the whole page behind its content. The fill is opaque: the alpha of the colour is ignored, so [1, 0, 0, 0] paints solid red.
debugDebugDraws the boxes of the page (its margins and content area) and of every element on it, the header and footer included.
headerNodeLaid out at the full page width, once, or again on every page when it shows page numbers, and painted at the top of every physical page (y = 0). Use padding to inset it. Size the top margin to leave room for it. break (other than its defaults) and pageBreak are not allowed in it, at any depth.
footerNodeLaid out at the full page width, once, or again on every page when it shows page numbers, and painted with its bottom edge on the bottom of every physical page. break (other than its defaults) and pageBreak are not allowed in it, at any depth.
childrenarray of Node

Break

Pagination controls. They apply to flowing content only: on a header or footer, on a node in a table cell, or on any node inside these, a break with a value other than the defaults is INVALID_VALUE. For fixed overlays, see fixed. A box laid out as a row, a grid, wrapping or reversed moves to the next page whole when it fits on one; taller than a page, it splits between its rows (children whose extents overlap), each child continuing from the row's top. Content that cannot split (an image, an absolutely positioned, rotated, transformed or fixed node, table rows tied by a row span) is cut across pages when it is taller than a page.

PropertyTypeRequiredNotes
before"auto" | "page"default "auto"; page starts a new page before the node, unless it is at the top of one already. INVALID_VALUE inside a row, grid, wrapping or reversed box, or inside an absolutely positioned, rotated, transformed, floated or fixed node, or on an absolutely positioned or floated node: there it would do nothing.
after"auto" | "page"default "auto"; page starts a new page after the node when in-flow content follows it: a break at the end of the flow adds no page. Allowed where before is.
inside"auto" | "avoid"default "auto"; avoid keeps the node on one page: it moves to the next page whole when it does not fit. A node taller than a page splits anyway, and a forced page break inside it still starts a new page; the part before the break moves whole.
minPresenceAheadNonNegativePoints of room the node needs from its top: when less is left on the page than this (or than its first unbreakable piece, when taller), the node moves to the next page. The node's own height counts, and nothing needs to follow it. On a box's first in-flow child it applies to the box too, so a box never leaves its top padding behind. break.before: "page" on a first child moves the box the same way.
fixedbooleandefault false; Paint the node on every page of its flow. A child of the page with position: "absolute" is laid out on its own, against the page content box (inset and percentages are relative to one page's content box, inside the margins), takes no space and is painted over the flow, or under it when its zIndex is negative; no other pagination control applies to it or inside it, and it cannot hold a pageBreak. Any other fixed node is laid out in the flow, takes its space there once, and is painted at the same place on every page: where the flow's paint order puts it, without the opacity, transform and clip of the nodes around it. It is not painted inside a node with display: "none" or opacity: 0, nor on the pages that the pages of a node around it leave out.

GridPlacement

1-based CSS grid line placement. Negative lines count from the end; there is no line 0. Use span alone, with start or with end. With both start and end, span is ignored.

PropertyTypeRequiredNotes
startinteger≥ -32767, ≤ 32767, ≠ 0
endinteger≥ -32767, ≤ 32767, ≠ 0
spaninteger≥ 1, ≤ 65535

TrackSize

Grid track: a breadth, {min, max} (CSS minmax(); min cannot be fr) or {fitContent} (CSS fit-content()).

Type: TrackBreadth or {min, max} (min: TrackBreadth; max: TrackBreadth) or {fitContent} (fitContent: NonNegativeLengthPercent)

BorderRadius

One radius for every corner, or one per corner (a missing corner is square). Radii that would overlap are scaled down together, as in CSS.

Type: NonNegative or object with topLeft, topRight, bottomRight, bottomLeft

BorderStyles

One style for every side, or one per side (an unset side is solid).

Type: "solid" | "dashed" | "dotted" or object with top, right, bottom, left

TransformOp

One transform function, as an object with exactly one key. Lengths are points or percentages of the node's own border box; angles are degrees, clockwise. Scale factors, rotate and matrix entries are within ±1000000; skew angles are within (−90, 90).

Type: {translate} (translate: array of LengthPercent (exactly 2 items)) or {scale} (scale: array of number (each ≥ -1000000, ≤ 1000000) (exactly 2 items)) or {rotate} (rotate: number (≥ -1000000, ≤ 1000000)) or {skew} (skew: array of number (each > -90, < 90) (exactly 2 items)) or {matrix} (matrix: array of number (each ≥ -1000000, ≤ 1000000) (exactly 6 items))

ShapeOutside

A float's shape, as an object with exactly one key, in its margin box: lengths are points, percentages are of the margin box's width (x, rx, left, right) or height (y, ry, top, bottom). The shape is clipped to the margin box.

Type: {circle} (circle: ShapeCircle) or {ellipse} (ellipse: ShapeEllipse) or {inset} (inset: ShapeInset) or {polygon} (polygon: array of array of LengthPercent (each exactly 2 items) (min items 3, max items 1000))

ShapeCircle

CSS circle().

PropertyTypeRequiredNotes
radiusNonNegativeLengthPercentA percentage is of the margin box's diagonal over √2, as in CSS. By default, to the margin box's closest side.
atarray of LengthPercentexactly 2 items; The centre, [x, y]. By default, the middle of the margin box.

ShapeEllipse

CSS ellipse().

PropertyTypeRequiredNotes
rxNonNegativeLengthPercentThe horizontal radius. By default, to the closest of the left and right sides.
ryNonNegativeLengthPercentThe vertical radius. By default, to the closest of the top and bottom sides.
atarray of LengthPercentexactly 2 items; The centre, [x, y]. By default, the middle of the margin box.

ShapeInset

CSS inset(): a rectangle inset from the margin box's sides, by 0 on a side not set.

PropertyTypeRequiredNotes
topLengthPercent
rightLengthPercent
bottomLengthPercent
leftLengthPercent
radiusNonNegativedefault 0; Points the corners are rounded by; at most half the rectangle's width and height.

Style

PropertyTypeRequiredNotes
display"flex" | "grid" | "none"default "flex"
flexDirection"row" | "column" | "row-reverse" | "column-reverse"default "column"
flexWrap"nowrap" | "wrap" | "wrap-reverse"default "nowrap"
justifyContent"flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "start" | "end" | "stretch"
alignItems"flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end"
alignSelf"auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end"
alignContent"flex-start" | "flex-end" | "center" | "space-between" | "space-around" | "space-evenly" | "stretch" | "start" | "end"
flexGrowNonNegative
flexShrinkNonNegative
flexBasisNonNegativeLength
gapNonNegativeLengthPercentSets both rowGap and columnGap; either of those, when present, wins.
rowGapNonNegativeLengthPercentA percentage is of the box's own content height, as in CSS. In a box whose height is not set, it is of the height of the content without the gaps, so it adds little: use points.
columnGapNonNegativeLengthPercent
widthNonNegativeLength
heightNonNegativeLength
minWidthNonNegativeLength
minHeightNonNegativeLength
maxWidthNonNegativeLength
maxHeightNonNegativeLength
aspectRationumber≥ 0.000001, ≤ 1000000; Width divided by height.
paddingEdgesLengthPercent
marginEdgesLength
position"relative" | "absolute"default "relative"
insetEdgesLengthtop/right/bottom/left offsets for positioned boxes. Percentages are of the containing block: its width for left and right, its height for top and bottom (the page content box, for a child of the page). A relative box (the default position) is moved by them before pagination, so pagination sees it where it is drawn: moved past the foot of a page, it moves to the next page or runs onto it.
gridTemplateColumnsarray of TemplateTrack
gridTemplateRowsarray of TemplateTrack
gridTemplateAreasarray of stringmin items 1; Rows of whitespace-separated area names, as in CSS; a token of dots is an unnamed cell. Every row has the same number of cells and each area is a rectangle. At most 10000 cells (rows × columns; OUT_OF_RANGE).
gridAutoColumnsarray of TrackSize
gridAutoRowsarray of TrackSize
gridAutoFlow"row" | "column" | "row dense" | "column dense"
gridColumnGridPlacement
gridRowGridPlacement
gridAreastringmin length 1; Name of an area in the parent's gridTemplateAreas; replaces gridRow and gridColumn, and cannot be combined with them (INVALID_VALUE).
justifyItems"flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end"Grid only: default inline-axis alignment of the items.
justifySelf"auto" | "flex-start" | "flex-end" | "center" | "baseline" | "stretch" | "start" | "end"Grid only: inline-axis alignment of this item.
overflow"visible" | "hidden"default "visible"
float"left" | "right" | "none"default "none"; Children of a column box (not of a row, grid, wrapping or reversed box, and not a table cell itself) only; not with position: absolute. Floats the node to that side of its parent's content box, shrink-to-fit, at or below where it occurs, as in CSS. Lines of text after it wrap beside it: beside its margin box, or around its shapeOutside. A column box after it with children and no floats of its own, without overflow: hidden or aspectRatio, keeps its width and lays its children out beside it, so its lines wrap beside it too (to a depth of 8 such boxes). Other boxes after it are narrowed to the room beside its margin box, or move below it when their min-content width does not fit there, as CSS does with boxes that make a block formatting context. The parent's height includes its floats, and the room the floats leave goes to flexGrow and justifyContent as in a column box. A float takes no flexGrow; its parent takes no alignContent, and the parent's children no flexBasis. At most 1000 floated children per box. A float forces no page break: break.before or break.after "page" on it, or on a node inside it, and a pageBreak node inside it, are rejected. A float moves to the next page with the lines beside it, and is sliced when taller than a page.
clear"left" | "right" | "both" | "none"default "none"; Puts the node's border box below the margin boxes of the earlier floats of its parent on these sides.
shapeOutsideShapeOutsideFloats only. The shape lines beside the float wrap around, instead of its margin box, as CSS shape-outside with a basic shape: a line takes the room of the shape's widest part beside it, so lines come closer where the shape narrows. Only lines: the float is placed, and boxes beside it are narrowed, by its margin box. The shape is followed in strips at least 2 points high, at most 128 a float; past 4096 strips in one box, a float's lines wrap beside its margin box.
shapeMarginNonNegativedefault 0; Floats with a shapeOutside only. Points the lines beside the float keep from its shape, within its margin box.
backgroundColorColor
opacitynumber≥ 0, ≤ 1; Multiplies the alpha of what the node paints and of everything inside it, element by element: unlike CSS, it does not fade the node and its children as one group, so overlapping children show through each other. 0 draws nothing for the node's children and leaves out the links, form fields and notes inside them. Form fields, notes and attachment icons, which viewers draw over the page, are not faded by an opacity above 0: only a field's background and border are.
borderWidthEdgesNumber
borderColorEdgesColor
borderRadiusBorderRadius
borderStyleBorderStylesdefault "solid"
rotatenumber≥ -1000000, ≤ 1000000; Degrees, clockwise, around the box centre.
transformarray of TransformOpTransform functions, as in CSS: the list applies right to left, after rotate. Not on table cells. A transformed node moves to the next page as a whole.
transformOriginarray of LengthPercentexactly 2 items; x and y of the origin of rotate and transform within the border box. Default ["50%", "50%"]. Not on table cells.
zIndexinteger≥ -2147483648, ≤ 2147483647; Paint order among siblings: higher paints later (above); equal values keep document order, except that floats paint after their siblings of the same zIndex, as in CSS. Default 0. Not on table cells.
textAlign"left" | "center" | "right" | "justify" | "start" | "end"text nodes only; start/end follow the paragraph direction. Default start.
lineHeightnumber> 0, ≤ 100; text nodes only; multiplier of the largest run size on the line
maxLinesinteger≥ 1, ≤ 4294967295; text nodes only
ellipsisbooleantext nodes only; requires maxLines
hyphenatebooleantext nodes only. Hyphenates the words in the language of the node (lang, or meta.lang); with no language, nothing is hyphenated and the render logs a warning. A word wider than its line breaks between any two characters, hyphenated or not.
langstringtext nodes only; BCP-47, selects hyphenation patterns
whiteSpace"normal" | "pre" | "nowrap" | "pre-wrap" | "pre-line"text nodes only. normal collapses spaces and keeps newlines as breaks (as pre-line); pre-wrap keeps spaces and tabs and wraps. As in CSS, only spaces, tabs and line breaks collapse: other space characters (thin, em, figure, no-break, …) keep their width, and only the breaking ones are break opportunities. pre and pre-wrap advance a tab to the next tab stop (CSS tab-size: 8): stops are 8 spaces of the tab's font apart, from the start of the line (a line pre-wrap wraps keeps the stops of the line it continues), and a tab narrower than half a 0 goes on to the next stop.
textWrap"wrap" | "pretty" | "balance"default "wrap"; text nodes only. How lines break: wrap fills each line in turn (first fit); pretty chooses the breaks over each stretch of the paragraph between forced breaks to make its lines even (Knuth and Plass's total fit, as TeX), with fewer hyphens, and lets the spaces of justified lines shrink by up to a third. A stretch with more than 20 000 break opportunities, or past 512 open breakpoints or 2 097 152 lines tried in the paragraph, falls back to wrap, as do pre and nowrap text, justified text without spaces, and a word wider than its line. balance (for headings and captions) breaks each stretch first fit into as many lines as wrap does, in the narrowest width that keeps that many, so its lines are of about the same length; a stretch of one line or more than 10, beside a float, or with a word wider than its line breaks as wrap.
hyphenationPenaltynumber≥ 0, ≤ 10000, default 50; text nodes only. How much textWrap: pretty avoids breaking at a hyphenation point (a soft hyphen, or one hyphenate finds): the demerits of such a break, as TeX's \hyphenpenalty. 0 hyphenates as readily as it breaks at a space; higher values give fewer hyphens and looser lines. From 10 000, a hyphenation point is no break, whatever textWrap; below it, wrap and balance ignore it.
textIndentnumber≥ -10000, ≤ 10000; text nodes only; indent of the first line in points (negative: hanging indent)
direction"ltr" | "rtl" | "auto"default "ltr"; text nodes only; base direction of the paragraph (auto: from its first strong character). Right-to-left runs are reordered with the Unicode bidi algorithm in any direction.
orphansinteger≥ 1, ≤ 100, default 1; text nodes only; minimum number of lines left at the bottom of a page when the paragraph breaks
widowsinteger≥ 1, ≤ 100, default 1; text nodes only; minimum number of lines carried to the top of the next page when the paragraph breaks
verticalAlign"top" | "middle" | "bottom"table cells only. Places the cell's content down its row, whatever the cell's flexDirection or display: in a cell that is not a column (row, reversed, wrapping or grid), the content keeps its own height.
borderCollapse"collapse" | "separate"default "collapse"; Tables only. collapse: adjacent cell borders merge into one, drawn in the winner's style and colour: the wider wins, and at equal widths solid wins over dashed and dashed over dotted. separate: every cell draws its own borders, background and borderRadius, borderSpacing apart.
borderSpacingNonNegativeTables with borderCollapse: separate only: space between cells and around them, in points. Default 0.

TextRun

PropertyTypeRequiredNotes
textstringRequired unless placeholder, pageOf, bookmarkTitle, leader, image, note or attachment is set; forbidden when one is.
fontIdyes
sizenumberyes> 0, ≤ 1000
colorColor
letterSpacingnumber≥ -1000, ≤ 1000
decoration"none" | "underline" | "lineThrough"
decorationColorColorDefault: the run colour.
decorationThicknessnumber> 0, ≤ 100; Points. Default: from the font.
decorationStyle"solid" | "double" | "dotted" | "dashed" | "wavy"default "solid"
placeholder"pageNumber" | "totalPages"The physical number of the page the run is painted on (pageNumber), or the document's page count (totalPages), in place of text.
pageOfIdThe id of a node of the page body (as a #id link's target): the run shows the number of the page that node starts on, in place of text, as a table of contents does. Laid out like a placeholder: as three digits first, then again with the number, a few times at most.
bookmarkTitleinteger≥ 1, ≤ 32; A bookmark level: the run shows the title of the last bookmark of that level that starts on the page it is painted on or on an earlier one, in place of text, as a running header shows the current chapter. It shows nothing before the first such bookmark, and after a bookmark of a lower level (a new chapter has no section until its first). Only in a header, a footer or a fixed, absolutely positioned page child.
leaderstringmin length 1, max length 8; A pattern, such as . : the run fills the room its line has left with the pattern repeated, in place of text, as the dots between an entry of a table of contents and its page number. It takes no room when the lines are broken and stays on the line of what follows it; the patterns are whole, on a grid from the right edge of the line, so the leaders of several lines line up. Several leaders on a line share the room. The characters are drawn in the run's font, unshaped; control characters are not allowed.
linkLinkMakes the run a link; the clickable area covers the run's glyphs on each line.
hyphenatebooleanOverrides the text node's hyphenate for this run's words, in the node's language.
verticalAlign"baseline" | "super" | "sub" | "middle" | "textTop" | "textBottom" | "top" | "bottom" or number (≥ -14400, ≤ 14400)default "baseline"; Moves the run's baseline: super raises it and sub lowers it, by the offsets the font gives for superscripts and subscripts (OS/2), for text of the run's size. The size stays the run's own: give a superscript a smaller size. The line grows to fit the moved glyphs. An image run also takes middle (its middle at the baseline plus half the x-height of the run's font), textTop and textBottom (its top at the font's ascender, its bottom at its descender), top and bottom (its top or bottom at the line's), and a number: points its bottom sits above the baseline (negative: below).
fontFeaturesobjectmax properties 32; OpenType features by tag, as CSS font-feature-settings: 1 turns a feature on, 0 off, and a larger number picks an alternate ({"tnum": 1, "liga": 0}). Tags are four printable ASCII characters, and a value is 0 to 65535. A run may have at most 32 features, and a document at most 64 different sets of features.
imageInlineImage
noteNoteA note in the line, in place of text: it takes no room, and its icon (20 pt square, the same at any zoom) hangs from the top of the line where the run is, on the page where the line starts. The run's font and size are the line's strut. Line breaking keeps it with the character before it, or after a space, the one after it.
attachmentAttachmentAn attachment's icon in the line, in place of text, as a note is: it takes no room, and its icon hangs from the top of the line where the run is.

InlineImage

An image in a line of text, as wide as width and as high as height, in points. With one of them, the other follows the image's aspect ratio; with neither, it is as high as the run's size (1em). The run's font and size still set the line's strut, and its verticalAlign places the image.

PropertyTypeRequiredNotes
srcIdKey into the render option images.
datastringInline image bytes (JPEG, PNG, GIF, WebP or SVG; the first frame of an animation), base64-encoded; a data:<mime>;base64, URL is also accepted.
widthnumber> 0, ≤ 14400
heightnumber> 0, ≤ 14400
fit"fill" | "contain" | "cover" | "none"default "fill"
objectPositionObjectPositionWhere the image sits in its box with fit contain, cover or none (CSS object-position); fill ignores it. Default centred.
altstringmax length 1024; Alternative text: what copying, searching and screen readers get for the image. In tagged output, "" makes the image decoration; PDF/UA requires alt on every image that is not.

ColumnSpec

PropertyTypeRequiredNotes
widthnumber (> 0, ≤ 1000000) or Fr (not matching ^0+(\.0+)?fr$) or "auto"yes

TableCell

PropertyTypeRequiredNotes
idId
debugDebug
colSpaninteger≥ 1, ≤ 4294967295, default 1
rowSpaninteger≥ 1, ≤ 4294967295, default 1
styleStyleThe table places and sizes the cell: its columns set the width, and height and minHeight are minimums (the row grows to fit the content). The cell's own placement, size and effects are STYLE_NOT_APPLICABLE: width, minWidth, maxWidth, maxHeight, margin, position, inset, alignSelf, justifySelf, flexGrow, flexShrink, flexBasis, gridRow, gridColumn, gridArea, overflow, opacity, rotate, transform, transformOrigin, zIndex, float and clear.
childrenarray of Node
headerbooleandefault false; In tagged output, a header of its row (TH, scope row); the cells of the header rows are headers of their columns.

TableRow

PropertyTypeRequiredNotes
idId
debugDebug
minHeightNonNegative
backgroundColorColor
cellsarray of TableCellyes

Node

PropertyTypeRequiredNotes
type"box" | "text" | "image" | "table" | "pageBreak" | "spacer" | "field" | "note" | "attachment"yes

BoxNode

PropertyTypeRequiredNotes
type"box"yes
idId
styleStyle
breakBreak
linkLink
bookmarkBookmark
pagesPageFilter
debugDebug
roleRole
altstringmax length 1024; A figure box's alternative text: what screen readers say for it. Only with the role figure.
childrenarray of Node
backgroundImageBackgroundImage

TextNode

PropertyTypeRequiredNotes
type"text"yes
idId
styleStyle
breakBreak
linkLink
bookmarkBookmark
pagesPageFilter
debugDebug
roleRole
runsarray of TextRunyes

ImageNode

PropertyTypeRequiredNotes
type"image"yes
idId
styleStyle
breakBreak
linkLink
bookmarkBookmark
pagesPageFilter
debugDebug
roleRole
srcIdKey into the render option images.
datastringInline image bytes (JPEG, PNG, GIF, WebP or SVG; the first frame of an animation), base64-encoded; a data:<mime>;base64, URL is also accepted.
fit"fill" | "contain" | "cover" | "none"default "fill"
objectPositionObjectPositionWhere the image sits in its box with fit contain, cover or none (CSS object-position); fill ignores it. Default centred.
altstringmax length 1024; Alternative text: what copying, searching and screen readers get for the image. In tagged output, "" makes the image decoration; PDF/UA requires alt on every image that is not.

ObjectPosition

Position of a fitted image in its box, per axis: a keyword, points from the left or top edge, or a percentage (that point of the image goes to that point of the box: "0%" is the start edge, "100%" the end edge). Points are within ±14400 and percentages within ±10000%. What falls outside the box is clipped.

PropertyTypeRequiredNotes
x"left" | "center" | "right" or number (≥ -14400, ≤ 14400) or Percentdefault "center"
y"top" | "center" | "bottom" or number (≥ -14400, ≤ 14400) or Percentdefault "center"

BackgroundImage

An image painted behind the box's children and over its backgroundColor, under its borders. It fills the padding box (inside the borders), placed by fit and objectPosition, and is clipped to that box, rounded by borderRadius. A box split across pages is sliced, like its background colour.

PropertyTypeRequiredNotes
srcIdKey into the render option images.
datastringInline image bytes (JPEG, PNG, GIF, WebP or SVG; the first frame of an animation), base64-encoded; a data:<mime>;base64, URL is also accepted.
fit"fill" | "contain" | "cover" | "none"default "fill"
objectPositionObjectPositionWhere the image sits in the padding box with fit contain, cover or none (CSS object-position); fill ignores it. Default centred.

TableNode

PropertyTypeRequiredNotes
type"table"yes
idId
styleStyle
breakBreak
linkLink
bookmarkBookmark
pagesPageFilter
debugDebug
columnsarray of ColumnSpecyesmin items 1
headerRowsinteger≥ 0, ≤ 4294967295, default 0; The first rows, repeated at the top of every page the table continues on, below the header rows of the tables around it. Header rows that, with those, are as tall as the page are not repeated.
rowsarray of TableRowyes

PageBreakNode

Starts a new page when in-flow content follows it: at the end of the flow it adds no page. Flowing content only: in a header, a footer, a table cell or a fixed overlay, and inside a row, grid, wrapping or reversed box, or inside an absolutely positioned, rotated, transformed, floated or fixed node, it is INVALID_NODE.

PropertyTypeRequiredNotes
type"pageBreak"yes
idId

SpacerNode

PropertyTypeRequiredNotes
type"spacer"yes
idId
styleStyle
breakBreak
linkLink
bookmarkBookmark
pagesPageFilter
debugDebug

FieldNode

An interactive AcroForm field. style sizes and decorates its box (background, border, padding); the widget covers the content box. Without a width or height it takes an intrinsic size (text and select: 150 pt wide, one line, or three when multiline; list: 150 pt wide, one row per option up to four; checkbox and radio: size + 2 pt square).

PropertyTypeRequiredNotes
type"field"yes
idId
styleStyle
breakBreak
pagesPageFilter
debugDebug
fieldFieldyes

Field

Fields with the same name are one field with several widgets (for example a field in a header, repeated on every page); only radio buttons may share a name with different values.

PropertyTypeRequiredNotes
namestring matching ^[^.]{1,128}(\.[^.]{1,128}){0,31}$yesmin length 1, max length 512; Field name; unique in the document except for the buttons of one radio group. Dots make groups: address.street is the field street in the group address, as in PDF's own field names. At most 32 parts of 1 to 128 characters, and 512 characters in all. A name used again, or used both for a field and for a group (a and a.b), is DUPLICATE_ID.
kind"text" | "checkbox" | "radio" | "select" | "list"yesselect is a drop-down list, list a list box that shows several options at once
valuestring (max length 8000) or array of string (each max length 1000) (max items 1000)text: the initial text, at most maxLength characters (OUT_OF_RANGE); select and list: the selected option (one of options), or for a list with multiSelect an array of them, each at most once; radio: the value this button exports when selected, required and non-empty (MISSING_FIELD). A string is at most 8000 characters.
checkedbooleandefault false; checkbox and radio: initially selected; at most one button of a radio group (INVALID_VALUE), and buttons of the group with the same value are selected together
optionsarray of string (each max length 1000)min items 1, max items 1000; select and list only (required there): the choices, at most 1000 of at most 1000 characters each
multiSelectbooleandefault false; list only: several options can be selected at once
sortbooleandefault false; select and list only: the options sorted by their lowercase text (then their text), as the field shows and stores them.
editbooleandefault false; select only: a value can be typed as well as chosen; value need not be one of options.
multilinebooleandefault false; text only
passwordbooleandefault false; text only; the value is neither shown nor stored
noSpellbooleandefault false; text, and select with edit: viewers do not check the spelling of what is typed.
maxLengthinteger≥ 1, ≤ 4294967295; text only; maximum number of characters
readOnlybooleandefault false; A radio group is read-only when any of its buttons is.
requiredbooleandefault false; A radio group is required (a button must be selected) when any of its buttons is.
fontIdtext, select and list (required there): a declared font for the value, with outlines (a font with colour bitmaps only is INVALID_VALUE). Its glyphs for the common Latin range are embedded so edits display. The value and the options are drawn with this font only, a glyph per character: no fallback fonts, no shaping and no right-to-left ordering, as viewers redraw them. A character the font has no glyph for is INVALID_VALUE at the value or the option.
sizenumber> 0, ≤ 1000, default 10; font size; also the mark size of checkboxes and radio buttons
colorColortext and mark colour (its alpha is not used); default black
formatFieldFormat
labelstringmin length 1, max length 1024; What the field is for, which screen readers say and viewers show as its tooltip (/TU). PDF/UA requires it. A radio group's tooltip is the label of its first button that has one; a button with another label says it in its widget (/Contents).
align"left" | "center" | "right"default "left"; text, select and list only: where the text sits across the field, as written and as viewers lay out what is typed (/Q).

FieldFormat

Single-line, non-password text fields only: how the field shows and takes its value. The field shows value formatted; viewers format what the user types with the standard form scripts (AFNumber_Format and the like), which PDF/A leaves out (the formatted text and value stay). value must fit the format (INVALID_VALUE): a number or percent is -?digits[.digits] (at most 15 digits on each side; a percent is a fraction, 0.125 shows 12.50%), a date YYYY-MM-DD with an optional THH:MM[:SS], a time HH:MM[:SS] or a date with a time, zip 5 digits, zipPlus4 9, phone 10 and ssn 9. A key that does not apply to the type is INVALID_VALUE.

PropertyTypeRequiredNotes
type"number" | "percent" | "date" | "time" | "zip" | "zipPlus4" | "phone" | "ssn"yes
decimalsinteger≥ 0, ≤ 10; number and percent: digits after the decimal separator, rounded half away from zero; default 2
separators"1,234.56" | "1234.56" | "1.234,56" | "1234,56"number and percent: the thousands and decimal separators, by example; default 1,234.56
negative"minus" | "red" | "parens" | "parensRed"number: how a negative number shows: -1.00, 1.00 in red, (1.00) or (1.00) in red; default minus
currencystring matching ^[^\u0000-\u001f\u007f-\u009f"'\\\u2028\u2029]*$max length 8; number: a currency symbol, shown as it is (add a space to separate it); no control characters, quotes or backslashes
currencyBeforebooleandefault true; number: the currency goes before the number
patternstringmin length 1, max length 64; date and time (required there): how the value shows, with d, dd, ddd (Mon), dddd (Monday), m, mm, mmm (Jan), mmmm (January), yy, yyyy, H, HH (0–23), h, hh (1–12), M, MM (minutes), s, ss, t (a/p), tt (am/pm) and the characters .,/:-; a time shows only H, h, M, s and t. Names are English.

NoteNode

A text annotation: a sticky-note icon that opens its text in the viewer. It takes no space; its icon (20 pt square, the same at any zoom) sits at the top-left corner of its box, inside the page, on the page where the box starts. Under a transform, the icon stays upright and the same size: only its corner moves. In a header, a footer or a fixed element it is on every page.

PropertyTypeRequiredNotes
type"note"yes
idId
styleStyle
breakBreak
pagesPageFilter
debugDebug
noteNoteyes

Note

PropertyTypeRequiredNotes
contentsstringyesmin length 1, max length 8000; The text of the note.
authorstringmax length 256; Who wrote it; viewers show it as the note's title.
colorColorThe icon's colour, also the colour viewers give the note (its alpha is not used); default yellow, [1, 0.82, 0.2, 1].
openbooleandefault false; Whether viewers show the text when the document opens.
icon"note" | "comment" | "key" | "help" | "newParagraph" | "paragraph" | "insert"default "note"; The icon: a sticky note, a speech bubble, a key, a question mark, a new paragraph, a paragraph sign or a caret.

AttachmentNode

An icon that opens a file of attachments (a file attachment annotation). It takes no space, and sits as a note does: at the top-left corner of its box, inside the page, on the page where the box starts, 20 pt square at any zoom. In a header, a footer or a fixed element it is on every page, each icon opening the one file.

PropertyTypeRequiredNotes
type"attachment"yes
idId
styleStyle
breakBreak
pagesPageFilter
debugDebug
attachmentAttachmentyes

Attachment

PropertyTypeRequiredNotes
filestringyesmin length 1, max length 255; The name of a file in attachments.
icon"pushPin" | "paperclip" | "graph" | "tag"default "pushPin"; The icon: a push pin, a paper clip, a bar chart or a tag.
colorColorThe icon's colour (its alpha is not used); default blue, [0.3, 0.55, 0.9, 1].
contentsstringmin length 1, max length 8000; The text viewers show for the icon; default the file's description, else its name.

AttachmentDecl

A file the PDF carries. Exactly one of src and data.

PropertyTypeRequiredNotes
namestring matching ^[^/\\\u0000-\u001f\u007f-\u009f]+$yesmin length 1, max length 255; The file name viewers show and save it under, unique in the document: no /, \\ or control characters. attachment icons name the file by it.
srcIdKey into the render option attachments.
datastringThe file's bytes, base64-encoded.
mimeTypestring matching ^[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,62}/[A-Za-z0-9][A-Za-z0-9!#$&^_.+-]{0,62}$max length 127, default "application/octet-stream"; The file's MIME type (text/xml, application/pdf).
descriptionstringmax length 8000; What the file is; viewers show it in their attachments panel.
relationship"source" | "data" | "alternative" | "supplement" | "unspecified"default "unspecified"; How the file relates to the document (/AFRelationship, which PDF/A-3 requires): the original it was made from (source), the data it shows (data, as an e-invoice's XML), another form of the same content (alternative), or something that adds to it (supplement).
modifiedstringWhen the file was last changed (RFC 3339). Default: the creation date, when there is one; otherwise none is written.

XmpSchema

PropertyTypeRequiredNotes
schemastringyesmin length 1, max length 512; What the schema is (Factur-X PDFA Extension Schema).
namespacestring matching ^\S+$yesmin length 1, max length 512; The namespace URI of its properties.
prefixstring matching ^[A-Za-z_][A-Za-z0-9_.-]*$yesThe prefix of its properties (fx): not one the metadata uses already (pdfaid, dc, xmp, pdf, rdf, x, xml, xmlns, pdfaExtension, pdfaSchema, pdfaProperty, pdfuaid).
propertiesarray of XmpPropertyyesmax items 64

XmpProperty

PropertyTypeRequiredNotes
namestring matching ^[A-Za-z_][A-Za-z0-9_.-]*$yesmax length 512; The property name (DocumentType).
valuestringyesmax length 8000; Its value, a Text.
descriptionstringyesmin length 1, max length 512; What the property is.

TrackBreadth

Grid track breadth: points, a percentage, "fr", "auto", "min-content" or "max-content". Points and fr are at most 1000000.

Type: number (≥ 0, ≤ 1000000) or NonNegativePercent or Fr or "auto" | "min-content" | "max-content"

TemplateTrack

Entry of a track template: a track, or CSS repeat() as {repeat, tracks}. auto-fill/auto-fit may appear once per list, and then every track in the list needs a fixed (points or percentage) minimum or maximum, and one of the repeated tracks a fixed size above 0 (its fixed maximum, or else its minimum).

Type: TrackSize or {repeat, tracks} (repeat: integer (≥ 1, ≤ 1000) or "auto-fill" | "auto-fit"; tracks: array of TrackSize (min items 1))

PageFilter

Pages that show the node, by physical page number (as the pageNumber placeholder). The node keeps its place in the layout on every page; it is only painted on the matching ones.

Type: "first" | "last" | "notFirst" | "notLast" | "odd" | "even" or array of integer (each ≥ -2147483648, ≤ 2147483647, ≠ 0) (min items 1)

Synced from docs/SCHEMA.md in the inkoxide repository.