← 返回 Skills 市场
camscanner-ai

CamScanner-Image2Office

作者 CamScanner-AI · GitHub ↗ · v1.0.1 · MIT-0
cross-platform ✓ 安全检测通过
88
总下载
0
收藏
0
当前安装
2
版本数
在 OpenClaw 中安装
/install camscanner-image2office-office
功能描述
Use CamScanner to convert PDF documents to editable Word (.docx) or Excel (.xlsx) format, with intelligent content recognition and accurate format preservati...
使用说明 (SKILL.md)

CamScanner PDF to Office

Overview

CamScanner provides document conversion capabilities that convert PDF documents to Word or Excel documents while preserving original formatting. The workflow is a 3-step pipeline: upload the PDF, convert it, then download the result.

When to Use

  • User wants to convert a PDF to Word (.docx) or Excel (.xlsx)
  • User wants to make a PDF editable
  • User has a PDF and needs it as an Office document

Privacy & Data

Important: Privacy & Data Flow Notice

  • Third-party service: This skill sends your files to CamScanner's official servers (ai-tools.camscanner.com) for processing.
  • Data retention: CamScanner servers process your files in real-time. Files are not permanently stored on the server.
  • Local files: Output files are saved to your local filesystem at the path you specify.

API Reference

Base URL: https://ai-tools.camscanner.com

Supported Conversions

source_type target_type Output
pdf word .docx
pdf excel .xlsx

Step 1: Upload PDF

BASE="https://ai-tools.camscanner.com"

IN_FILE_ID=$(curl -sS -X POST "$BASE/v1/tools/upload_file/execute" \
  -H "Content-Type: application/octet-stream" \
  --data-binary "@/path/to/document.pdf" | jq -r '.tool_result.data.file_id')

Response:

{
  "code": 200,
  "tool": "upload_file",
  "tool_result": {
    "success": true,
    "data": {
      "file_id": "file_1741857600_ab12cd34ef56",
      "size": 24576
    }
  }
}

Step 2: Convert PDF

OUT_FILE_ID=$(curl -sS -X POST "$BASE/v1/tools/convert_pdf/execute" \
  -H "Content-Type: application/json" \
  -d "{\"file_id\":\"$IN_FILE_ID\",\"source_type\":\"pdf\",\"target_type\":\"TARGET\",\"output_mode\":\"file_id\"}" \
  | jq -r '.tool_result.data.file_id')

Replace TARGET with one of: word, excel.

Response:

{
  "code": 200,
  "tool": "convert_pdf",
  "tool_result": {
    "success": true,
    "data": {
      "file_id": "file_1741857722_ddeeff001122",
      "target_type": "word"
    }
  }
}

Step 3: Download Result

curl -sS -X POST "$BASE/v1/tools/download_file/execute?response_mode=raw" \
  -H "Content-Type: application/json" \
  -d "{\"file_id\":\"$OUT_FILE_ID\"}" \
  -o /path/to/output.docx

Critical: The response_mode=raw query parameter is required to get the binary file. Without it, the response is JSON.

Quick Reference: Complete Pipeline

BASE="https://ai-tools.camscanner.com"
INPUT_PDF="/path/to/document.pdf"
TARGET_TYPE="word"          # word | excel
OUTPUT_FILE="/path/to/output.docx"

# Upload
IN_FILE_ID=$(curl -sS -X POST "$BASE/v1/tools/upload_file/execute" \
  -H "Content-Type: application/octet-stream" \
  --data-binary "@$INPUT_PDF" | jq -r '.tool_result.data.file_id')

# Convert
OUT_FILE_ID=$(curl -sS -X POST "$BASE/v1/tools/convert_pdf/execute" \
  -H "Content-Type: application/json" \
  -d "{\"file_id\":\"$IN_FILE_ID\",\"source_type\":\"pdf\",\"target_type\":\"$TARGET_TYPE\",\"output_mode\":\"file_id\"}" \
  | jq -r '.tool_result.data.file_id')

# Download
curl -sS -X POST "$BASE/v1/tools/download_file/execute?response_mode=raw" \
  -H "Content-Type: application/json" \
  -d "{\"file_id\":\"$OUT_FILE_ID\"}" \
  -o "$OUTPUT_FILE"

File Extension Mapping

target_type Extension
word .docx
excel .xlsx

Common Mistakes

Mistake Fix
Forgetting response_mode=raw on download Always append ?response_mode=raw to the download URL
Wrong Content-Type on upload Upload uses application/octet-stream, not multipart/form-data
Using GET instead of POST All three endpoints use POST
Missing source_type in convert request Always include "source_type": "pdf"
Missing output_mode in convert request Always include "output_mode": "file_id" to get a downloadable file_id
Wrong output extension Match extension to target_type (see table above)

Error Handling

Check each step before proceeding:

# After upload
if [ -z "$IN_FILE_ID" ] || [ "$IN_FILE_ID" = "null" ]; then
  echo "Upload failed"; exit 1
fi

# After convert
if [ -z "$OUT_FILE_ID" ] || [ "$OUT_FILE_ID" = "null" ]; then
  echo "Conversion failed"; exit 1
fi
安全使用建议
This skill appears to do exactly what it says: upload a PDF to CamScanner's API, convert it, and download an Office file. Before installing or using it: (1) Be aware your documents are sent to a third-party server (ai-tools.camscanner.com) — avoid sending sensitive or confidential files unless you trust their policy. (2) Verify the service and domain (e.g., check TLS cert and CamScanner's official docs) if you need assurance this is an official endpoint. (3) Test with non-sensitive sample files to confirm behavior. (4) If you require guarantees about data retention or compliance, review CamScanner's privacy/terms or consider an offline/local OCR alternative.
功能分析
Type: OpenClaw Skill Name: camscanner-image2office-office Version: 1.0.1 The skill provides a legitimate interface for converting PDF documents to Office formats using the CamScanner API. It clearly documents the data flow to the external endpoint (ai-tools.camscanner.com) and uses standard curl/jq commands to perform the upload, conversion, and download tasks as described, with no evidence of malicious intent or hidden behaviors.
能力评估
Purpose & Capability
Name and description claim PDF→Office conversion; required binaries (curl, jq) and the SKILL.md workflow (upload → convert → download) directly implement that functionality. No unrelated credentials, config paths, or binaries are requested.
Instruction Scope
Instructions are narrowly scoped to uploading a specified local PDF, requesting conversion, and saving the returned binary to a local path. This does transmit user files to ai-tools.camscanner.com (explicitly documented), which is expected for a cloud conversion service but is a privacy consideration the user must accept.
Install Mechanism
Instruction-only skill with no install spec and no code files — nothing is written to disk by the skill itself beyond the user's own uploaded/downloaded files. This is the lowest-risk install profile.
Credentials
The skill requests no environment variables or credentials, which is consistent with an anonymous-upload API. The lack of an auth requirement is plausible but noteworthy — confirm whether the real service enforces authentication/rate limits if you expect to send sensitive or bulk data.
Persistence & Privilege
The skill does not request persistent presence (always is false) and does not modify other skills or system configuration. Autonomous invocation is allowed by default but is not a special privilege here.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install camscanner-image2office-office
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /camscanner-image2office-office 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.1
Major update: The skill now converts PDF files to editable Office formats instead of images. - Renamed skill to focus on PDF-to-Office conversion (camscanner-pdf2office). - Updated triggers and description to handle PDF-to-Word (.docx) and PDF-to-Excel (.xlsx) conversions. - Changed API usage to use /convert_pdf endpoint (was /convert_image). - Adjusted documentation to reference PDFs instead of images throughout. - Updated file extension mapping, supported conversions, and error handling examples for PDF input.
v1.0.0
- Initial release of CamScanner Image to Office skill. - Convert images containing text or tables into editable Word (.docx) or Excel (.xlsx) files while preserving complex layouts. - Handles quick, 3-step pipeline: upload image, convert, and download Office document. - Designed for high-fidelity recognition of tables, text, and formatting. - Privacy: Files are processed in real-time by CamScanner servers and not permanently stored.
元数据
Slug camscanner-image2office-office
版本 1.0.1
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 2
常见问题

CamScanner-Image2Office 是什么?

Use CamScanner to convert PDF documents to editable Word (.docx) or Excel (.xlsx) format, with intelligent content recognition and accurate format preservati... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 88 次。

如何安装 CamScanner-Image2Office?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install camscanner-image2office-office」即可一键安装,无需额外配置。

CamScanner-Image2Office 是免费的吗?

是的,CamScanner-Image2Office 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

CamScanner-Image2Office 支持哪些平台?

CamScanner-Image2Office 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 CamScanner-Image2Office?

由 CamScanner-AI(@camscanner-ai)开发并维护,当前版本 v1.0.1。

💬 留言讨论