调用 Nutrient DWS API 处理文档转换、OCR提取、脱敏签署与表单填写
复制安装指令,让 AI 自动完成配置 · 推荐新手
请帮我安装 askskill 上的 "nutrient-document-processing" 技能: 1. 下载 https://raw.githubusercontent.com/affaan-m/ECC/main/skills/nutrient-document-processing/SKILL.md 2. 保存为 ~/.claude/skills/nutrient-document-processing/SKILL.md 3. 装好后重载技能,告诉我可以用了
请使用 Nutrient DWS API 对这个发票文件夹执行 OCR,提取每份发票的编号、日期、供应商名称、税额和总金额,并输出为结构化 JSON。
返回每份发票的结构化字段数据,可用于报销或入账。
请用 Nutrient DWS API 扫描这份 DOCX 合同,识别并遮盖身份证号、手机号、邮箱和银行账户信息,然后导出为脱敏后的 PDF。
生成可安全共享的脱敏 PDF 合同版本。
请使用 Nutrient DWS API 将客户资料填入这份 PDF 表单的姓名、地址、公司和日期字段,并在签名位置添加电子签名,输出最终文件。
返回已填写并签署完成的最终 PDF 文档。
Note: This skill integrates with the Nutrient commercial API. Review their terms before use.
Process documents with the Nutrient DWS Processor API. Convert formats, extract text and tables, OCR scanned documents, redact PII, add watermarks, digitally sign, and fill PDF forms.
Get a free API key at nutrient.io
export NUTRIENT_API_KEY="pdf_live_..."
All requests go to https://api.nutrient.io/build as multipart POST with an instructions JSON field.
# 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 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 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 for all supported codes.
# 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.
curl -X POST https://api.nutrient.io/build \
-H "Authorization: Bearer $NUTRIENT_API_KEY" \
-F "[email protected]" \
…
帮助用户编写、配置与优化 Hookify 规则及语法模式。
用于核查营收、定价、退款与团队计费真相,快速给出证据化结论。
为 KMP 项目提供 Compose 多平台界面架构、导航、主题与性能实践。
帮助团队为医疗应用设计符合PHI/PII要求的数据安全与合规方案
通过逐步细化检索上下文,提升子代理任务理解与结果质量。
帮助你设计与优化 Spring Boot 后端架构、接口与服务实现。
通过 Markdown 中转统一读写编辑 Office 与 PDF 文档,并保留原有格式。
帮助用户读取并分析 PDF 文档,进行自然语言问答与信息提取。
帮助用户在 Markdown、HTML、DOCX、PDF 与纯文本间高效互转文档格式。
从 PDF 与网页提取可验证信息,支持问答、检索、翻译与证据存证。
将实验仪器输出文件标准化转换为 Allotrope ASM JSON 或二维 CSV,便于接入 LIMS 与分析流程。
可从 PDF 或图片中提取菜谱,并转换为结构化 HTML 便于整理复用。