PDF kit command
form.detectFields
Detect form fields
Prepare a form ▸ automatic field detection: find the blanks a printed form asks to be filled (underscore runs, lines, empty boxes, small squares for check boxes) and name each field from its label. With add (default true) the fields are created as one undoable step; otherwise they are only proposed. Returns page (1-based), kind, name and rect (points, origin bottom-left).
- Kit
- PDF 0.1.0 (.pdf)
- Changes the document
- yes
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
add | boolean | no | |
pages | integer[] | no | 1-based page numbers to look at (default: all). (minItems 1) |
Call through pdf_run
pdf_run {
"path": "<file>.pdf",
"steps": [{ "command": "form.detectFields" }]
}The required parameters, with placeholders for their types: not a tested example. Optional: add, pages. pdf_run answers the step’s result in completed[i].result.
Result
The kit gives no result schema for this command.
Parameter schema
{
"additionalProperties": false,
"properties": {
"add": {
"type": "boolean"
},
"pages": {
"description": "1-based page numbers to look at (default: all). (minItems 1)",
"items": {
"description": "(minimum 1)",
"type": "integer"
},
"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.