diff --git a/skills/nutrient-document-processor-api/SKILL.md b/skills/nutrient-document-processor-api/SKILL.md new file mode 100644 index 0000000..b5f5910 --- /dev/null +++ b/skills/nutrient-document-processor-api/SKILL.md @@ -0,0 +1,63 @@ +--- +name: nutrient-document-processor-api +description: Execute common document-processing tasks with @nutrient-sdk/dws-client-typescript in Node.js scripts. Use when the user asks to convert, merge, split, OCR, extract text/tables/key-value pairs, watermark, redact, sign, optimize, protect, or reorder Document content, or when they need a custom multi-step document pipeline script built from Nutrient DWS workflow actions. +--- + +# Nutrient Document Processor API + +## Quick Start + +1. Ensure Node.js 18+ is available. +2. Install the latest client package in the target project: + - `node skills/nutrient-document-processor-api/scripts/setup-latest-client.mjs npm` +3. Export the API key before running scripts: + - `export NUTRIENT_API_KEY="nutr_sk_..."` +4. Run task scripts with `node` from the repository root. + +## Task Scripts + +Use one script per operation. + +- Convert formats: `scripts/convert.mjs` +- Merge files: `scripts/merge.mjs` +- Split by ranges: `scripts/split.mjs` +- OCR documents: `scripts/ocr.mjs` +- Extract text: `scripts/extract-text.mjs` +- Extract tables: `scripts/extract-table.mjs` +- Extract key-value pairs: `scripts/extract-key-value-pairs.mjs` +- Add text watermark: `scripts/watermark-text.mjs` +- AI redaction: `scripts/redact-ai.mjs` +- Rotate pages: `scripts/rotate.mjs` +- Sign PDF: `scripts/sign.mjs` +- Optimize PDF: `scripts/optimize.mjs` +- Password protect PDF: `scripts/password-protect.mjs` +- Add blank pages: `scripts/add-pages.mjs` +- Delete pages: `scripts/delete-pages.mjs` +- Duplicate/reorder pages: `scripts/duplicate-pages.mjs` + +Check exact arguments with `node