/nutrient-dws:document-processor-apifrom nutrient-dws
Process documents with Nutrient DWS: generate PDFs from HTML/URLs, convert Office/images/PDFs, merge/split, OCR, extract text/tables/key-value pairs, redact PII, watermark, sign, fill forms, optimize, and produce PDF/A or PDF/UA compliance outputs.
Ships in nutrient-dws. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
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.
Authorization: Bearer $NUTRIENT_API_KEY.
export NUTRIENT_API_KEY="nutr_sk_..."
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
start:end with 0-based indexes and end-exclusive semantics. Negative indexes count from the end.scripts/*.py for covered single-operation workflows.assets/templates/custom-workflow-template.py for multi-step jobs that should still run through the Python client.references/ docs and direct API payloads for capabilities that do not yet have a dedicated helper script, especially HTML/URL generation and compliance tuning.convert.py -> convert between pdf, pdfa, pdfua, docx, xlsx, pptx, png, jpeg, webp, html, and markdownmerge.py -> merge multiple files into one PDFsplit.py -> split one PDF into multiple PDFs by page rangesadd-pages.py -> append blank pagesdelete-pages.py -> remove specific pagesduplicate-pages.py -> reorder or duplicate pages into a new PDFrotate.py -> rotate selected pagesocr.py -> OCR scanned PDFs or imagesextract-text.py -> extract text to JSONextract-table.py -> extract tablesextract-key-value-pairs.py -> extract key-value pairswatermark-text.py -> apply a text watermarkredact-ai.py -> detect and apply AI-powered redactionssign.py -> digitally sign a local PDFpassword-protect.py -> write encrypted output PDFsoptimize.py -> apply optimization and linearization-style options via JSONDo not add new committed pipeline scripts under scripts/.
When the user asks for multiple operations in one run:
assets/templates/custom-workflow-template.py to a temporary location such as /tmp/ndp-workflow-<task>.py.uv run /tmp/ndp-workflow-<task>.py ....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.file.url inputs when the source already lives at a stable URL and you want to avoid local uploads.output.type for conversion and finalization targets. Use actions for transformations when building direct API payloads.scripts/.Read only what you need:
references/request-basics.md -> endpoint model, auth, multipart vs JSON, credits, limits, and errorsreferences/generation-and-conversion.md -> HTML/URL generation and format conversionreferences/pdf-manipulation.md -> merge, split, page-range, rotate, and flatten workflowsreferences/extraction-and-ocr.md -> OCR, text extraction, tables, and key-value workflowsreferences/security-signing-and-forms.md -> redaction, watermarking, signatures, forms, and passwordsreferences/compliance-and-optimization.md -> PDF/A, PDF/UA, optimization, and linearizationreferences/workflow-recipes.md -> end-to-end sequencing patterns for common business document workflowsFail fast when required arguments are missing.
Write outputs to explicit paths and print created files.
Do not log secrets.
All client methods are async and should run via asyncio.run(main()).
If import fails, install dependency with uv add nutrient-dws.
Supply NUTRIENT_API_KEY through the runtime environment or a secrets manager. Keep API keys out of committed configuration.
agents/openai.yaml (opens in a new tab)assets/nutrient.svg (opens in a new tab)assets/templates/custom-workflow-template.py (opens in a new tab)references/REFERENCE.md (opens in a new tab)references/compliance-and-optimization.md (opens in a new tab)references/extraction-and-ocr.md (opens in a new tab)references/generation-and-conversion.md (opens in a new tab)references/pdf-manipulation.md (opens in a new tab)references/request-basics.md (opens in a new tab)references/security-signing-and-forms.md (opens in a new tab)references/workflow-recipes.md (opens in a new tab)scripts/add-pages.py (opens in a new tab)scripts/convert.py (opens in a new tab)scripts/delete-pages.py (opens in a new tab)scripts/duplicate-pages.py (opens in a new tab)scripts/extract-key-value-pairs.py (opens in a new tab)scripts/extract-table.py (opens in a new tab)scripts/extract-text.py (opens in a new tab)scripts/lib/common.py (opens in a new tab)scripts/merge.py (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub pspdfkit-labs/nutrient-skills --plugin nutrient-dws6 skills in this plugin
/ai-gatewayTwo primitives of the Nutrient AI Gateway. Chat models (`nutrient-s`/`nutrient-m`/`nutrient-l` via `POST /responses` or `POST /chat/completions`) are OpenAI-compatible, for open-ended generation. The decision API (`POST /systemone`, TypeSafe-compatible) returns calibrated probabilities instead of free text, for routing, flagging, and scoring — `noul` for yes/no, `choice` for picking one of several labels, `score` for placing content on an ordered scale. Route to the decision API whenever the task is "classify this", "is this true/false", "route to a category", "flag for review", "rate the severity/quality", or anything else that would otherwise need regex, keyword matching, or asking a chat model to emit structured JSON. Route to a chat model for open-ended generation, summarization, or tool-calling. Triggers include AI Gateway, nutrient-document-decision, nutrient-systemone, System One, TypeSafe, calibrated probability, noul question, choice question, score question, classify this document/message, route to a category, flag for review, confidence threshold./document-extraction-apiUse the Nutrient Data Extraction API to parse whole documents into Markdown or spatial elements, extract named fields such as invoice totals with source citations, classify documents against labels, or detect document boundaries in a merged packet./dws-viewer-apiUpload documents to Nutrient-managed cloud storage and mint browser viewer session JWTs via the Nutrient DWS Viewer API (cloud-hosted document viewing). Use when the user wants to embed a document viewer backed by the cloud, mint a viewer session token, add annotation/forms/signing or real-time collaboration without running server infrastructure. Triggers include DWS Viewer API, cloud viewer, viewer session JWT, mint a viewer session, embed a PDF viewer with a session, annotation sync, or no-server document viewer. Not for the self-hosted Web SDK (`@nutrient-sdk/viewer` / `NutrientViewer.load` without a DWS session) — that is `nutrient-web-sdk`; not for self-hosted annotation persistence — that is `nutrient-document-engine`./grounded-rag-ingestionChunk a document into provenance-carrying JSONL ready for embedding via the Nutrient Data Extraction API (`/extraction/parse`, spatial output). Every chunk carries element type, page index, bounding box, confidence, and reading order, traceable to a specific page region. Use for grounded or auditable RAG, cited retrieval, confidence-aware ingestion, or any pipeline that must prove which document region a retrieved answer came from. Triggers include grounded RAG, auditable RAG, RAG with provenance, chunk with bounding box, cite page, provenance-carrying chunks, confidence-aware chunking, or embedding pipeline. Not for cheap Markdown — use document-extraction-api with `--output-format markdown` for that. Not for known target fields — if the user wants specific fields ("invoice number and total", "map to my schema", "return these fields cited"), use document-extraction-api's `extract` (one cited call), not whole-document chunking./signer-apiIntroduces the Nutrient DWS Signer API, which sends documents for legally binding eSignatures and tracks every envelope. The API is not public yet: it is available only on the Enterprise plan. Use when the user asks about Nutrient Signer, sending a PDF for signature, or eSignature envelopes.Other plugins' skills for the same job