跳到正文
cccskills
免费在 GitHub 公开

nutrient-document-processing

Nutrient DWS APIを使用したドキュメントの処理、変換、OCR、抽出、墨消し、署名、フォーム入力。PDF、DOCX、XLSX、PPTX、HTML、画像に対応。

中文简介正在准备中。当前显示原文说明。

集成工具ExcelWord
查看安装方法

包含的文件(1)

  • SKILL.md6.3 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Nutrientドキュメント処理

注意: このスキルはNutrientの商用APIと統合する。使用前に利用規約を確認すること。

Nutrient DWS Processor APIでドキュメントを処理する。フォーマット変換、テキストとテーブルの抽出、スキャンドキュメントのOCR、PIIの墨消し、透かしの追加、デジタル署名、PDFフォームへの入力が可能。

セットアップ

nutrient.io で無料APIキーを取得する。

export NUTRIENT_API_KEY="pdf_live_..."

すべてのリクエストは https://api.nutrient.io/build にマルチパートPOSTとして送信し、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コード(例: eng, deu, fra, spa, jpn, kor, chi_sim, chi_tra, ara, hin, rus)で100以上の言語をサポート。english や german のようなフル言語名も使用可能。サポートされているすべてのコードについては完全な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サーバー(代替手段)

ネイティブツール統合には、curlの代わりにMCPサーバーを使用する:

{
  "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フォームのプログラマティックな入力

リンク

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

コーディングエージェント(Claude Code、Aider、Codexなど)のカスタムタスクによる直接比較。合格率、コスト、時間、一貫性メトリクスを測定

中文简介正在准备中。当前显示原文说明。

hage-oyaji/everything-claude-code-jp-local32026年3月29日 更新

AIエージェントのアクションスペース、ツール定義、オブザベーションフォーマットを設計・最適化し、タスク完了率を向上させる

中文简介正在准备中。当前显示原文说明。

hage-oyaji/everything-claude-code-jp-local32026年3月29日 更新

評価ファーストの実行、分解、コスト考慮型モデルルーティングによるエージェンティックエンジニアとしての運用

中文简介正在准备中。当前显示原文说明。

hage-oyaji/everything-claude-code-jp-local32026年3月29日 更新

AIエージェントが実装出力の大部分を生成するチームのためのエンジニアリング運用モデル

中文简介正在准备中。当前显示原文说明。

hage-oyaji/everything-claude-code-jp-local32026年3月29日 更新

AI支援開発のためのリグレッションテスト戦略。データベース依存なしのサンドボックスモードAPIテスト、自動バグチェックワークフロー、同一モデルがコードの作成とレビューを行う際のAIの盲点を検出するパターン。

中文简介正在准备中。当前显示原文说明。

hage-oyaji/everything-claude-code-jp-local32026年3月29日 更新

AndroidおよびKotlin Multiplatformプロジェクトのためのクリーンアーキテクチャパターン — モジュール構成、依存関係ルール、UseCase、Repository、データレイヤーパターン

中文简介正在准备中。当前显示原文说明。

hage-oyaji/everything-claude-code-jp-local32026年3月29日 更新

查看 hage-oyaji 的全部技能

报告此技能的问题