Source profileQuality 71/100Review permissions

affaan-m/ECC/docs/zh-CN/skills/nutrient-document-processing/SKILL.md

nutrient-document-processing

Use it for engineering tasks; the detail page covers purpose, installation, and practical steps.

Source repository stars
234,327
Declared platforms
0
Static risk flags
2
Last source update
2026-07-27
Source checked
2026-07-28

Decision brief

What it does—and where it fits

使用 Nutrient DWS Processor API 处理文档。转换格式、提取文本和表格、对扫描文档进行 OCR、编辑 PII、添加水印、数字签名以及填写 PDF 表单。

Best for

    Not for

    • Tasks that require unconfirmed production actions or broad system permissions.
    • Environments where the pinned source and install steps cannot be inspected.

    Compatibility matrix

    Platform support, with evidence labels

    PlatformStatusEvidenceWhat to check
    CodexNot declaredNo explicit evidencePortability before use
    Claude CodeNot declaredNo explicit evidencePortability before use
    CursorNot declaredNo explicit evidencePortability before use
    Gemini CLINot declaredNo explicit evidencePortability before use
    Open the compatibility checker

    Installation

    Inspect first. Install second.

    The source command is displayed only when detected. A safe inspection prompt is always available so your agent can explain every action before execution.

    Source-detected install commandSource
    npx skills add https://github.com/affaan-m/ECC --skill "docs/zh-CN/skills/nutrient-document-processing"
    Safe inspection promptEditorial

    Inspect the Agent Skill "nutrient-document-processing" from https://github.com/affaan-m/ECC/blob/4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38/docs/zh-CN/skills/nutrient-document-processing/SKILL.md at commit 4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38. List every install step, command, network request, credential, file read/write, external action, and rollback step. Explain whether it fits my task. Do not install or execute anything until I approve.

    Workflow

    What the source asks the agent to do

    1. 01

      设置

      在 nutrient.io 获取一个免费的 API 密钥

      在 nutrient.io 获取一个免费的 API 密钥所有请求都以 multipart POST 形式发送到 https://api.nutrient.io/build,并附带一个 instructions JSON 字段。
    2. 02

      操作

      Review the “操作” section in the pinned source before continuing.

      Review and apply the “操作” source section.
    3. 03

      转换文档

      Review the “转换文档” section in the pinned source before continuing.

      Review and apply the “转换文档” source section.
    4. 04

      DOCX to PDF

      curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENTAPIKEY" \ -F "document.docx=@document.docx" \ -F 'instructions={"parts":[{"file":"document.docx"}]}' \ -o output.pdf

      curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENTAPIKEY" \ -F "document.docx=@document.docx" \ -F 'instructions={"parts":[{"file":"document.docx"}]}' \ -o output.pdf
    5. 05

      PDF to DOCX

      curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENTAPIKEY" \ -F "document.pdf=@document.pdf" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"output":{"type":"docx"}}' \ -o output.docx

      curl -X POST https://api.nutrient.io/build \ -H "Authorization: Bearer $NUTRIENTAPIKEY" \ -F "document.pdf=@document.pdf" \ -F 'instructions={"parts":[{"file":"document.pdf"}],"output":{"type":"docx"}}' \ -o output.docx

    Permission review

    Static risk signals and limitations

    Sends data out

    high · line 21

    The documentation includes sending, uploading, or posting data to a remote service.

    curl -X POST https://api.nutrient.io/build \

    Network access

    medium · line 21

    The documentation includes network, browsing, or remote request actions.

    curl -X POST https://api.nutrient.io/build \

    Sends data out

    high · line 28

    The documentation includes sending, uploading, or posting data to a remote service.

    curl -X POST https://api.nutrient.io/build \

    Network access

    medium · line 28

    The documentation includes network, browsing, or remote request actions.

    curl -X POST https://api.nutrient.io/build \

    Evidence record

    Why each signal appears

    EvidenceSourceComputedTestedEditorial
    SignalValueEvidence typeMeaning
    Quality score71/100ComputedDocumentation, specificity, maintenance, and trust rules
    Repository stars234,327SourceRepository attention, not individual Skill quality
    Compatibility0 platformsSourceDeclared in the catalog source record
    Usage guideautomated source guideEditorialGenerated or reviewed according to the visible evidence level

    Pinned source

    Provenance and original SKILL.md

    Repository
    affaan-m/ECC
    Skill path
    docs/zh-CN/skills/nutrient-document-processing/SKILL.md
    Commit
    4e973d3eaf92d97f8d2e2d8abb39d8bdc8711b38
    License
    MIT
    Collected
    2026-07-28
    Default branch
    main
    View the original SKILL.md

    文档处理

    使用 Nutrient DWS Processor API 处理文档。转换格式、提取文本和表格、对扫描文档进行 OCR、编辑 PII、添加水印、数字签名以及填写 PDF 表单。

    设置

    nutrient.io 获取一个免费的 API 密钥

    export NUTRIENT_API_KEY="pdf_live_..."
    

    所有请求都以 multipart POST 形式发送到 https://api.nutrient.io/build,并附带一个 instructions JSON 字段。

    操作

    转换文档

    # DOCX to PDF
    curl -X POST https://api.nutrient.io/build \
      -H "Authorization: Bearer $NUTRIENT_API_KEY" \
      -F "document.docx=@document.docx" \
      -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 "document.pdf=@document.pdf" \
      -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 "index.html=@index.html" \
      -F 'instructions={"parts":[{"html":"index.html"}]}' \
      -o output.pdf
    

    支持的输入格式: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 "document.pdf=@document.pdf" \
      -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 "document.pdf=@document.pdf" \
      -F 'instructions={"parts":[{"file":"document.pdf"}],"output":{"type":"xlsx"}}' \
      -o tables.xlsx
    

    OCR 扫描文档

    # OCR to searchable PDF (supports 100+ languages)
    curl -X POST https://api.nutrient.io/build \
      -H "Authorization: Bearer $NUTRIENT_API_KEY" \
      -F "scanned.pdf=@scanned.pdf" \
      -F 'instructions={"parts":[{"file":"scanned.pdf"}],"actions":[{"type":"ocr","language":"english"}]}' \
      -o searchable.pdf
    

    支持语言:通过 ISO 639-2 代码支持 100 多种语言(例如,eng, deu, fra, spa, jpn, kor, chi_sim, chi_tra, ara, hin, rus)。完整的语言名称如 englishgerman 也适用。查看 完整的 OCR 语言表 以获取所有支持的代码。

    编辑敏感信息

    # Pattern-based (SSN, email)
    curl -X POST https://api.nutrient.io/build \
      -H "Authorization: Bearer $NUTRIENT_API_KEY" \
      -F "document.pdf=@document.pdf" \
      -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 "document.pdf=@document.pdf" \
      -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"redaction","strategy":"regex","strategyOptions":{"regex":"\\b[A-Z]{2}\\d{6}\\b"}}]}' \
      -o redacted.pdf
    

    预设: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 "document.pdf=@document.pdf" \
      -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"watermark","text":"CONFIDENTIAL","fontSize":72,"opacity":0.3,"rotation":-45}]}' \
      -o watermarked.pdf
    

    数字签名

    # Self-signed CMS signature
    curl -X POST https://api.nutrient.io/build \
      -H "Authorization: Bearer $NUTRIENT_API_KEY" \
      -F "document.pdf=@document.pdf" \
      -F 'instructions={"parts":[{"file":"document.pdf"}],"actions":[{"type":"sign","signatureType":"cms"}]}' \
      -o signed.pdf
    

    填写 PDF 表单

    curl -X POST https://api.nutrient.io/build \
      -H "Authorization: Bearer $NUTRIENT_API_KEY" \
      -F "form.pdf=@form.pdf" \
      -F 'instructions={"parts":[{"file":"form.pdf"}],"actions":[{"type":"fillForm","formFields":{"name":"Jane Smith","email":"jane@example.com","date":"2026-02-06"}}]}' \
      -o filled.pdf
    

    MCP 服务器(替代方案)

    对于原生工具集成,请使用 MCP 服务器代替 curl:

    {
      "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"
          }
        }
      }
    }
    

    使用场景

    • 在格式之间转换文档(PDF, DOCX, XLSX, PPTX, HTML, 图像)
    • 从 PDF 中提取文本、表格或键值对
    • 对扫描文档或图像进行 OCR
    • 在共享文档前编辑 PII
    • 为草稿或机密文档添加水印
    • 数字签署合同或协议
    • 以编程方式填写 PDF 表单

    链接

    Alternatives

    Compare before choosing