SmartPDF
Конвертация, сжатие, объединение, OCR, подпись и защита PDF-файлов
Добавьте сервер в «Мои MCP» — получите адрес подключения для Claude и ChatGPT.
Добавить в «Мои MCP»Нужно войти или зарегистрироваться — вернём на эту страницу.
Описание
SmartPDF — сервис обработки PDF-документов. Сервер позволяет поручить ассистенту типовые операции с файлами, доступными по публичной ссылке. Можно конвертировать PDF в Word, Excel, PowerPoint, JPG и текст и обратно — Word, Excel, PowerPoint, HTML и изображения в PDF. Есть сжатие, объединение и разделение файлов, поворот, удаление, извлечение и перестановка страниц, нумерация страниц и водяные знаки. Также доступны распознавание текста в сканах, визуальная подпись, установка и снятие пароля и «сглаживание» форм и аннотаций. Обработка платная: стоимость списывается с баланса аккаунта SmartPDF в рублях, нужен свой аккаунт и ключ.
Инструменты · 48
из ответа tools/list
Нумерация страниц
add_page_numbers
Нумерация страниц
add_page_numbers Добавляет номера страниц в PDF. file_url: публичный URL PDF-файла. position: bottom-center | bottom-right | top-center | top-right. start_from: стартовый номер (по умолчанию 1). prefix: текст перед номером, например "Стр. " или "— ". font_size: размер шрифта 6–72 (по умолчанию 12).
add_page_numbers(prefix?: string, file_url: string, position?: string, font_size?: integer, start_from?: integer)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"prefix": {
"type": "string",
"default": ""
},
"file_url": {
"type": "string"
},
"position": {
"type": "string",
"default": "bottom-center"
},
"font_size": {
"type": "integer",
"default": 12
},
"start_from": {
"type": "integer",
"default": 1
}
},
"additionalProperties": false
}
Сжать фото
compress_image
Сжать фото
compress_image Сжимает фото (JPG, PNG, WEBP, HEIC). Одно фото — файл, несколько — ZIP-архив. file_urls: публичные URL фото. level: light (высокое качество) | medium (по умолчанию, до 2560 px) | strong (до 1600 px). target_kb: сжать до размера в КБ (10–50000), тогда level не используется.
compress_image(level?: string, file_urls: array, target_kb?: any)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"level": {
"type": "string",
"default": "medium"
},
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
},
"target_kb": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
}
Сжать PDF
compress_pdf
Сжать PDF
compress_pdf Сжимает PDF-файл. file_url: публичный URL PDF-файла. level: low | medium (по умолчанию) | high.
compress_pdf(level?: string, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"level": {
"type": "string",
"default": "medium"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Обрезать фото
crop_image
Обрезать фото
crop_image Обрезает фото по рамке, формат сохраняется. file_url: публичный URL фото. box: [x0, y0, x1, y1] долями кадра (0–1, от левого верхнего угла; фото повёрнуто по EXIF).
crop_image(box: array, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"box"
],
"properties": {
"box": {
"type": "array",
"items": {
"type": "number"
}
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Обрезать PDF
crop_pdf
Обрезать PDF
crop_pdf Обрезает страницы PDF. Без box — убирает белые поля автоматически. file_url: публичный URL PDF-файла. box: область [x0, y0, x1, y1] долями видимой страницы (0–1, от левого верхнего угла), например [0, 0, 1, 0.5] — верхняя половина. Содержимое за краем остаётся в файле — для скрытия данных используйте redact_pdf. pages: номера страниц (с 1) или "all".
crop_pdf(box?: any, pages?: any, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"box": {
"anyOf": [
{
"type": "array",
"items": {
"type": "number"
}
},
{
"type": "null"
}
],
"default": null
},
"pages": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer"
}
},
{
"type": "string"
}
],
"default": "all"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Удалить страницы
delete_pages
Удалить страницы
delete_pages Удаляет указанные страницы из PDF. file_url: публичный URL PDF-файла. pages: список номеров страниц для удаления (1-based).
delete_pages(pages: array, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"pages"
],
"properties": {
"pages": {
"type": "array",
"items": {
"type": "integer"
}
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
DjVu в PDF
djvu_to_pdf
DjVu в PDF
djvu_to_pdf Конвертирует книгу или скан DjVu в PDF. file_url: публичный URL DjVu-файла.
djvu_to_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Редактор PDF
edit_pdf
Редактор PDF
edit_pdf Редактор PDF: за один вызов кладёт на страницы любое число объектов — текст, подпись (рукописным шрифтом или картинкой), картинку, закрашивание с удалением текста под ним, пометки, фигуры — и меняет строки существующего текста. Одна текстовая подпись в одном месте — проще через sign_pdf; поиск и удаление персональных данных — redact_pdf. file_url: публичный URL PDF-файла. objects: список объектов по порядку (последний — сверху). Координаты — доли видимой страницы (0–1, от левого верхнего угла), box — [x0, y0, x1, y1], размеры шрифта и линий — в пунктах. У каждого объекта page (с 1) и type: text — box, text (переносится по ширине box), size (12), font sans|serif|mono, bold, italic, color "#RRGGBB"; signature — box и lines (["Иванов И. И."], рукописный шрифт) или image_url (картинка подписи); image — box, image_url (PNG, JPG, WEBP); whiteout — закрасить: текст под ним удаляется из файла; color (по умолчанию чёрный, "#FFFFFF" — белый); highlight, rect, ellipse, check, cross — box, color, width, fill; line, arrow, ink — points [[x, y], ...], color, width; replace_text — заменить строку: box и baseline исходной строки, x начала, text (пустой — удалить строку). Подпись через API не входит в лимит подписей сайта.
edit_pdf(objects: array, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"objects"
],
"properties": {
"objects": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
EPUB в PDF
epub_to_pdf
EPUB в PDF
epub_to_pdf Конвертирует книгу EPUB в PDF с оглавлением. file_url: публичный URL EPUB-файла. page: a5 (по умолчанию, как книга) | a4.
epub_to_pdf(page?: string, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"page": {
"type": "string",
"default": "a5"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Извлечь страницы
extract_pages
Извлечь страницы
extract_pages Извлекает выбранные страницы в новый PDF. file_url: публичный URL PDF-файла. pages: список номеров страниц (1-based), порядок сохраняется.
extract_pages(pages: array, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"pages"
],
"properties": {
"pages": {
"type": "array",
"items": {
"type": "integer"
}
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
FB2 в PDF
fb2_to_pdf
FB2 в PDF
fb2_to_pdf Конвертирует книгу FB2 в PDF с оглавлением. file_url: публичный URL FB2-файла. page: a5 (по умолчанию, как книга) | a4.
fb2_to_pdf(page?: string, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"page": {
"type": "string",
"default": "a5"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Найти персональные данные
find_personal_data
Найти персональные данные
find_personal_data Находит персональные данные в PDF, файл не меняет. Номера проверяются контрольными суммами (СНИЛС, ИНН, карты). file_url: публичный URL PDF-файла. kinds: passport, snils, inn, phone, email, card, account; по умолчанию всё. words: свои слова — ФИО, адрес (каждое от 3 символов). Возвращает result: {"pages": [{"page", "items": [{"kind", "text", "boxes"}]}], "scanned": [страницы-сканы без текста], "total"}; boxes — [x0, y0, x1, y1] долями страницы, их можно передать в redact_pdf как areas.
find_personal_data(kinds?: any, words?: any, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"kinds": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null
},
"words": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Сгладить PDF
flatten_pdf
Сгладить PDF
flatten_pdf Сглаживает PDF (flatten): впечатывает поля форм и аннотации в страницы. Результат нельзя редактировать — идеально для госорганов и печати. file_url: публичный URL PDF-файла.
flatten_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Баланс API
get_balance
Баланс API
get_balance Возвращает баланс API аккаунта (общий для всех ключей и MCP), в рублях. balance: остаток, ₽; spent_month: потрачено в этом месяце, ₽; request_price: цена запроса за каждые начатые request_unit_mb МБ входа (файл до 10 МБ — один запрос); included_remaining: сколько обычных запросов в текущем месяце тарифа ещё входит в тариф Бизнес (месяц — от даты покупки, обновятся в included_resets_at; расходуются раньше баланса; у других тарифов 0).
get_balance()
// inputSchema
{
"type": "object",
"properties": {},
"additionalProperties": false
}
PDF в ч/б
grayscale_pdf
PDF в ч/б
grayscale_pdf Переводит PDF в оттенки серого (ч/б) — для печати и требований «только ч/б». Текст остаётся текстом. file_url: публичный URL PDF-файла.
grayscale_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
HEIC в JPG
heic_to_jpg
HEIC в JPG
heic_to_jpg Конвертирует фото HEIC/HEIF с iPhone в JPG. Одно фото — JPG, несколько — ZIP-архив. file_urls: публичные URL фото HEIC. compact: уменьшить до 2000 px. keep_metadata: сохранить данные съёмки (EXIF: дата, камера, геометка).
heic_to_jpg(compact?: boolean, file_urls: array, keep_metadata?: boolean)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"compact": {
"type": "boolean",
"default": false
},
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
},
"keep_metadata": {
"type": "boolean",
"default": false
}
},
"additionalProperties": false
}
HTML в PDF
html_to_pdf
HTML в PDF
html_to_pdf Конвертирует HTML-файл в PDF. file_url: публичный URL HTML-файла. page_size: A4 (по умолчанию) | A3 | Letter. orientation: portrait (по умолчанию) | landscape.
html_to_pdf(file_url: string, page_size?: string, orientation?: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
},
"page_size": {
"type": "string",
"default": "A4"
},
"orientation": {
"type": "string",
"default": "portrait"
}
},
"additionalProperties": false
}
Фото в текст
image_to_text
Фото в текст
image_to_text Распознаёт текст на фото и картинках (OCR): текст всех фото — в один TXT или DOCX. Цена — как у ocr_pdf: одна единица за каждые 10 фото (или 10 МБ); цена единицы — get_balance. file_urls: публичные URL фото (JPG, PNG, WEBP, HEIC, TIFF, BMP). languages: rus, eng, deu, fra; по умолчанию ["rus", "eng"]. format: txt (по умолчанию, строки как на фото) | docx (абзацы).
image_to_text(format?: string, file_urls: array, languages?: any)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"format": {
"type": "string",
"default": "txt"
},
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
},
"languages": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
}
JPG в PDF
jpg_to_pdf
JPG в PDF
jpg_to_pdf Конвертирует изображения (JPEG, PNG) в PDF. Каждое изображение — страница. file_urls: список публичных URL изображений.
jpg_to_pdf(file_urls: array)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
JPG в PNG
jpg_to_png
JPG в PNG
jpg_to_png Конвертирует JPG в PNG. Одна картинка — PNG, несколько — ZIP. file_urls: публичные URL картинок JPG.
jpg_to_png(file_urls: array)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
Объединить PDF
merge_pdfs
Объединить PDF
merge_pdfs Объединяет несколько PDF в один. Порядок файлов = порядок страниц. file_urls: список публичных URL PDF-файлов (минимум 2).
merge_pdfs(file_urls: array)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
Распознать текст в PDF
ocr_pdf
Распознать текст в PDF
ocr_pdf Распознаёт текст в сканированном PDF (OCR). Добавляет невидимый текстовый слой. До 100 страниц за раз (больший файл сначала разделите split_pdf); цена — одна единица (как обычный запрос до 10 МБ) за каждые 10 страниц; цена единицы — get_balance (request_price). file_url: публичный URL PDF-файла. languages: список языков (например ["rus","eng"]). По умолчанию: русский + английский.
ocr_pdf(file_url: string, languages?: any)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
},
"languages": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
}
PDF в Excel
pdf_to_excel
PDF в Excel
pdf_to_excel Извлекает таблицы из PDF и сохраняет в Excel (.xlsx). file_url: публичный URL PDF-файла. layout: per-table (по умолчанию) | single-sheet.
pdf_to_excel(layout?: string, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"layout": {
"type": "string",
"default": "per-table"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в JPG
pdf_to_jpg
PDF в JPG
pdf_to_jpg Конвертирует страницы PDF в JPEG. Результат — ZIP-архив (page-1.jpg, page-2.jpg...). file_url: публичный URL PDF-файла. dpi: 72 | 150 (по умолчанию) | 300.
pdf_to_jpg(dpi?: integer, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"dpi": {
"type": "integer",
"default": 150
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в Markdown
pdf_to_markdown
PDF в Markdown
pdf_to_markdown Конвертирует PDF в Markdown (.md) для нейросетей, баз знаний и документации: заголовки, списки, таблицы, ссылки, жирный и курсив. file_url: публичный URL PDF-файла. ocr: скан без текста — сначала распознать (русский и английский); до 100 страниц, цена — как у ocr_pdf.
pdf_to_markdown(ocr?: boolean, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"ocr": {
"type": "boolean",
"default": false
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в PDF/A
pdf_to_pdfa
PDF в PDF/A
pdf_to_pdfa Конвертирует PDF в PDF/A — формат долговременного хранения (архивы, суды, госорганы). file_url: публичный URL PDF-файла. version: 1 (PDF/A-1b) | 2 (PDF/A-2b, по умолчанию) | 3 (PDF/A-3b).
pdf_to_pdfa(version?: string, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"version": {
"type": "string",
"default": "2"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в PNG
pdf_to_png
PDF в PNG
pdf_to_png Конвертирует страницы PDF в PNG (без потерь, для схем и скриншотов). Результат — ZIP-архив. file_url: публичный URL PDF-файла. dpi: 72 | 150 (по умолчанию) | 300.
pdf_to_png(dpi?: integer, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"dpi": {
"type": "integer",
"default": 150
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в PowerPoint
pdf_to_pptx
PDF в PowerPoint
pdf_to_pptx Конвертирует PDF в PowerPoint (.pptx). Каждая страница — отдельный слайд. file_url: публичный URL PDF-файла.
pdf_to_pptx(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в текст
pdf_to_txt
PDF в текст
pdf_to_txt Извлекает текст из PDF в файл .txt (UTF-8). file_url: публичный URL PDF-файла. mode: text (по умолчанию) | blocks | words. text — простой текст постранично; blocks — текст по абзацам и колонкам; words — каждое слово с координатами.
pdf_to_txt(mode?: string, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"mode": {
"type": "string",
"default": "text"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
PDF в Word
pdf_to_word
PDF в Word
pdf_to_word Конвертирует PDF в редактируемый Word-документ (.docx). file_url: публичный URL PDF-файла. ocr: скан без текста — распознать текст (русский и английский); до 100 страниц, цена — как у ocr_pdf.
pdf_to_word(ocr?: boolean, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"ocr": {
"type": "boolean",
"default": false
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Фото в PDF
photo_to_pdf
Фото в PDF
photo_to_pdf Собирает фото с телефона в PDF: каждое фото — страница. HEIC с iPhone тоже. file_urls: публичные URL фото (JPG, PNG, WEBP, HEIC, TIFF, BMP), порядок = порядок страниц. page: a4 (по умолчанию, лист A4 в ориентации фото) | photo (страница по размеру фото). compact: уменьшить фото до 2000 px и убрать EXIF и геометку (по умолчанию да). grayscale: оттенки серого. scan: «Скан документа» — найти лист на фото, выровнять перспективу, белый фон. scan_color: bw (ч/б как скан, по умолчанию) | color — только при scan.
photo_to_pdf(page?: string, scan?: boolean, compact?: boolean, file_urls: array, grayscale?: boolean, scan_color?: string)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"page": {
"type": "string",
"default": "a4"
},
"scan": {
"type": "boolean",
"default": false
},
"compact": {
"type": "boolean",
"default": true
},
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
},
"grayscale": {
"type": "boolean",
"default": false
},
"scan_color": {
"type": "string",
"default": "bw"
}
},
"additionalProperties": false
}
PNG в JPG
png_to_jpg
PNG в JPG
png_to_jpg Конвертирует PNG в JPG (прозрачность — белый фон). Одна картинка — JPG, несколько — ZIP. file_urls: публичные URL картинок PNG.
png_to_jpg(file_urls: array)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
PowerPoint в PDF
pptx_to_pdf
PowerPoint в PDF
pptx_to_pdf Конвертирует презентацию PowerPoint (.pptx/.ppt) в PDF. file_url: публичный URL PPTX-файла.
pptx_to_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Защитить паролем
protect_pdf
Защитить паролем
protect_pdf Защищает PDF паролем (AES-256). file_url: публичный URL PDF-файла. user_password: пароль для открытия. owner_password: пароль владельца (опционально).
protect_pdf(file_url: string, user_password: string, owner_password?: any)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"user_password"
],
"properties": {
"file_url": {
"type": "string"
},
"user_password": {
"type": "string"
},
"owner_password": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
}
Скрыть персональные данные
redact_pdf
Скрыть персональные данные
redact_pdf Скрывает персональные данные в PDF: находит и удаляет из файла (не просто закрашивает сверху) — под чёрными прямоугольниками текста больше нет. Без areas — ищет сам. file_url: публичный URL PDF-файла. kinds: что искать — passport, snils, inn, phone, email, card, account (счета физлиц); по умолчанию всё. words: свои слова — ФИО, адрес, название (каждое от 3 символов). areas: области вручную — [{"page": 1, "box": [x0, y0, x1, y1]}] долями страницы (например, из find_personal_data). clean: убрать скрытые данные файла — автора, свойства, комментарии, вложения (по умолчанию да). На сканах текста нет — сначала ocr_pdf или укажите areas.
redact_pdf(areas?: any, clean?: boolean, kinds?: any, words?: any, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"areas": {
"anyOf": [
{
"type": "array",
"items": {
"type": "object",
"additionalProperties": true
}
},
{
"type": "null"
}
],
"default": null
},
"clean": {
"type": "boolean",
"default": true
},
"kinds": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null
},
"words": {
"anyOf": [
{
"type": "array",
"items": {
"type": "string"
}
},
{
"type": "null"
}
],
"default": null
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Порядок страниц
reorder_pages
Порядок страниц
reorder_pages Переупорядочивает страницы PDF. file_url: публичный URL PDF-файла. new_order: новый порядок страниц (1-based). Например [3,1,2] для 3-страничного PDF.
reorder_pages(file_url: string, new_order: array)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"new_order"
],
"properties": {
"file_url": {
"type": "string"
},
"new_order": {
"type": "array",
"items": {
"type": "integer"
}
}
},
"additionalProperties": false
}
Восстановить PDF
repair_pdf
Восстановить PDF
repair_pdf Восстанавливает повреждённый PDF, который не открывается или открывается с ошибкой. file_url: публичный URL PDF-файла.
repair_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Изменить размер фото
resize_image
Изменить размер фото
resize_image Меняет размер фото (JPG, PNG, WEBP, HEIC, TIFF, BMP), формат сохраняется. Одно фото — файл, несколько — ZIP. file_urls: публичные URL фото. percent: масштаб в процентах (1–500; по умолчанию 50) — или width и/или height в пикселях. keep_aspect: сохранить пропорции (по меньшему масштабу). enlarge: разрешить увеличение (по умолчанию фото меньше заданного не растягиваются).
resize_image(width?: any, height?: any, enlarge?: boolean, percent?: any, file_urls: array, keep_aspect?: boolean)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"width": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"height": {
"anyOf": [
{
"type": "integer"
},
{
"type": "null"
}
],
"default": null
},
"enlarge": {
"type": "boolean",
"default": false
},
"percent": {
"anyOf": [
{
"type": "number"
},
{
"type": "null"
}
],
"default": null
},
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
},
"keep_aspect": {
"type": "boolean",
"default": true
}
},
"additionalProperties": false
}
Повернуть фото
rotate_image
Повернуть фото
rotate_image Поворачивает и отражает фото, формат сохраняется. Одно фото — файл, несколько — ZIP. file_urls: публичные URL фото. angle: 0 | 90 (по умолчанию) | 180 | 270 — по часовой. flip: horizontal | vertical — отражение после поворота.
rotate_image(flip?: any, angle?: integer, file_urls: array)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"flip": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"angle": {
"type": "integer",
"default": 90
},
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
Повернуть страницы
rotate_pdf
Повернуть страницы
rotate_pdf Поворачивает страницы PDF. file_url: публичный URL PDF-файла. pages: список номеров страниц (1-based) или "all" для всех. angle: угол поворота: 90 | 180 | 270.
rotate_pdf(angle?: integer, pages?: any, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"angle": {
"type": "integer",
"default": 90
},
"pages": {
"anyOf": [
{
"type": "array",
"items": {
"type": "integer"
}
},
{
"type": "string"
}
],
"default": "all"
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Подписать PDF текстом
sign_pdf
Подписать PDF текстом
sign_pdf Ставит одну текстовую подпись (например, «Иванов И. И.») в заданное место одной страницы PDF — самый простой способ подписать. Рукописная подпись картинкой, несколько подписей или подпись вместе с текстом и пометками — edit_pdf (объект signature). Это изображение подписи, не электронная подпись (не КЭП). file_url: публичный URL PDF-файла. signature_text: текст подписи. page: номер страницы (с 1). x, y: координаты (0.0–1.0). width, height: размер блока (0.0–1.0).
sign_pdf(x?: number, y?: number, page?: integer, width?: number, height?: number, file_url: string, signature_text: string)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"signature_text"
],
"properties": {
"x": {
"type": "number",
"default": 0.1
},
"y": {
"type": "number",
"default": 0.85
},
"page": {
"type": "integer",
"default": 1
},
"width": {
"type": "number",
"default": 0.2
},
"height": {
"type": "number",
"default": 0.05
},
"file_url": {
"type": "string"
},
"signature_text": {
"type": "string"
}
},
"additionalProperties": false
}
Разделить PDF
split_pdf
Разделить PDF
split_pdf Разделяет PDF на части. Результат — ZIP-архив с PDF-файлами. file_url: публичный URL PDF-файла. mode: every-page (по умолчанию) | half | ranges. ranges: диапазоны при mode=ranges, например "1-3,5-7,10".
split_pdf(mode?: string, ranges?: any, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"mode": {
"type": "string",
"default": "every-page"
},
"ranges": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Снять пароль
unlock_pdf
Снять пароль
unlock_pdf Снимает парольную защиту с PDF. file_url: публичный URL защищённого PDF. password: пароль для снятия защиты.
unlock_pdf(file_url: string, password: string)
// inputSchema
{
"type": "object",
"required": [
"file_url",
"password"
],
"properties": {
"file_url": {
"type": "string"
},
"password": {
"type": "string"
}
},
"additionalProperties": false
}
Водяной знак
watermark_pdf
Водяной знак
watermark_pdf Добавляет водяной знак на страницы PDF. file_url: публичный URL PDF-файла. text: текст водяного знака (исключает image_url). image_url: URL PNG-изображения для водяного знака (исключает text). opacity: прозрачность 0.0–1.0 (по умолчанию 0.3). angle: угол поворота текста (по умолчанию 45). position: center | tile | top-left | top-right | bottom-left | bottom-right.
watermark_pdf(text?: any, angle?: number, opacity?: number, file_url: string, position?: string, image_url?: any)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"text": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"angle": {
"type": "number",
"default": 45.0
},
"opacity": {
"type": "number",
"default": 0.3
},
"file_url": {
"type": "string"
},
"position": {
"type": "string",
"default": "center"
},
"image_url": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
],
"default": null
}
},
"additionalProperties": false
}
WEBP в JPG
webp_to_jpg
WEBP в JPG
webp_to_jpg Конвертирует WEBP в JPG. Одна картинка — JPG, несколько — ZIP. file_urls: публичные URL картинок WEBP.
webp_to_jpg(file_urls: array)
// inputSchema
{
"type": "object",
"required": [
"file_urls"
],
"properties": {
"file_urls": {
"type": "array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false
}
Word в JPG
word_to_jpg
Word в JPG
word_to_jpg Конвертирует документ Word (DOC, DOCX, ODT, RTF) в картинки JPG: одна страница — JPG, несколько — ZIP. file_url: публичный URL документа. dpi: 72 | 150 (по умолчанию) | 300.
word_to_jpg(dpi?: integer, file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"dpi": {
"type": "integer",
"default": 150
},
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Word в PDF
word_to_pdf
Word в PDF
word_to_pdf Конвертирует Word-документ (.doc/.docx) в PDF. file_url: публичный URL Word-файла.
word_to_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Excel в PDF
xlsx_to_pdf
Excel в PDF
xlsx_to_pdf Конвертирует таблицу Excel (.xlsx/.xls) в PDF. file_url: публичный URL XLSX-файла.
xlsx_to_pdf(file_url: string)
// inputSchema
{
"type": "object",
"required": [
"file_url"
],
"properties": {
"file_url": {
"type": "string"
}
},
"additionalProperties": false
}
Вопросы, новые серверы, обсуждение MCP
t.me/rusmcp · t.me/RusMcp_bot