SmartPDF · Schema

EditPdfRequest

«Редактор PDF»: объекты поверх страниц (текст, подпись, картинка, «Закрасить», фигуры) и замена строк текста.

PDFConversionOnline ToolFreeRussia

Properties

Name Type Description
webhook_url object https-адрес для уведомления о завершении; подпись — заголовок X-SmartPDF-Signature (см. описание API)
file_id string
objects array
View JSON Schema on GitHub

JSON Schema

smartpdf-ru-edit-pdf-request-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/smartpdf-ru/json-schema/smartpdf-ru-edit-pdf-request-schema.json",
  "title": "EditPdfRequest",
  "description": "«Редактор PDF»: объекты поверх страниц (текст, подпись, картинка, «Закрасить», фигуры) и замена строк текста.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/smartpdf-ru-openapi.json#/components/schemas/EditPdfRequest",
  "properties": {
    "webhook_url": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "title": "Webhook Url",
      "description": "https-адрес для уведомления о завершении; подпись — заголовок X-SmartPDF-Signature (см. описание API)"
    },
    "file_id": {
      "type": "string",
      "title": "File Id"
    },
    "objects": {
      "items": {
        "oneOf": [
          {
            "$ref": "#/$defs/EditTextObject"
          },
          {
            "$ref": "#/$defs/EditSignatureObject"
          },
          {
            "$ref": "#/$defs/EditImageObject"
          },
          {
            "$ref": "#/$defs/EditBoxObject"
          },
          {
            "$ref": "#/$defs/EditStrokeObject"
          },
          {
            "$ref": "#/$defs/EditReplaceTextObject"
          }
        ]
      },
      "type": "array",
      "maxItems": 500,
      "minItems": 1,
      "title": "Objects"
    }
  },
  "type": "object",
  "required": [
    "file_id",
    "objects"
  ],
  "$defs": {
    "EditBoxObject": {
      "properties": {
        "page": {
          "type": "integer",
          "maximum": 100000,
          "minimum": 1,
          "title": "Page"
        },
        "type": {
          "type": "string",
          "enum": [
            "whiteout",
            "highlight",
            "rect",
            "ellipse",
            "check",
            "cross"
          ],
          "title": "Type"
        },
        "box": {
          "items": {
            "type": "number",
            "maximum": 1.5,
            "minimum": -0.5
          },
          "type": "array",
          "maxItems": 4,
          "minItems": 4,
          "title": "Box"
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$",
          "title": "Color",
          "default": "#000000"
        },
        "width": {
          "type": "number",
          "maximum": 50,
          "minimum": 0.25,
          "title": "Width",
          "default": 2
        },
        "fill": {
          "anyOf": [
            {
              "type": "string",
              "pattern": "^#[0-9A-Fa-f]{6}$"
            },
            {
              "type": "null"
            }
          ],
          "title": "Fill"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "page",
        "type",
        "box"
      ],
      "title": "EditBoxObject"
    },
    "EditImageObject": {
      "properties": {
        "page": {
          "type": "integer",
          "maximum": 100000,
          "minimum": 1,
          "title": "Page"
        },
        "type": {
          "type": "string",
          "const": "image",
          "title": "Type"
        },
        "box": {
          "items": {
            "type": "number",
            "maximum": 1.5,
            "minimum": -0.5
          },
          "type": "array",
          "maxItems": 4,
          "minItems": 4,
          "title": "Box"
        },
        "file_id": {
          "type": "string",
          "maxLength": 64,
          "title": "File Id"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "page",
        "type",
        "box",
        "file_id"
      ],
      "title": "EditImageObject"
    },
    "EditReplaceTextObject": {
      "properties": {
        "page": {
          "type": "integer",
          "maximum": 100000,
          "minimum": 1,
          "title": "Page"
        },
        "type": {
          "type": "string",
          "const": "replace_text",
          "title": "Type"
        },
        "box": {
          "items": {
            "type": "number",
            "maximum": 1.5,
            "minimum": -0.5
          },
          "type": "array",
          "maxItems": 4,
          "minItems": 4,
          "title": "Box"
        },
        "x": {
          "type": "number",
          "maximum": 1.5,
          "minimum": -0.5,
          "title": "X"
        },
        "baseline": {
          "type": "number",
          "maximum": 1.5,
          "minimum": -0.5,
          "title": "Baseline"
        },
        "text": {
          "type": "string",
          "maxLength": 2000,
          "title": "Text",
          "default": ""
        },
        "font": {
          "type": "string",
          "enum": [
            "sans",
            "serif",
            "mono"
          ],
          "title": "Font",
          "default": "sans"
        },
        "bold": {
          "type": "boolean",
          "title": "Bold",
          "default": false
        },
        "italic": {
          "type": "boolean",
          "title": "Italic",
          "default": false
        },
        "size": {
          "type": "number",
          "maximum": 200,
          "minimum": 1,
          "title": "Size",
          "default": 12
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$",
          "title": "Color",
          "default": "#000000"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "page",
        "type",
        "box",
        "x",
        "baseline"
      ],
      "title": "EditReplaceTextObject",
      "description": "«Изменить текст» (этап B): box и baseline — исходная строка (GET /upload/{id}/text), text — новая строка\n(пустая — строку удалить), x — её начало."
    },
    "EditSignatureObject": {
      "properties": {
        "page": {
          "type": "integer",
          "maximum": 100000,
          "minimum": 1,
          "title": "Page"
        },
        "type": {
          "type": "string",
          "const": "signature",
          "title": "Type"
        },
        "box": {
          "items": {
            "type": "number",
            "maximum": 1.5,
            "minimum": -0.5
          },
          "type": "array",
          "maxItems": 4,
          "minItems": 4,
          "title": "Box"
        },
        "file_id": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 64
            },
            {
              "type": "null"
            }
          ],
          "title": "File Id"
        },
        "lines": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "maxLength": 200
              },
              "type": "array",
              "maxItems": 3,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Lines"
        },
        "size": {
          "type": "number",
          "maximum": 200,
          "minimum": 4,
          "title": "Size",
          "default": 24
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$",
          "title": "Color",
          "default": "#000000"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "page",
        "type",
        "box"
      ],
      "title": "EditSignatureObject",
      "description": "Подпись: картинкой (file_id загрузки — нарисованная или загруженная) или введённая (строка рукописным шрифтом)."
    },
    "EditStrokeObject": {
      "properties": {
        "page": {
          "type": "integer",
          "maximum": 100000,
          "minimum": 1,
          "title": "Page"
        },
        "type": {
          "type": "string",
          "enum": [
            "line",
            "arrow",
            "ink"
          ],
          "title": "Type"
        },
        "points": {
          "items": {
            "items": {
              "type": "number",
              "maximum": 1.5,
              "minimum": -0.5
            },
            "type": "array",
            "maxItems": 2,
            "minItems": 2
          },
          "type": "array",
          "maxItems": 5000,
          "minItems": 2,
          "title": "Points"
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$",
          "title": "Color",
          "default": "#000000"
        },
        "width": {
          "type": "number",
          "maximum": 50,
          "minimum": 0.25,
          "title": "Width",
          "default": 2
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "page",
        "type",
        "points"
      ],
      "title": "EditStrokeObject"
    },
    "EditTextObject": {
      "properties": {
        "page": {
          "type": "integer",
          "maximum": 100000,
          "minimum": 1,
          "title": "Page"
        },
        "type": {
          "type": "string",
          "const": "text",
          "title": "Type"
        },
        "box": {
          "items": {
            "type": "number",
            "maximum": 1.5,
            "minimum": -0.5
          },
          "type": "array",
          "maxItems": 4,
          "minItems": 4,
          "title": "Box"
        },
        "lines": {
          "anyOf": [
            {
              "items": {
                "type": "string",
                "maxLength": 5000
              },
              "type": "array",
              "maxItems": 500,
              "minItems": 1
            },
            {
              "type": "null"
            }
          ],
          "title": "Lines"
        },
        "text": {
          "anyOf": [
            {
              "type": "string",
              "maxLength": 5000
            },
            {
              "type": "null"
            }
          ],
          "title": "Text"
        },
        "font": {
          "type": "string",
          "enum": [
            "sans",
            "serif",
            "mono"
          ],
          "title": "Font",
          "default": "sans"
        },
        "bold": {
          "type": "boolean",
          "title": "Bold",
          "default": false
        },
        "italic": {
          "type": "boolean",
          "title": "Italic",
          "default": false
        },
        "size": {
          "type": "number",
          "maximum": 200,
          "minimum": 4,
          "title": "Size",
          "default": 12
        },
        "color": {
          "type": "string",
          "pattern": "^#[0-9A-Fa-f]{6}$",
          "title": "Color",
          "default": "#000000"
        }
      },
      "additionalProperties": false,
      "type": "object",
      "required": [
        "page",
        "type",
        "box"
      ],
      "title": "EditTextObject",
      "description": "Текст: lines — строки, уже перенесённые по ширине рамки (так шлёт редактор сайта, D3), или text — целиком, тогда\nстроки переносит сервер по ширине box (API). box[0], box[1] — левый верхний угол."
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/smartpdf-ru-edit-pdf-request"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.