nutrient-document-processing — Claude Code skill: document processing
This skill uses the Nutrient DWS API to convert files, OCR scans, extract data, and edit PDFs. Use it when document processing needs to happen through that API.
npx skills add affaan-m/ECC --skill nutrient-document-processing -a claude-codeWhat nutrient-document-processing does
The skill sends documents to the Nutrient DWS Processor API. It covers conversion for PDF, DOCX, XLSX, PPTX, HTML, and images, plus text and table extraction, OCR, redaction, watermarks, digital signatures, and PDF form filling.
It includes curl request examples and an alternative MCP setup with @nutrient-sdk/dws-mcp-server. API requests require NUTRIENT_API_KEY; review the commercial API terms before using it. Install this skill when your project needs document operations through Nutrient. Skip it if that API is not part of your workflow.
What it helps with
- convert a DOCX file to PDF
- extract text and tables from a PDF
- OCR a scan into a searchable PDF
- redact email addresses or card numbers
- fill fields in a PDF form
Example prompts for the agent
- Convert `document.docx` to PDF using the Nutrient DWS API.
- Run OCR on `scanned.pdf` and save it as `searchable.pdf`.
- Redact email addresses in `document.pdf` and save `redacted.pdf`.
How to install nutrient-document-processing
1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill nutrient-document-processing -a claude-code2Manually: put the files in place
~/.claude/skills/nutrient-document-processing/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/nutrient-document-processing/
1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill nutrient-document-processing -a codex2Manually: put the files in place
.agents/skills/nutrient-document-processing/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill nutrient-document-processing -a cursor2Manually: put the files in place
.cursor/skills/nutrient-document-processing/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install affaan-m/ECC nutrient-document-processing2Manually: put the files in place
.github/skills/nutrient-document-processing/SKILL.md1Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill nutrient-document-processing -a gemini-cli2Platform CLI
gemini skills install https://github.com/affaan-m/ECC --path skills/nutrient-document-processingManually: put the files in place
.devin/skills/nutrient-document-processing/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add affaan-m/ECC --skill nutrient-document-processing -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
From the same set146
The whole set →Similar
Questions about nutrient-document-processing
How do I install nutrient-document-processing in Claude Code?
Run npx skills add affaan-m/ECC --skill nutrient-document-processing -a claude-code. The skill also lists Codex, Cursor, GitHub Copilot, Gemini CLI, and OpenCode as platforms.
What does nutrient-document-processing do?
It guides document processing through the Nutrient DWS API, including conversion, OCR, data extraction, PDF redaction, signing, and form filling.
What do I need to use the Nutrient DWS API?
API requests require NUTRIENT_API_KEY. The skill also describes configuring @nutrient-sdk/dws-mcp-server with an API key and SANDBOX_PATH.
Source text
SKILL.md · MIT
--- name: nutrient-document-processing description: Process, convert, OCR, extract, redact, sign, and fill documents using the Nutrient DWS API. Works with PDFs, DOCX, XLSX, PPTX, HTML, and images. Use when converting, OCRing, extracting from, redacting, signing, or filling documents via the Nutrient DWS API. metadata: origin: ECC --- # Nutrient Document Processing > **Note:** This skill integrates with the Nutrient commercial API. Review their terms before use. Process documents with the [Nutrient DWS Processor API](https://www.nutrient.io/api/). Convert formats, extract text and tables, OCR scanned documents, redact PII, add watermarks, digitally sign, and fill PDF forms. ## Setup Get a free API key at **[nutrient.io](https://dashboard.nutrient.io/sign_up/?product=processor)** ```bash export NUTRIENT_API_KEY="pdf_live_..." ``` All requests go to `https://api.nutrient.io/build` as multipart POST with an `instructions` JSON field. ## Operations ### Convert Documents ```bash # DOCX to PDF curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.docx"}]}' \ -o output.pdf # PDF to DOCX curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"output":{"type":"docx"}}' \ -o output.docx # HTML to PDF curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"html":"index.html"}]}' \ -o output.pdf ``` Supported inputs: PDF, DOCX, XLSX, PPTX, DOC, XLS, PPT, PPS, PPSX, ODT, RTF, HTML, JPG, PNG, TIFF, HEIC, GIF, WebP, SVG, TGA, EPS. ### Extract Text and Data ```bash # Extract plain text curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"output":{"type":"text"}}' \ -o output.txt # Extract tables as Excel curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"output":{"type":"xlsx"}}' \ -o tables.xlsx ``` ### OCR Scanned Documents ```bash # OCR to searchable PDF (supports 100+ languages) curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"scanned.pdf"}],"actions":[{"type":"ocr","language":"english"}]}' \ -o searchable.pdf ``` Languages: Supports 100+ languages via ISO 639-2 codes (e.g., `eng`, `deu`, `fra`, `spa`, `jpn`, `kor`, `chi_sim`, `chi_tra`, `ara`, `hin`, `rus`). Full language names like `english` or `german` also work. See the [complete OCR language table](https://www.nutrient.io/guides/document-engine/ocr/language-support/) for all supported codes. ### Redact Sensitive Information ```bash # Pattern-based (SSN, email) curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"redaction","strategy":"preset","strategyOptions":{"preset":"social-security-number"}},{"type":"redaction","strategy":"preset","strategyOptions":{"preset":"email-address"}}]}' \ -o redacted.pdf # Regex-based curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"redaction","strategy":"regex","strategyOptions":{"regex":"\\b[A-Z]{2}\\d{6}\\b"}}]}' \ -o redacted.pdf ``` Presets: `social-security-number`, `email-address`, `credit-card-number`, `international-phone-number`, `north-american-phone-number`, `date`, `time`, `url`, `ipv4`, `ipv6`, `mac-address`, `us-zip-code`, `vin`. ### Add Watermarks ```bash curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"watermark","text":"CONFIDENTIAL","fontSize":72,"opacity":0.3,"rotation":-45}]}' \ -o watermarked.pdf ``` ### Digital Signatures ```bash # Self-signed CMS signature curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"sign","signatureType":"cms"}]}' \ -o signed.pdf ``` ### Fill PDF Forms ```bash curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENT_API_KEY" \ -F "[email protected]" \ -F 'instructions={"parts":[{"file":"form.pdf"}],"actions":[{"type":"fillForm","formFields":{"name":"Jane Smith","email":"[email protected]","date":"2026-02-06"}}]}' \ -o filled.pdf ``` ## MCP Server (Alternative) For native tool integration, use the MCP server instead of curl: ```json { "mcpServers": { "nutrient-dws": { "command": "npx", "args": ["-y", "@nutrient-sdk/dws-mcp-server"], "env": { "NUTRIENT_DWS_API_KEY": "YOUR_API_KEY", "SANDBOX_PATH": "/path/to/working/directory" } } } } ``` ## When to Use - Converting documents between formats (PDF, DOCX, XLSX, PPTX, HTML, images) - Extracting text, tables, or key-value pairs from PDFs - OCR on scanned documents or images - Redacting PII before sharing documents - Adding watermarks to drafts or confidential documents - Digitally signing contracts or agreements - Filling PDF forms programmatically ## Links - [API Playground](https://dashboard.nutrient.io/processor-api/playground/) - [Full API Docs](https://www.nutrient.io/guides/dws-processor/) - [npm MCP Server](https://www.npmjs.com/package/@nutrient-sdk/dws-mcp-server)
© affaan-m · MIT · affaan-m/ECC