{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/blinkpdf-io/json-schema/blinkpdf-io-acro-form-inspection-schema.json",
  "title": "AcroForm.Inspection",
  "description": "Deterministic document, page, logical-field, widget, capability, appearance, and diagnostic metadata for a structurally readable PDF.",
  "x-generated": "2026-10-30",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/blinkpdf-io-openapi.json#/components/schemas/AcroForm.Inspection",
  "additionalProperties": false,
  "type": "object",
  "required": [
    "coordinateSystem",
    "document",
    "pages",
    "fields",
    "diagnostics"
  ],
  "properties": {
    "coordinateSystem": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "unit",
        "publicSpace",
        "pdfSpace"
      ],
      "properties": {
        "unit": {
          "const": "pt",
          "type": "string"
        },
        "publicSpace": {
          "additionalProperties": false,
          "type": "object",
          "required": [
            "box",
            "origin",
            "xAxis",
            "yAxis",
            "pageRotationApplied"
          ],
          "properties": {
            "box": {
              "const": "mediaBox",
              "type": "string"
            },
            "origin": {
              "const": "top-left",
              "type": "string"
            },
            "xAxis": {
              "const": "right",
              "type": "string"
            },
            "yAxis": {
              "const": "down",
              "type": "string"
            },
            "pageRotationApplied": {
              "const": false,
              "type": "boolean"
            }
          }
        },
        "pdfSpace": {
          "additionalProperties": false,
          "type": "object",
          "required": [
            "space",
            "xAxis",
            "yAxis",
            "rectOrder"
          ],
          "properties": {
            "space": {
              "const": "defaultUserSpace",
              "type": "string"
            },
            "xAxis": {
              "const": "right",
              "type": "string"
            },
            "yAxis": {
              "const": "up",
              "type": "string"
            },
            "rectOrder": {
              "const": "minXMinYMaxXMaxY",
              "type": "string"
            }
          }
        }
      }
    },
    "document": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "acroFormPresent",
        "xfaPresent",
        "needAppearances",
        "signatureState"
      ],
      "properties": {
        "acroFormPresent": {
          "type": "boolean"
        },
        "xfaPresent": {
          "type": "boolean"
        },
        "needAppearances": {
          "type": "boolean"
        },
        "signatureState": {
          "type": "string",
          "enum": [
            "none",
            "unsignedFields",
            "signed",
            "certified"
          ]
        }
      }
    },
    "pages": {
      "type": "array",
      "items": {
        "additionalProperties": false,
        "type": "object",
        "required": [
          "index",
          "number",
          "width",
          "height",
          "displayWidth",
          "displayHeight",
          "mediaBoxPdf",
          "cropBoxPdf",
          "rotation"
        ],
        "properties": {
          "index": {
            "minimum": 0,
            "type": "integer"
          },
          "number": {
            "minimum": 1,
            "type": "integer"
          },
          "width": {
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "height": {
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "displayWidth": {
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "displayHeight": {
            "exclusiveMinimum": 0,
            "type": "number"
          },
          "mediaBoxPdf": {
            "$ref": "#/$defs/AcroForm.Inspection.pages.item.mediaBoxPdf"
          },
          "cropBoxPdf": {
            "$ref": "#/$defs/AcroForm.Inspection.pages.item.mediaBoxPdf"
          },
          "rotation": {
            "type": "number",
            "enum": [
              0,
              90,
              180,
              270
            ]
          }
        }
      }
    },
    "fields": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind",
              "value",
              "multiline",
              "password",
              "fileSelect",
              "spellCheck",
              "scroll",
              "comb",
              "richText",
              "alignment",
              "text"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "text",
                "type": "string"
              },
              "value": {
                "type": "string"
              },
              "defaultValue": {
                "type": "string"
              },
              "maxLength": {
                "minimum": 1,
                "type": "integer"
              },
              "multiline": {
                "type": "boolean"
              },
              "password": {
                "type": "boolean"
              },
              "fileSelect": {
                "type": "boolean"
              },
              "spellCheck": {
                "type": "boolean"
              },
              "scroll": {
                "type": "boolean"
              },
              "comb": {
                "type": "boolean"
              },
              "combSlots": {
                "minItems": 1,
                "type": "array",
                "items": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "widthFraction",
                    "maxChars"
                  ],
                  "properties": {
                    "widthFraction": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    },
                    "maxChars": {
                      "minimum": 1,
                      "type": "integer"
                    }
                  }
                }
              },
              "lineHeight": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "firstLineInset": {
                "exclusiveMinimum": 0,
                "type": "number"
              },
              "richText": {
                "type": "boolean"
              },
              "alignment": {
                "type": "string",
                "enum": [
                  "left",
                  "center",
                  "right"
                ]
              },
              "text": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.resolved"
                  },
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.unresolved"
                  }
                ]
              }
            }
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind",
              "checked",
              "exportValue"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "checkbox",
                "type": "string"
              },
              "checked": {
                "type": "boolean"
              },
              "defaultChecked": {
                "type": "boolean"
              },
              "exportValue": {
                "minLength": 1,
                "type": "string"
              }
            }
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind",
              "selected",
              "noToggleToOff",
              "radiosInUnison",
              "options"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "radio",
                "type": "string"
              },
              "selected": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "defaultSelected": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "noToggleToOff": {
                "type": "boolean"
              },
              "radiosInUnison": {
                "type": "boolean"
              },
              "options": {
                "type": "array",
                "items": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "index",
                    "exportValue",
                    "widgetIndex"
                  ],
                  "properties": {
                    "index": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "exportValue": {
                      "type": "string"
                    },
                    "widgetIndex": {
                      "minimum": 0,
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind",
              "choiceType",
              "editable",
              "multiple",
              "value",
              "options",
              "selectedIndices",
              "sort",
              "spellCheck",
              "commitOnSelectionChange",
              "alignment",
              "text"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "choice",
                "type": "string"
              },
              "choiceType": {
                "type": "string",
                "enum": [
                  "list",
                  "combo"
                ]
              },
              "editable": {
                "type": "boolean"
              },
              "multiple": {
                "type": "boolean"
              },
              "value": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/Problem.validation_failed.errors.item.allowedKeys"
                  }
                ]
              },
              "defaultValue": {
                "anyOf": [
                  {
                    "type": "string"
                  },
                  {
                    "type": "null"
                  },
                  {
                    "$ref": "#/$defs/Problem.validation_failed.errors.item.allowedKeys"
                  }
                ]
              },
              "options": {
                "type": "array",
                "items": {
                  "additionalProperties": false,
                  "type": "object",
                  "required": [
                    "index",
                    "exportValue"
                  ],
                  "properties": {
                    "index": {
                      "minimum": 0,
                      "type": "integer"
                    },
                    "exportValue": {
                      "type": "string"
                    },
                    "displayValue": {
                      "type": "string"
                    }
                  }
                }
              },
              "selectedIndices": {
                "type": "array",
                "items": {
                  "minimum": 0,
                  "type": "integer"
                }
              },
              "sort": {
                "type": "boolean"
              },
              "spellCheck": {
                "type": "boolean"
              },
              "commitOnSelectionChange": {
                "type": "boolean"
              },
              "topIndex": {
                "minimum": 0,
                "type": "integer"
              },
              "alignment": {
                "type": "string",
                "enum": [
                  "left",
                  "center",
                  "right"
                ]
              },
              "text": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.resolved"
                  },
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.unresolved"
                  }
                ]
              }
            }
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "pushbutton",
                "type": "string"
              }
            }
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind",
              "state"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "signature",
                "type": "string"
              },
              "state": {
                "type": "string",
                "enum": [
                  "empty",
                  "signed"
                ]
              }
            }
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "index",
              "name",
              "partialName",
              "displayLabel",
              "pdfFieldType",
              "control",
              "capabilities",
              "readOnly",
              "required",
              "noExport",
              "widgets",
              "kind",
              "valuePresent",
              "defaultValuePresent"
            ],
            "properties": {
              "index": {
                "minimum": 0,
                "type": "integer"
              },
              "name": {
                "minLength": 1,
                "type": "string"
              },
              "partialName": {
                "type": "string"
              },
              "alternateName": {
                "type": "string"
              },
              "mappingName": {
                "type": "string"
              },
              "displayLabel": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.displayLabel"
              },
              "pdfFieldType": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "control": {
                "type": "string",
                "enum": [
                  "file",
                  "password",
                  "comb",
                  "textarea",
                  "text",
                  "checkbox",
                  "radio",
                  "select",
                  "listbox",
                  "button",
                  "signature",
                  "unsupported"
                ]
              },
              "capabilities": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities"
              },
              "readOnly": {
                "type": "boolean"
              },
              "required": {
                "type": "boolean"
              },
              "noExport": {
                "type": "boolean"
              },
              "widgets": {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets"
              },
              "kind": {
                "const": "unknown",
                "type": "string"
              },
              "valuePresent": {
                "type": "boolean"
              },
              "defaultValuePresent": {
                "type": "boolean"
              }
            }
          }
        ]
      }
    },
    "diagnostics": {
      "type": "array",
      "items": {
        "additionalProperties": false,
        "type": "object",
        "required": [
          "code",
          "severity",
          "scope",
          "message"
        ],
        "properties": {
          "code": {
            "minLength": 1,
            "type": "string"
          },
          "severity": {
            "type": "string",
            "enum": [
              "info",
              "warning"
            ]
          },
          "scope": {
            "type": "string",
            "enum": [
              "document",
              "page",
              "field",
              "widget"
            ]
          },
          "message": {
            "minLength": 1,
            "type": "string"
          },
          "pageIndex": {
            "minimum": 0,
            "type": "integer"
          },
          "fieldIndex": {
            "minimum": 0,
            "type": "integer"
          },
          "widgetIndex": {
            "minimum": 0,
            "type": "integer"
          },
          "fieldName": {
            "minLength": 1,
            "type": "string"
          }
        }
      }
    }
  },
  "$defs": {
    "AcroForm.Inspection.fields.item.text.capabilities": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "fillByName",
        "author"
      ],
      "properties": {
        "fillByName": {
          "anyOf": [
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities.fillByName.anyOf0"
            },
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities.fillByName.anyOf1"
            }
          ]
        },
        "author": {
          "anyOf": [
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities.fillByName.anyOf0"
            },
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.capabilities.fillByName.anyOf1"
            }
          ]
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.capabilities.fillByName.anyOf0": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "supported"
      ],
      "properties": {
        "supported": {
          "const": true,
          "type": "boolean"
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.capabilities.fillByName.anyOf1": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "supported",
        "reasons"
      ],
      "properties": {
        "supported": {
          "const": false,
          "type": "boolean"
        },
        "reasons": {
          "minItems": 1,
          "type": "array",
          "items": {
            "type": "string",
            "enum": [
              "documentSigned",
              "documentCertified",
              "xfaPresent",
              "needAppearances",
              "pushbutton",
              "signature",
              "unknownFieldType",
              "choiceEditable",
              "choiceMultiSelect",
              "richTextUnsupported",
              "noWidgets",
              "conflictingFlags",
              "unsupportedAppearance",
              "inconsistentFieldState"
            ]
          }
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.displayLabel": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "value",
        "source"
      ],
      "properties": {
        "value": {
          "type": "string"
        },
        "source": {
          "type": "string",
          "enum": [
            "alternateName",
            "partialName",
            "fieldName"
          ]
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets": {
      "type": "array",
      "items": {
        "additionalProperties": false,
        "type": "object",
        "required": [
          "index",
          "pageIndex",
          "pageNumber",
          "bounds",
          "rect",
          "displayBounds",
          "pdfRect",
          "annotationFlags",
          "visibility",
          "rotation",
          "displayRotation",
          "appearance",
          "actions"
        ],
        "properties": {
          "index": {
            "minimum": 0,
            "type": "integer"
          },
          "pageIndex": {
            "minimum": 0,
            "type": "integer"
          },
          "pageNumber": {
            "minimum": 1,
            "type": "integer"
          },
          "bounds": {
            "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.bounds"
          },
          "rect": {
            "$ref": "#/$defs/AcroForm.Inspection.pages.item.mediaBoxPdf"
          },
          "displayBounds": {
            "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.bounds"
          },
          "pdfRect": {
            "$ref": "#/$defs/AcroForm.Inspection.pages.item.mediaBoxPdf"
          },
          "annotationFlags": {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "invisible",
              "hidden",
              "print",
              "noZoom",
              "noRotate",
              "noView",
              "readOnly",
              "locked",
              "toggleNoView",
              "lockedContents"
            ],
            "properties": {
              "invisible": {
                "type": "boolean"
              },
              "hidden": {
                "type": "boolean"
              },
              "print": {
                "type": "boolean"
              },
              "noZoom": {
                "type": "boolean"
              },
              "noRotate": {
                "type": "boolean"
              },
              "noView": {
                "type": "boolean"
              },
              "readOnly": {
                "type": "boolean"
              },
              "locked": {
                "type": "boolean"
              },
              "toggleNoView": {
                "type": "boolean"
              },
              "lockedContents": {
                "type": "boolean"
              }
            }
          },
          "visibility": {
            "type": "string",
            "enum": [
              "hidden",
              "screenOnly",
              "printOnly",
              "screenAndPrint",
              "dynamic"
            ]
          },
          "rotation": {
            "type": "number",
            "enum": [
              0,
              90,
              180,
              270
            ]
          },
          "displayRotation": {
            "type": "number",
            "enum": [
              0,
              90,
              180,
              270
            ]
          },
          "backgroundColor": {
            "anyOf": [
              {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.gray"
              },
              {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.rgb"
              },
              {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.cmyk"
              }
            ]
          },
          "border": {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "style",
              "width"
            ],
            "properties": {
              "style": {
                "type": "string",
                "enum": [
                  "solid",
                  "dashed",
                  "beveled",
                  "inset",
                  "underline"
                ]
              },
              "width": {
                "minimum": 0,
                "type": "number"
              },
              "color": {
                "anyOf": [
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.gray"
                  },
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.rgb"
                  },
                  {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.cmyk"
                  }
                ]
              },
              "dashPattern": {
                "type": "array",
                "items": {
                  "minimum": 0,
                  "type": "number"
                }
              }
            }
          },
          "captions": {
            "additionalProperties": false,
            "type": "object",
            "properties": {
              "normal": {
                "type": "string"
              },
              "rollover": {
                "type": "string"
              },
              "down": {
                "type": "string"
              }
            }
          },
          "text": {
            "anyOf": [
              {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.resolved"
              },
              {
                "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.unresolved"
              }
            ]
          },
          "appearance": {
            "anyOf": [
              {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind"
                ],
                "properties": {
                  "kind": {
                    "const": "missing",
                    "type": "string"
                  }
                }
              },
              {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "resources"
                ],
                "properties": {
                  "kind": {
                    "const": "stream",
                    "type": "string"
                  },
                  "resources": {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.appearance.stream.resources"
                  }
                }
              },
              {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "kind",
                  "states",
                  "resources"
                ],
                "properties": {
                  "kind": {
                    "const": "states",
                    "type": "string"
                  },
                  "states": {
                    "$ref": "#/$defs/Problem.validation_failed.errors.item.allowedKeys"
                  },
                  "activeState": {
                    "type": "string"
                  },
                  "resources": {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.appearance.stream.resources"
                  }
                }
              }
            ]
          },
          "actions": {
            "type": "array",
            "items": {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "trigger",
                "type"
              ],
              "properties": {
                "trigger": {
                  "type": "string",
                  "enum": [
                    "activate",
                    "mouseEnter",
                    "mouseExit",
                    "mouseDown",
                    "mouseUp",
                    "focus",
                    "blur",
                    "pageOpen",
                    "pageClose",
                    "pageVisible",
                    "pageInvisible"
                  ]
                },
                "type": {
                  "type": "string",
                  "enum": [
                    "goTo",
                    "goToRemote",
                    "launch",
                    "thread",
                    "uri",
                    "sound",
                    "movie",
                    "hide",
                    "named",
                    "submitForm",
                    "resetForm",
                    "importData",
                    "javascript",
                    "setOCGState",
                    "rendition",
                    "transition",
                    "goTo3DView",
                    "unknown"
                  ]
                }
              }
            }
          },
          "exportValue": {
            "type": "string"
          },
          "printed": {
            "description": "What the page prints around the widget as a person sees it (page rotation applied): the nearest text on each side within 144 pt left or right and 72 pt above or below, text inside the box, and printed cells across it. Read from the page content, never inferred from the field; a side with no text is absent. Present on `POST /v1/inspect`; a stored template's snapshot, a rewrite, and a repair plan describe the form and do not read its pages.",
            "anyOf": [
              {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "status"
                ],
                "properties": {
                  "status": {
                    "const": "read",
                    "type": "string"
                  },
                  "left": {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.printed.read.left"
                  },
                  "right": {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.printed.read.left"
                  },
                  "above": {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.printed.read.left"
                  },
                  "below": {
                    "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.printed.read.left"
                  },
                  "inside": {
                    "minLength": 1,
                    "description": "Text the page prints inside the box.",
                    "type": "string"
                  },
                  "cells": {
                    "minItems": 2,
                    "maxItems": 64,
                    "description": "Widths in pt, left to right, of the cells that rules the page prints across the box divide it into; absent when they would be more than 64.",
                    "type": "array",
                    "items": {
                      "exclusiveMinimum": 0,
                      "type": "number"
                    }
                  }
                }
              },
              {
                "additionalProperties": false,
                "type": "object",
                "required": [
                  "status",
                  "reason"
                ],
                "properties": {
                  "status": {
                    "const": "unread",
                    "type": "string"
                  },
                  "reason": {
                    "description": "`contentUnreadable`: the page content does not paint as a PDF defines it. `readLimit`: the page prints more beside its boxes than one inspection reads, or earlier pages spent what it reads.",
                    "type": "string",
                    "enum": [
                      "contentUnreadable",
                      "readLimit"
                    ]
                  }
                }
              }
            ]
          }
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.appearance.stream.resources": {
      "type": "array",
      "items": {
        "anyOf": [
          {
            "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.resolved.sourceResource"
          },
          {
            "additionalProperties": false,
            "type": "object",
            "required": [
              "sourceResourceId",
              "kind",
              "embedded"
            ],
            "properties": {
              "sourceResourceId": {
                "minLength": 1,
                "type": "string"
              },
              "kind": {
                "const": "image",
                "type": "string"
              },
              "displayName": {
                "minLength": 1,
                "type": "string"
              },
              "embedded": {
                "type": "boolean"
              },
              "blinkAssetId": {
                "minLength": 1,
                "type": "string"
              }
            }
          }
        ]
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.cmyk": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "space",
        "components"
      ],
      "properties": {
        "space": {
          "const": "cmyk",
          "type": "string"
        },
        "components": {
          "type": "array",
          "items": {
            "minimum": 0,
            "maximum": 1,
            "type": "number"
          },
          "minItems": 4,
          "maxItems": 4
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.gray": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "space",
        "components"
      ],
      "properties": {
        "space": {
          "const": "gray",
          "type": "string"
        },
        "components": {
          "type": "array",
          "items": {
            "minimum": 0,
            "maximum": 1,
            "type": "number"
          },
          "minItems": 1,
          "maxItems": 1
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.rgb": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "space",
        "components"
      ],
      "properties": {
        "space": {
          "const": "rgb",
          "type": "string"
        },
        "components": {
          "type": "array",
          "items": {
            "minimum": 0,
            "maximum": 1,
            "type": "number"
          },
          "minItems": 3,
          "maxItems": 3
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.bounds": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "x",
        "y",
        "width",
        "height"
      ],
      "properties": {
        "x": {
          "type": "number"
        },
        "y": {
          "type": "number"
        },
        "width": {
          "exclusiveMinimum": 0,
          "type": "number"
        },
        "height": {
          "exclusiveMinimum": 0,
          "type": "number"
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.printed.read.left": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "text",
        "gap"
      ],
      "properties": {
        "text": {
          "minLength": 1,
          "description": "The nearest line the page prints on that side, cut to 80 characters with `…` where it was cut (a left line keeps the end that meets the box).",
          "type": "string"
        },
        "gap": {
          "minimum": 0,
          "description": "Distance in pt between the box and that text.",
          "type": "number"
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.text.resolved": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "status",
        "fontResourceName",
        "fontName",
        "sourceResource",
        "fontSize",
        "color",
        "alignment"
      ],
      "properties": {
        "status": {
          "const": "resolved",
          "type": "string"
        },
        "fontResourceName": {
          "minLength": 1,
          "type": "string"
        },
        "fontName": {
          "minLength": 1,
          "type": "string"
        },
        "sourceResource": {
          "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.text.resolved.sourceResource"
        },
        "fontSize": {
          "anyOf": [
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "mode",
                "value"
              ],
              "properties": {
                "mode": {
                  "const": "fixed",
                  "type": "string"
                },
                "value": {
                  "exclusiveMinimum": 0,
                  "type": "number"
                }
              }
            },
            {
              "additionalProperties": false,
              "type": "object",
              "required": [
                "mode"
              ],
              "properties": {
                "mode": {
                  "const": "auto",
                  "type": "string"
                }
              }
            }
          ]
        },
        "color": {
          "anyOf": [
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.gray"
            },
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.rgb"
            },
            {
              "$ref": "#/$defs/AcroForm.Inspection.fields.item.text.widgets.item.backgroundColor.cmyk"
            }
          ]
        },
        "alignment": {
          "type": "string",
          "enum": [
            "left",
            "center",
            "right"
          ]
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.text.resolved.sourceResource": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "sourceResourceId",
        "kind",
        "embedded",
        "subset"
      ],
      "properties": {
        "sourceResourceId": {
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "const": "font",
          "type": "string"
        },
        "displayName": {
          "minLength": 1,
          "type": "string"
        },
        "embedded": {
          "type": "boolean"
        },
        "subset": {
          "type": "boolean"
        },
        "blinkAssetId": {
          "minLength": 1,
          "type": "string"
        }
      }
    },
    "AcroForm.Inspection.fields.item.text.widgets.item.text.unresolved": {
      "additionalProperties": false,
      "type": "object",
      "required": [
        "status",
        "reason"
      ],
      "properties": {
        "status": {
          "const": "unresolved",
          "type": "string"
        },
        "reason": {
          "type": "string",
          "enum": [
            "missingDefaultAppearance",
            "invalidDefaultAppearance",
            "missingFontResource",
            "unsupportedColor"
          ]
        }
      }
    },
    "AcroForm.Inspection.pages.item.mediaBoxPdf": {
      "type": "array",
      "items": {
        "type": "number"
      },
      "minItems": 4,
      "maxItems": 4
    },
    "Problem.validation_failed.errors.item.allowedKeys": {
      "type": "array",
      "items": {
        "type": "string"
      }
    }
  }
}