---
url: /en-us/standard/levels.md
---
UInk's features are divided into four main levels and one extension level. A level tells implementers "what to support": implementing Core alone is enough to interoperate correctly with other UInk apps; a higher level preserves more content.

::: tip Levels are not written into files
A file has no "level" field and can combine any features freely. Levels are conformance levels of an **implementation**: readers and writers are each verified against the checklists on this page and then declare the level they meet.
:::

## Five levels

| Level | In one sentence | Typical implementations |
| --- | --- | --- |
| **Core** | Strokes and basic shapes on every page are drawn in place | Any drawing app that supports multiple pages and vector graphics, file previewers |
| **Basic** | Strokes and shapes look right | Note-taking and whiteboard apps |
| **Standard** | Everyday scenarios of classroom annotation apps | ICC-CE, Inkeys |
| **Full** | Every capability | Reference implementations of the spec |
| **Inkeys extension** | Inkeys-specific eraser and Clear | Inkeys |

* A higher level includes all requirements of the lower levels: a Standard reader must also meet Core and Basic.
* The Inkeys extension can be added on top of any main level, for example "Standard + Inkeys extension".
* When a reader meets content beyond its level, it handles it as described in [Compatibility and Fallback](compatibility): core content must be displayed normally, and the reader must not reject the whole file because of it.

## Level matrix

Each cell lists the requirements **added** at that level.

| Area | Core | Basic | Standard | Full | Inkeys extension |
| --- | --- | --- | --- | --- | --- |
| **Files and encoding** | Header, object stream, skipping unknown blocks and keys, recovering from a truncated last block, reading version 10 / 11 | — | Incremental write | — | — |
| **Pages** | Multiple pages (`pageGuid` / `pageIndex`), implicit singletons, reading rules for page append | Page background, displayed page number | Workspace type, PowerPoint binding (`slideId`, binding mode, retained pages, end page), current page, `viewport` | Multiple layers, multiple Devices, nested Workspaces | — |
| **[Ink](blocks/ink)** | Pen: point coordinates, per-point width, `fallback` color; round caps; may ignore opacity | `opacity`, Highlighter, `nib`, `cap` | — | Advanced Highlighter, `texture`, `renderOnlyWhenLatest` | Erase Ink and eraser nibs |
| **[Shape](blocks/shape)** | Seven basic geometries (including rotation), stroke color and width, solid fill; may ignore opacity | `opacity`, dashed lines, arrows, rounded corners, `lineCap` / `lineJoin` | Shape object layer `object` | Shape presets and `construction`, `renderOnlyWhenLatest` | — |
| **[Media](blocks/media)** | — | — | Images (PNG / JPEG / SVG), `transform`, `opacity`, `fit`, `crop` | PDF, audio, video | — |
| **[Clear](blocks/clear)** | — | — | — | — | Clear and undo across Clear |
| **[Color](common/color)** | `fallback` (sRGB) | — | — | HDR (`space` + `components`) | — |
| **Undo** | Not required | — | Grouped undo by `undoId` | — | — |

## Declaring a level

Reading and writing are declared separately, in this format:

```text
UInk 1.1 read: Standard + Inkeys extension; write: Basic
```

* Read level: up to which level the app can display content correctly.
* Write level: the highest level of capabilities used by the files the app writes. A writer can always use only the capabilities of a lower level.

## Checklist

Before declaring a level, confirm every item on the checklists of that level and all levels below it, and verify with the [public samples](conformance#public-samples).

### Core

Reading:

* \[ ] Validate the Header and accept version `10`–`19`; read higher minor versions of the same major version, and version 10, on a best-effort basis. (VER-3, VER-4, VER-5, HDR-2)
* \[ ] Skip unknown blocks and keys; when the end is incomplete, discard only the last object; when the middle is corrupt, stop reading. (TYPE-8, TYPE-9, FILE-16, FILE-17)
* \[ ] List all pages by `pageIndex`, including blank pages; when the same Canvas unique key appears more than once, the last one wins. (FILE-7, FILE-8, FILE-9, SAVE-14)
* \[ ] Draw Pen strokes from point coordinates and per-point widths, using the `fallback` color; draw unknown `inkType` values as Pen. (INK-4, INK-5, INK-7, INK-13, NIB-1, COLOR-2)
* \[ ] Draw the stroke and solid fill of the seven basic Shapes (including rotation); draw curves and free-form shapes by connecting the sampled points, without smoothing. (SHAPE-1–SHAPE-4, SHAPE-19–SHAPE-22, SHAPE-24)
* \[ ] Skip Erase Ink; handle Clear according to the fallback rule. (INK-11, CLEAR-7)
* \[ ] Do not write fallback results back to the source file; by default, save files containing unsupported content with Save As. (COMPAT-1–COMPAT-3, TYPE-12)

Writing:

* \[ ] Use exact MessagePack types and bit widths, and write `version = 11`. (TYPE-1, VER-2, HDR-1)
* \[ ] Number `contentId` consecutively from 0 in each Canvas; `undoId` never decreases. (INK-2, INK-3)
* \[ ] Write private fields only in `extra`. (TYPE-4)
* \[ ] For a full save, write a temporary file first and then replace; do not change the GUIDs of the file or its pages. (SAVE-1, SAVE-2, VER-7)

### Basic

Reading:

* \[ ] Draw with the block-level `opacity`; cover the whole highlighter stroke first, then composite it once. (INK-9, INK-10)
* \[ ] Draw nib shapes and caps according to `nib` and `cap`. (NIB-1–NIB-8)
* \[ ] Draw dashed lines, arrows, rounded corners, `lineCap` / `lineJoin`. (SHAPE-3, SHAPE-7, SHAPE-9, SHAPE-10, SHAPE-26, NIB-4, NIB-5)
* \[ ] Draw the page background color and pattern. (CANVAS-8–CANVAS-10)

Writing:

* \[ ] Use Round or Square caps for dotted lines. (NIB-5, SHAPE-7)

### Standard

Reading:

* \[ ] Recognize Workspace types; bind PowerPoint pages by `slideId` or `pageIndex`, and keep pages whose binding fails as unbound pages; keep retained pages out of the normal page order. (HEXT-7, HEXT-10, HEXT-14, CANVAS-11–CANVAS-15)
* \[ ] Apply `viewport`; strokes, shapes and Media are mapped by `viewport` alike. (CANVAS-16–CANVAS-22)
* \[ ] Display image Media, supporting `transform`, `opacity`, `fit` and `crop`; read the resource package safely; keep the layout when resources are missing. (MEDIA-1–MEDIA-7, MEDIA-12, MEDIA-13, EXTRA-1–EXTRA-11)
* \[ ] Treat the parts of a shape object layer as one object; fall back to independent Shapes when the object layer is incomplete. (SHAPE-11–SHAPE-14)
* \[ ] Undo in groups by `undoId`. (INK-3)

Writing:

* \[ ] Incremental writes append only complete blocks; after crash recovery, truncate first, then append. (SAVE-6–SAVE-9, SAVE-20, SAVE-22–SAVE-24)
* \[ ] Page append and compacting (if used). (SAVE-10–SAVE-19)
* \[ ] When resources exist, commit the resource package and the main file in order. (SAVE-5, EXTRA-12–EXTRA-17, MEDIA-14)

### Full

Reading:

* \[ ] Composite multiple layers by `layerIndex`; support multiple Devices, Windows and nested Workspaces. (FILE-11–FILE-13, DEV-5–DEV-7, HEXT-11, HEXT-12)
* \[ ] Use HDR colors; draw the per-point style anchors of Advanced Highlighter. (COLOR-2, INK-12)
* \[ ] Display PDF pages and play audio and video. (MEDIA-8–MEDIA-11)
* \[ ] Rebuild editable shapes from the `construction` of registered presets. (SHAPE-15, PRESET-1–PRESET-23)
* \[ ] Apply the `renderOnlyWhenLatest` rule. (INK-15)

Writing:

* \[ ] When writing HDR colors, also write a `fallback` that represents the SDR appearance. (COLOR-1)
* \[ ] Write the per-point `color` and `opacity` of Advanced Highlighter in pairs. (INK-12)
* \[ ] For shape correction, first write the original marked `renderOnlyWhenLatest`, then write the unmarked corrected result. (INK-15)
* \[ ] Write the parts of a preset object as the final geometry of `construction` after the `transform`; after editing, replace all parts with the rebuilt result and use a new `revision`; split closed dashed lines into segments according to PRESET-23. (SHAPE-12, SHAPE-13, PRESET-1, PRESET-2, PRESET-23)
* \[ ] The Device tree formed by multiple Devices and Windows must not contain cycles. (DEV-7)

### Inkeys extension

Reading:

* \[ ] Erase Ink acts on the preceding Ink and Shape in object stream order, not on Media; support eraser nib shapes. (INK-11, NIB-2)
* \[ ] Clear clears the visible result so far and keeps the old interval for undo. (CLEAR-1–CLEAR-6)

Writing:

* \[ ] When exporting for lower-level apps, bake the eraser, delete the content before Clear, and produce a new compact file. (COMPAT-5, COMPAT-6, [Compatible export](compatibility#compatible-export))
