PDF kit command

file.listRevisions

List revisions

List the document's saved revisions (oldest first): each incremental update is one. Returns revision number, where it ends in the file and its size, and which signatures sign exactly that revision.

Kit
PDF 0.1.0 (.pdf)
Changes the document
no

Parameters

None.

Call through pdf_run

text
pdf_run {
  "path": "<file>.pdf",
  "steps": [{ "command": "file.listRevisions" }]
}

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

Result

Result of file.listRevisions
NameTypeRequiredDescription
revisionsobject[]no
unsaved_changesbooleanno
Result JSON Schema
json
{
  "additionalProperties": true,
  "properties": {
    "revisions": {
      "items": {
        "additionalProperties": true,
        "properties": {
          "bytes": {
            "type": "number"
          },
          "end": {
            "type": "number"
          },
          "revision": {
            "type": "number"
          },
          "signed_by": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "type": "array"
    },
    "unsaved_changes": {
      "type": "boolean"
    }
  },
  "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.