PDF kit command
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)
- 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/[email protected] and the kit itself (pdf_commands through @kition/[email protected], built from KitionAI/kition-pdf@b0d2725). As data: commands.jsonl.