---
title: "page.number: Number pages — PDF kit command — Kition"
description: "Label a range of pages (e.g. i, ii, iii for front matter, or A-1, A-2 for an appendix). Later pages keep their labels. Undoable."
canonical: "https://developer.kition.ai/docs/kits/pdf/commands/page.number"
---

> Canonical HTML: [https://developer.kition.ai/docs/kits/pdf/commands/page.number](https://developer.kition.ai/docs/kits/pdf/commands/page.number)

# page.number

**Number pages.** Label a range of pages (e.g. i, ii, iii for front matter, or A-1, A-2 for an appendix). Later pages keep their labels. Undoable.

- Kit: PDF 0.1.0 (.pdf); reference: [PDF kit commands](https://developer.kition.ai/docs/kits/pdf.md)
- Changes the document: yes

## Parameters

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `from` | `integer` | yes | (minimum 1) |
| `prefix` | `string` | no |  |
| `start` | `integer` | no | Number of the first page in the range (default 1). (minimum 1) |
| `style` | `"decimal" \| "upper-roman" \| "lower-roman" \| "upper-alpha" \| "lower-alpha" \| "none"` | no | Numbering style (default decimal; none = prefix only). |
| `to` | `integer` | yes | (minimum 1) |

## Call through pdf_run

```text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "page.number", "params": { "from": <integer>, "to": <integer> } }]
}
```

The required parameters, with placeholders for their types: not a tested example. Optional: `prefix`, `start`, `style`. pdf_run answers the step’s result in `completed[i].result`.

## Result

The kit gives no result schema for this command.

## Parameter schema

```json
{
  "additionalProperties": false,
  "properties": {
    "from": {
      "description": "(minimum 1)",
      "type": "integer"
    },
    "prefix": {
      "type": "string"
    },
    "start": {
      "description": "Number of the first page in the range (default 1). (minimum 1)",
      "type": "integer"
    },
    "style": {
      "description": "Numbering style (default decimal; none = prefix only).",
      "enum": [
        "decimal",
        "upper-roman",
        "lower-roman",
        "upper-alpha",
        "lower-alpha",
        "none"
      ],
      "type": "string"
    },
    "to": {
      "description": "(minimum 1)",
      "type": "integer"
    }
  },
  "required": [
    "from",
    "to"
  ],
  "type": "object"
}
```

Generated from the command list of @kition/pdf-darwin-arm64@0.1.0 and the kit itself (pdf_commands through @kition/cli@0.1.1, built from KitionAI/kition-pdf@b0d2725).
