Ink
Freehand strokes.
Use it
Section titled “Use it”{ "$ref": "https://gloss-format.org/schema/v1.json#/$defs/Ink"}XFDF element: ink
Fields
Section titled “Fields”Required fields are bracketed.
| Field | Type | Default | XFDF | Description |
|---|---|---|---|---|
type (required) |
string; always "ink" |
— | The annotation type. Always ink. | |
id (required) |
string; at least 1 character | name |
Unique within the document. Never reused for a different annotation. | |
page (required) |
integer; ≥ 0 | page |
The page the annotation is on, counted from 0. | |
rect (required) |
Rect | rect |
The bounding box, in PDF user space. | |
color |
Color | color |
The annotation’s colour. Absent: the reader chooses the colour. | |
opacity |
number; 0 to 1 | 1 |
opacity |
Opacity, from 0 (invisible) to 1 (opaque). Absent means opaque. |
author |
string | title |
Who made the annotation. Absent means unknown. | |
contents |
string | contents |
The annotation’s text, such as a comment or a note. Absent means no text. | |
inReplyTo |
string | inreplyto |
The id of the annotation this one replies to. Replies form threads. Absent means the annotation is not a reply. | |
createdAt |
string; format date-time (RFC 3339 with seconds and an offset, e.g. 2026-10-20T09:30:00Z) |
creationdate |
When the annotation was made, as an ISO 8601 date-time with an offset. XFDF writes a PDF date string (D:20261019120000Z). Absent means unknown. | |
modifiedAt |
string; format date-time (RFC 3339 with seconds and an offset, e.g. 2026-10-20T09:30:00Z) |
date |
When the annotation last changed, as an ISO 8601 date-time with an offset. XFDF writes a PDF date string. Absent means unknown. | |
subject |
string | subject |
A short label for what the mark is. Absent means no label. | |
intent |
Intent | intent |
What the mark is for, such as a callout or an arrow. Absent means the type’s plain form. | |
custom |
object | — | Data of your own, under a key of your own, such as your product’s name: { “acme”: { … } }. Gloss readers keep it as it is and never interpret it. Absent means none. | |
inklist (required) |
Point[][]; at least 1 item; each at least 1 item | inklist |
The strokes, each a list of points in the order they were drawn. At least one stroke of at least one point. | |
width |
number; ≥ 0 | 2 |
width |
The stroke width in points. Absent means 2. |
dashes |
Dashes | dashes |
The dash pattern of the stroke. Absent means a solid line. |
Example
Section titled “Example”{ "type": "ink", "id": "a1", "page": 0, "author": "Ana", "createdAt": "2026-10-19T12:00:00Z", "rect": { "x": 100, "y": 100, "width": 60, "height": 30 }, "inklist": [ [ { "x": 100, "y": 100 }, { "x": 130, "y": 130 }, { "x": 160, "y": 110 } ] ], "color": "#1A1A1A"}Used by
Section titled “Used by”From the creators of Inkbar and Redactr.
Format version 1 · gloss-format 1.3.0