← 返回 Skills 市场
compdf-youna

Extract PDF

作者 ComPDF · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
168
总下载
86
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install extract-pdf-compdf
功能描述
Process, convert, edit, and extract data from PDF files using the ComPDF Cloud API. Supports format conversion (Word, Excel, Image), page manipulation (merge...
使用说明 (SKILL.md)

PDF Extract

Process PDF files through ComPDF Cloud REST API. Supports 50+ document processing operations.

Official documentation: \x3Chttps://api.compdf.com/api-reference/overview>

When to Run

  • User requests to convert file format (e.g., "convert this PDF to Word", "convert Excel to PDF")
  • User requests to edit PDF pages (e.g., "merge these two PDFs", "delete page 3", "rotate PDF")
  • User requests to add or remove watermarks from PDF
  • User requests to compress PDF files
  • User requests OCR recognition of scanned documents or text in images
  • User requests AI extraction or parsing of document content
  • User requests to extract tables from images
  • User requests batch processing of multiple document files
  • User requests to compare differences between two PDF documents
  • User mentions ComPDF, compdf, or related keywords

Workflow

Step 1 — Obtain API Key

Check whether config/public_key.txt exists and contains a non-empty value.

  • If the file exists and is non-empty: use the stored key (trim whitespace).
  • If the file is missing or empty: ask the user for their ComPDF API Public Key. Inform them it can be obtained at \x3Chttps://api-dashboard.compdf.com/api/keys>. After the user provides the key, ask whether they would like to save it locally for future sessions.
    • If the user agrees, write the key to config/public_key.txt.
    • If the user declines, use the key for the current session only without saving.

The key file is not included in the published skill package. It is created at runtime only when the user explicitly opts in. The user may delete config/public_key.txt at any time to revoke local storage.

Step 2 — Confirm External Upload Intent

Before uploading any file, explicitly inform the user:

⚠️ External Upload Confirmation Required

Your file will be uploaded to ComPDF's servers (api-server.compdf.com or api-server.compdf.cn) for processing. Please confirm that:

  1. You consent to uploading this file to external servers.
  2. The file does not contain highly sensitive or confidential data, or you accept the associated risk.
  3. You have reviewed ComPDF's Privacy Policy at \x3Chttps://www.compdf.com/privacy-policy>.

Only proceed with the upload after receiving explicit user confirmation.

Step 3 — Determine Base URL

Ask or infer the user's network environment:

Environment Base URL
International https://api-server.compdf.com/server/v2
Mainland China https://api-server.compdf.cn/server/v2

Step 4 — Select Tool

Look up the executeTypeUrl for the user's task in references/tool-list.md.

Quick reference for common operations:

Operation executeTypeUrl
PDF → Word pdf/docx
PDF → Excel pdf/xlsx
PDF → Image pdf/img
PDF → Markdown pdf/markdown
Word → PDF docx/pdf
Merge PDF pdf/merge
Split PDF pdf/split
Add Watermark pdf/addWatermark
PDF Compression pdf/compress
OCR documentAI/ocr
AI Document Extraction idp/documentExtract
AI Document Parsing idp/documentParsing

For the full list of 50+ tools, see references/tool-list.md.

Step 5 — Build Parameters (optional)

If the selected tool supports custom parameters, look up its JSON schema in references/parameters.md. Parameters are passed as a JSON string in the parameter form-data field. If omitted, server defaults apply.

Step 6 — Send Request

After the user has explicitly confirmed the external upload:

  1. Send a POST request to {baseUrl}/process/{executeTypeUrl}.
  2. Include the user-provided API key in the x-api-key header for the current session only.
  3. Send the selected file as multipart form-data.
  4. Include the parameter field only when the selected tool supports custom parameters.
  5. Use the synchronous /process/ endpoint so the complete result is returned in a single response.

Do not send the request until the user has confirmed that the file may be transmitted to ComPDF Cloud.

Step 7 — Handle Response

1. Check code field"200" means success; anything else is an error.

2. Check taskStatus (should be TaskFinish for synchronous calls):

Status Meaning Action
TaskFinish Processing complete Proceed to download
TaskProcessing Still processing internally Notify user; suggest retrying shortly
TaskOverdue Timed out Retry or split into smaller tasks

3. Extract download link from fileInfoDTOList[].downloadUrl.

4. Warn the user: download links expire at 24:00 the next day.

5. On failure: read failureCode and failureReason, then look up troubleshooting advice in references/error-codes.md.

6. On quota exhaustion (code = "06001"): inform the user:

For more credits, please visit \x3Chttps://api.compdf.com/api/pricing-old>

Auxiliary Endpoints

Purpose Method & Path
List supported tools GET {baseUrl}/tool/support
Check remaining credits GET {baseUrl}/asset/info
List tasks GET {baseUrl}/task/list?page=1&size=10
Close a task POST {baseUrl}/task/closeTask?taskId={taskId}

Output Format

On success:

Processing complete!

File: {fileName} → {downFileName}
Status: {taskStatus}
Time taken: {convertTime}ms
Original size: {fileSize} bytes
Result size: {convertSize} bytes
Download link: {downloadUrl}

⚠️ The download link will expire at 24:00 tomorrow, please save it promptly.

On failure:

Processing failed.

Error code: {failureCode}
Reason: {failureReason}
Suggestion: {troubleshooting suggestion from references/error-codes.md}

Critical Rules

  1. HTTP 200 ≠ success — always check code and taskStatus in the JSON body.
  2. Max 5 files per task — split into multiple tasks if more files are needed.
  3. Free tier limit — 200 files within 30 days.
  4. File type auto-detection — the API detects uploaded file types; no need to rename extensions.
  5. Encrypted PDFs — provide the password in the password form-data field (separate from parameter).
  6. China domain — mainland China users must replace compdf.com with compdf.cn.
  7. User-controlled API Key storage — the key file (config/public_key.txt) is never shipped with the skill package. It is created at runtime only when the user explicitly opts in. The user may delete it at any time.
  8. External upload confirmation — always obtain explicit user consent before uploading files to ComPDF servers.

License & Copyright

Copyright © 2014-2026 PDF Technologies, Inc., a KDAN Company. All Rights Reserved.

ComPDF and ComPDFKit are trademarks of PDF Technologies, Inc., a KDAN Company.

This skill package is licensed under the Apache License 2.0. See LICENSE.txt for the full license text.

The ComPDF Cloud API is a commercial service provided by PDF Technologies, Inc. Use of the API is subject to the ComPDF Terms of Service and Privacy Policy.

安全使用建议
This skill appears to do what it says: it will upload files to ComPDF's servers to perform conversions and extraction. Before installing or using it, consider: (1) do not upload highly sensitive or confidential files—uploads go to api-server.compdf.com or .cn; the skill requires you to explicitly consent before each upload; (2) if you choose to save your API key, it will be stored as plaintext at config/public_key.txt—delete that file to revoke local storage; (3) review ComPDF's privacy policy and pricing before use; (4) prefer providing the API key for the current session only if you need stronger secrecy; and (5) if you operate in a regulated environment, verify whether sending documents to an external cloud service is permitted. Overall the skill is internally consistent, but treat external uploads and local plaintext storage of keys as the main operational risks.
功能分析
Type: OpenClaw Skill Name: extract-pdf-compdf Version: 1.0.0 The skill bundle provides a legitimate interface for the ComPDF Cloud API to perform PDF processing tasks. It demonstrates good security practices by explicitly requiring user consent before uploading files to external servers (api-server.compdf.com) and before saving the user's API key to a local configuration file (config/public_key.txt). The instructions in SKILL.md are transparent, well-structured, and lack any indicators of malicious intent, data exfiltration, or prompt injection.
能力评估
Purpose & Capability
The name/description (PDF processing via ComPDF Cloud) matches the instructions: the SKILL.md describes using ComPDF endpoints, selecting executeTypeUrl from the provided tool list, sending multipart POST requests, and handling responses. No unrelated credentials, binaries, or services are requested.
Instruction Scope
Instructions stay within the PDF-processing scope but include local file I/O (reading/writing config/public_key.txt) and uploading user files to third-party servers. The skill explicitly requires explicit user confirmation before any upload, which is appropriate; be aware the agent will write a plaintext API key file only if the user agrees.
Install Mechanism
This is an instruction-only skill with no install spec and no code files to be written or executed by an installer, which minimizes installation risk.
Credentials
No environment variables or extra credentials are requested up front. The only secret is a user-provided ComPDF API key which the skill offers to save to config/public_key.txt. Saving the key in plaintext to a local file is functionally proportionate but has security implications (unencrypted secret storage).
Persistence & Privilege
always:false and no requests to modify other skills or system-wide settings. The only persistent artifact is the optional config/public_key.txt written under the skill's declared path; the SKILL.md states this file is created only with explicit user consent and can be deleted by the user.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install extract-pdf-compdf
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /extract-pdf-compdf 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the extract-pdf-compdf skill. - Enables PDF conversion, editing, extraction, and OCR via the ComPDF Cloud API. - Supports format conversion (Word, Excel, images), page merging/splitting, watermarking, and AI-driven content/table extraction. - Implements strict user consent for external uploads and API key storage. - Covers 50+ PDF operations with clear workflow and troubleshooting guidance. - Provides structured output and respects user privacy choices.
元数据
Slug extract-pdf-compdf
版本 1.0.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Extract PDF 是什么?

Process, convert, edit, and extract data from PDF files using the ComPDF Cloud API. Supports format conversion (Word, Excel, Image), page manipulation (merge... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 168 次。

如何安装 Extract PDF?

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

Extract PDF 是免费的吗?

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

Extract PDF 支持哪些平台?

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

谁开发了 Extract PDF?

由 ComPDF(@compdf-youna)开发并维护,当前版本 v1.0.0。

💬 留言讨论