PDF kit command
file.getInfo
Inspect a document
Metadata, page sizes and labels, bookmarks, annotations, form fields, links, layers, attachments, fonts, security and repair notes.
- 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.getInfo" }]
}The required parameters, with placeholders for their types: not a tested example. pdf_run answers the step’s result in completed[i].result.
Result
| Name | Type | Required | Description |
|---|---|---|---|
annotations | any[] | no | |
attachments | any[] | no | |
author | any | no | |
creator | any | no | |
document | object | no | |
fields | any[] | no | |
file_size | number | no | |
fonts | any[] | no | |
has_javascript | boolean | no | |
keywords | any | no | |
layers | any[] | no | |
links | any[] | no | |
outline | any[] | no | |
outline_more | boolean | no | |
pages | object[] | no | |
pdf_version | string | no | |
producer | any | no | |
repairs | any[] | no | |
security | object | no | |
subject | any | no | |
tagged | boolean | no | |
title | any | no | |
warnings | any[] | no | |
xfa | any | no | |
xfa_layout | any | no | |
xfa_warnings | any[] | no |
Result JSON Schema
json
{
"additionalProperties": true,
"properties": {
"annotations": {
"type": "array"
},
"attachments": {
"type": "array"
},
"author": {},
"creator": {},
"document": {
"additionalProperties": true,
"properties": {
"dirty": {
"type": "boolean"
},
"doc": {
"type": "number"
},
"editable": {
"type": "boolean"
},
"encrypted": {
"type": "boolean"
},
"name": {
"type": "string"
},
"pages": {
"type": "number"
},
"path": {},
"read_only_reason": {},
"redo": {},
"undo": {}
},
"type": "object"
},
"fields": {
"type": "array"
},
"file_size": {
"type": "number"
},
"fonts": {
"type": "array"
},
"has_javascript": {
"type": "boolean"
},
"keywords": {},
"layers": {
"type": "array"
},
"links": {
"type": "array"
},
"outline": {
"type": "array"
},
"outline_more": {
"type": "boolean"
},
"pages": {
"items": {
"additionalProperties": true,
"properties": {
"height": {
"type": "number"
},
"label": {
"type": "string"
},
"page": {
"type": "number"
},
"rotation": {
"type": "number"
},
"width": {
"type": "number"
}
},
"type": "object"
},
"type": "array"
},
"pdf_version": {
"type": "string"
},
"producer": {},
"repairs": {
"type": "array"
},
"security": {
"additionalProperties": true,
"properties": {
"protected": {
"type": "boolean"
}
},
"type": "object"
},
"subject": {},
"tagged": {
"type": "boolean"
},
"title": {},
"warnings": {
"type": "array"
},
"xfa": {},
"xfa_layout": {},
"xfa_warnings": {
"type": "array"
}
},
"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.