Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

document-processor-api

БесплатноЗапускает вложенные скриптыНе проверен

Process documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble documents or split PDFs…

PSPDFKit-labsот PSPDFKit-labs★ 18 звёзд на GitHub

Об этом скилле

Nutrient Document Processing

Use Nutrient DWS for managed document workflows where fidelity, compliance, or multi-step processing matters more than local-tool convenience. For schema-defined fields with citations or whole-document Markdown, use the sibling document-extraction-api skill.

Setup

  • Get a Nutrient DWS API key at https://dashboard.nutrient.io/sign_up/?product=processor.
  • Direct API calls use Authorization: Bearer $NUTRIENT_API_KEY.
    export NUTRIENT_API_KEY="nutr_sk_..."
    
  • For work through an MCP client, use the hosted Nutrient plugin and sign in with your Nutrient account.
  • Scripts live in scripts/ relative to this SKILL.md. Use the directory containing this SKILL.md as the working directory:
    cd <directory containing this SKILL.md> && uv run scripts/<script>.py --help
    
  • Page ranges use start:end with 0-based indexes and end-exclusive semantics. Negative indexes count from the end.

When to use

  • Generate PDFs from HTML templates, uploaded assets, or remote URLs.
  • Convert Office, HTML, image, and PDF files between supported formats.
  • OCR scans and extract text, tables, or key-value pairs.
  • Redact PII, watermark, sign, fill forms, merge, split at known page ranges, rotate, flatten, or encrypt PDFs.
  • To detect where documents start and end in a combined packet, use the Data Extraction split endpoint.
  • Produce delivery targets like PDF/A, PDF/UA, optimized PDFs, or linearized PDFs.
  • Check credits before large, batch, or AI-heavy runs.

Tool preference

  1. Prefer scripts/*.py for covered single-operation workflows.
  2. Use assets/templates/custom-workflow-template.py for multi-step jobs that should still run through the Python client.
  3. Use the modular references/ docs and direct API payloads for capabilities that do not yet have a dedicated helper script, especially HTML/URL generation and compliance tuning.
  4. Use local PDF utilities only for lightweight inspection. Use Nutrient when output fidelity or compliance matters.

Single-operation scripts

  • convert.py -> convert between pdf, pdfa, pdfua, docx, xlsx, pptx, png, jpeg, webp, html, and markdown
  • merge.py -> merge multiple files into one PDF
  • split.py -> split one PDF into multiple PDFs by page ranges
  • add-pages.py -> append blank pages
  • delete-pages.py -> remove specific pages
  • duplicate-pages.py -> reorder or duplicate pages into a new PDF
  • rotate.py -> rotate selected pages
  • ocr.py -> OCR scanned PDFs or images
  • extract-text.py -> extract text to JSON
  • extract-table.py -> extract tables
  • extract-key-value-pairs.py -> extract key-value pairs
  • watermark-text.py -> apply a text watermark
  • redact-ai.py -> detect and apply AI-powered redactions
  • sign.py -> digitally sign a local PDF
  • password-protect.py -> write encrypted output PDFs
  • optimize.py -> apply optimization and linearization-style options via JSON

Multi-Step Workflow Rule

Do not add new committed pipeline scripts under scripts/.

When the user asks for multiple operations in one run:

  1. Copy assets/templates/custom-workflow-template.py to a temporary location such as /tmp/ndp-workflow-<task>.py.
  2. Implement the combined workflow in that temporary script.
  3. Run it with uv run /tmp/ndp-workflow-<task>.py ....
  4. Return generated output files.
  5. Delete the temporary script unless the user explicitly asks to keep it.

PDF Requirements

  • split.py requires a multi-page PDF and cannot extract ranges from a single-page document.
  • delete-pages.py must retain at least one page and cannot delete the entire document.
  • sign.py only accepts local file paths for the main PDF.

Decision rules

  • Prefer a helper script when one already covers the requested operation cleanly.
  • If you control the source markup, prefer HTML generation over browser print workflows.
  • Use remote file.url inputs when the source already lives at a stable URL and you want to avoid local uploads.
  • Use output.type for conversion and finalization targets. Use actions for transformations when building direct API payloads.
  • OCR before text extraction, key-value extraction, or semantic redaction on scans.
  • Prefer preset or regex redaction when the target is explicit. Use AI redaction only for contextual or natural-language requests.
  • Use the PDF manipulation reference for merge, split, rotate, flatten, and page-range workflows instead of inferring those payloads from conversion examples.
  • Treat PDF/A and PDF/UA as compliance targets, not cosmetic export formats. Choose the target up front and validate final artifacts when requirements are contractual.
  • For PDF/UA, clean born-digital inputs and structured HTML usually tag better than rasterized or flattened source PDFs.
  • For delivery optimization, linearize or optimize unsigned output artif
Полный SKILL.md на GitHub

Установить document-processor-api в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

.gitignoreagents/openai.yamlassets/nutrient.svgassets/templates/custom-workflow-template.pyreferences/REFERENCE.mdreferences/compliance-and-optimization.mdreferences/extraction-and-ocr.mdreferences/generation-and-conversion.mdreferences/pdf-manipulation.mdreferences/request-basics.mdreferences/security-signing-and-forms.mdreferences/workflow-recipes.mdscripts/add-pages.pyscripts/convert.pyscripts/delete-pages.pyscripts/duplicate-pages.pyscripts/extract-key-value-pairs.pyscripts/extract-table.pyscripts/extract-text.pyscripts/lib/common.pyscripts/merge.pyscripts/ocr.pyscripts/optimize.pyscripts/password-protect.pyscripts/redact-ai.pyscripts/rotate.pyscripts/sign.pyscripts/split.pyscripts/watermark-text.py

FAQ

Что делает скилл document-processor-api?

Process documents with Nutrient DWS. Use when the user wants to generate PDFs from HTML or URLs, convert Office/images/PDFs, assemble documents or split PDFs at known page ranges, OCR scans, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize PDFs, or produce compliance outputs like PDF/A or PDF/UA. Triggers include convert to PDF, merge these PDFs, OCR this scan, extract tables, redact PII, sign this PDF, make this PDF/A, or linearize for web delivery. For accessibility or PDF/UA-1 validation of an existing PDF, use remediate-pdf.

Как установить скилл document-processor-api?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл document-processor-api запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить document-processor-api с