Token导航 LogoToken导航

Agent Skill · 前端设计

compdf-conversion-cli(compdf conversion CLI 图像)

compdf-conversion-cli 用于补充前端设计相关能力,适合在 Local Agent 中需要让 Agent 承接前端设计相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

compdf-conversion-cli 是前端设计类 Agent Skill,可用宿主为 Local Agent,通过unknown获取,权限为接触敏感数据;许可证信息还不明确,暂无第三方扫描结果,按安装量在前端设计类的 10,216 个 Skill 里排第 9,208。

总安装 225周安装 9下载 73核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:compdf-conversion-cli(compdf conversion CLI 图像)
来源仓库:https://skills.volces.com
仓库路径:compdf-conversion-cli
安装命令:
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。当前暂无明确安装命令,请以来源页面说明为准。

这个 Skill 是做什么的

前端设计类 Skill 关注页面结构、视觉规范和组件写法,输出通常是可运行的界面代码。

compdf-conversion-cli 用于 PDF 与图像格式间的命令行转换。适合在 Local Agent 中集成到自动化流水线处理文档资产。支持批量操作,但大文件转换可能消耗较多内存与时间。安装前需确保系统已配置相应依赖库与字体资源。输出质量受原始文档排版影响,复杂样式建议人工校验。

来源仓库内路径:compdf-conversion-cli

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Local Agent;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    没有现成安装命令,按unknown的说明从来源页面获取,仓库路径是 compdf-conversion-cli。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

compdf-conversion-cli 怎么安装?

公开资料没有给出可以直接复制的命令,需要按来源页面说明手动安装,仓库内路径为 compdf-conversion-cli。

compdf-conversion-cli 支持哪些 AI 工具?

公开资料标注支持 Local Agent。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

compdf-conversion-cli 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

compdf-conversion-cli 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

compdf-conversion-cli 用的人多吗?

公开数据是累计安装 225 次,近一周安装 9 次,下载 73 次。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

compdf-conversion-cli 安全吗?

没有查到第三方扫描结果,安全性无法从公开资料判断,安装前请自行审查源码、依赖和命令行为。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 Local Agent 一种宿主,触发方式和使用习惯不用来回切换。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 没有第三方扫描结果,安全性只能靠自己读源码判断。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Local Agent,想直接扩展它能力的人。
  • 需要处理前端设计类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 要求有安全扫描结论才肯安装的团队。

前端设计类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
frontend-design

前端设计 · Codex、Claude

8,823,360126,072只读MIT通过
vercel-composition-patterns

Vercel 组合模式 · Codex、Claude

3,858,81625,893需要联网MIT通过
vercel-react-native-skills

Vercel React native skills 前端 · Codex、Claude

2,468,66425,878只读MIT通过
adapt

adapt 搜索 · Codex、Claude

2,027,04023,125操作浏览器未明确通过
bolder

bolder 分析 · Codex、Claude

2,004,28823,130只读未明确通过
compdf-conversion-cli

compdf conversion CLI 图像 · 本页

225—接触敏感数据未明确未收录

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

ComPDF Conversion CLI Skill

Purpose

  • Wraps the ComPDFKitConversion Python SDK into a reusable local conversion workflow, supporting PDF / image to Word, PPT, Excel, HTML, RTF, Image, TXT, JSON, Markdown, and CSV (10 output formats in total).

Agent Skills Standard Compatibility

  • This Skill uses an Anthropic Agent Skills-compatible directory structure: compdf-conversion-cli/.
  • The entry point is SKILL.md; helper scripts are placed in scripts/.
  • The document uses $ARGUMENTS and ${CLAUDE_SKILL_DIR} conventions for distribution and execution in Claude Code / Agent Skills-compatible environments.

Input / Output

  • Input: The target format (word/excel/ppt/html/rtf/image/txt/json/markdown/csv), the PDF or image path, and the output path are passed via Skill arguments or the command line. An optional PDF password and conversion parameters may also be provided.
  • Supported input file types:

- PDF files (.pdf) - Image files (.jpg/.jpeg/.png/.bmp/.tif/.tiff/.webp/.jp2/.gif/.tga)

  • Output: A file in the corresponding format (.docx, .pptx, .xlsx, .html, .rtf, image, .txt, .json, .md, .csv), or a clear error message.

Prerequisites

  • Supports Windows and macOS.
  • The conversion SDK must be installed first: pip install ComPDFKitConversion
  • On first run, the script automatically downloads license.xml from the ComPDF server and caches it in the scripts/ directory: https://download.compdf.com/skills/license/license.xml
  • The script reads the <key>...</key> field from license.xml and uses that key for LibraryManager.license_verify(...) authentication — it does not pass the XML file path directly to the SDK.
  • To use a custom license, place your own license.xml in the scripts/ directory; the script will use it directly without downloading.
  • During SDK initialization, the resource directory is always set to the directory containing compdf_conversion_cli.py, i.e., the scripts/ directory itself.
  • When --enable-ocr or --enable-ai-layout (enabled by default) is used, the Skill also requires scripts/documentai.model. If the file does not exist, the script will automatically download it from: https://download.compdf.com/skills/model/documentai.model
  • To reuse an existing model file, you can override the default model path via an environment variable: export COMPDF_DOCUMENT_AI_MODEL="/path/to/documentai.model"

Workflow

  1. Confirm the Python package is installed: python -m pip show ComPDFKitConversion
  2. The script automatically downloads license.xml on first run; the scripts/ directory is used directly as the SDK resource path.
  3. In Agent Skills / Claude Code environments, prefer using the Skill's built-in script path variable: python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.pdf output.docx python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" ppt input.pdf output.pptx python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" excel input.pdf output.xlsx
  4. For more control, append common parameters: python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" excel input.pdf output.xlsx --page-ranges "1-3,5" --excel-all-content --excel-worksheet-option for-page python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.pdf output.docx --enable-ocr --page-layout-mode flow
  5. On startup, the script ensures scripts/license.xml exists (downloading it automatically from the ComPDF server if missing), reads the <key> field for SDK authentication, and uses the scripts/ directory as the resource path.
  6. If --enable-ocr or --enable-ai-layout (enabled by default) is active, the script checks whether scripts/documentai.model exists; if not, it downloads the file automatically before initializing the Document AI model.
  7. Check the return code; if it is not SUCCESS, handle license, password, resource, model, or input file issues according to the error name.

documentai.model Download Optimization

  • The script preferentially uses the model file pointed to by COMPDF_DOCUMENT_AI_MODEL.
  • The default model path is scripts/documentai.model.
  • During automatic download, the file is first written to documentai.model.part and then atomically renamed to the final file upon success, preventing partial file corruption.
  • On download failure, the script retries automatically with back-off intervals of 2s / 5s / 10s.

Invoking Directly as a Skill

  • In environments that support Agent Skills, the Skill can be called directly: /compdf-conversion-cli word input.pdf output.docx /compdf-conversion-cli excel input.pdf output.xlsx --excel-worksheet-option for-page
  • When the Skill receives arguments, it passes them through to the script as-is: python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" $ARGUMENTS
  • If the environment does not support direct Skill invocation, fall back to a regular command-line call.

Supported Output Formats

  • word → calls CPDFConversion.start_pdf_to_word
  • excel → calls CPDFConversion.start_pdf_to_excel
  • ppt → calls CPDFConversion.start_pdf_to_ppt
  • html → calls CPDFConversion.start_pdf_to_html
  • rtf → calls CPDFConversion.start_pdf_to_rtf
  • image → calls CPDFConversion.start_pdf_to_image
  • txt → calls CPDFConversion.start_pdf_to_txt
  • json → calls CPDFConversion.start_pdf_to_json
  • markdown → calls CPDFConversion.start_pdf_to_markdown
  • csv → reuses CPDFConversion.start_pdf_to_excel with table/Excel parameters to produce CSV-friendly output

Input Source Types

  • The script supports PDF and image as input sources. The SDK's start_pdf_to_* interfaces natively accept image files with no pre-processing required.
  • By default, the script auto-detects the input type from the file extension:

- .pdf → pdf - .png/.jpg/.jpeg/.bmp/.tif/.tiff/.gif/.webp/.tga → image

  • You can also specify the source type explicitly: python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.png output.docx --source-type image
  • image -> * and pdf -> * share the same set of CPDFConversion.start_pdf_to_* interfaces; only the input file type differs.

Smart Defaults

The script automatically adjusts certain parameters based on the input source and output format to reduce manual configuration:

TriggerAutomatic BehaviorUser-OverridableDescription
Input source is an image (auto-detected or explicit --source-type image)Automatically enables --enable-ocrNo (--enable-ocr uses store_true; there is no --no-enable-ocr)Text in images must be extracted via OCR; without OCR, output will contain only images and no text
Output format is HTML (format = html)Automatically sets --page-layout-mode to box (box layout)Yes — passing --page-layout-mode flow explicitly overrides thisBox layout better preserves the original formatting in HTML; specify flow explicitly if flow layout is needed

When triggered, the script prints a notice to stderr, for example:

Auto-enabled OCR for image input.
Auto-set page layout mode to BOX for HTML output.

All Parameters

Positional Parameters

ParameterDescription
formatTarget format: word/excel/ppt/html/rtf/image/txt/json/markdown/csv
input_pdfInput file path (PDF or image)
output_pathOutput file path

General Parameters

ParameterTypeDefaultDescription
--source-typeOptionautoInput source type: auto/pdf/image
--passwordString""PDF open password
--page-rangesStringNonePage range, e.g. 1-3,5
--font-nameString""Output font name

Layout Parameters

ParameterTypeDefaultDescription
--enable-ai-layoutBooleanTrueAI layout analysis (disable with --no-enable-ai-layout)
--page-layout-modeOptionSDK default flow (auto-switched to box for HTML output)Page layout: box (box layout) / flow (flow layout)

Content Retention Parameters

ParameterTypeDefaultDescription
--contain-imageBooleanTrueRetain images (disable with --no-contain-image)
--contain-annotationBooleanTrueRetain annotations (disable with --no-contain-annotation)
--contain-page-background-imageBooleanTrueRetain page background images (disable with --no-contain-page-background-image)
--formula-to-imageBooleanFalseConvert formulas to image output
--transparent-textBooleanFalsePreserve transparent text

Output Control Parameters

ParameterTypeDefaultDescription
--output-document-per-pageBooleanFalseSplit output into one document per page
--auto-create-folderBooleanTrueAutomatically create output directory (disable with --no-auto-create-folder)

OCR Parameters

ParameterTypeDefaultDescription
--enable-ocrBooleanFalse (auto-enabled for image input)Enable OCR
--ocr-optionOptionSDK default allOCR scope: invalid-character/scan-page/invalid-character-and-scan-page/all
--ocr-languageMulti-selectautoOCR language(s); multiple languages can be specified simultaneously. Options: auto/chinese/chinese-tra/english/korean/japanese/latin/devanagari/cyrillic/arabic/tamil/telugu/kannada/thai/greek/eslav

Excel-Specific Parameters

ParameterTypeDefaultDescription
--excel-all-contentBooleanFalseInclude all content in Excel output
--excel-csv-formatBooleanFalseOutput Excel result in CSV format
--excel-worksheet-optionOptionSDK default for-tableWorksheet split strategy: for-table/for-page/for-document

JSON-Specific Parameters

ParameterTypeDefaultDescription
--json-contain-tableBooleanTrueInclude table data in JSON output (disable with --no-json-contain-table)

TXT-Specific Parameters

ParameterTypeDefaultDescription
--txt-table-formatBooleanTrueEnable table formatting in TXT output (disable with --no-txt-table-format)

HTML-Specific Parameters

ParameterTypeDefaultDescription
--html-optionOptionSDK default single-pageHTML output mode: single-page/single-page-with-bookmark/multiple-page/multiple-page-with-bookmark

Image-Specific Parameters

ParameterTypeDefaultDescription
--image-typeOptionSDK default jpgImage output format: jpg/jpeg/jpeg2000/png/bmp/tiff/tga/gif/webp
--image-color-modeOptionSDK default colorImage color mode: color/gray/binary
--image-scalingFloat1.0Image scaling factor
--image-path-enhanceBooleanFalseEnable image path enhancement

Parameter Default Value Rules

  • Parameters that default to True (--enable-ai-layout/--contain-image/--contain-annotation/--contain-page-background-image/--auto-create-folder/--json-contain-table/--txt-table-format) use BooleanOptionalAction; pass --no-xxx to disable.
  • Parameters that default to False (--enable-ocr/--formula-to-image/--transparent-text/--output-document-per-page/--excel-all-content/--excel-csv-format/--image-path-enhance) use store_true; passing the flag enables them.
  • All CLI parameter defaults are fully consistent with the SDK's ConvertOptions() defaults — omitting a parameter is equivalent to using the SDK's original default value.

Recommended Command Examples

PDF to Word (default parameters, AI layout analysis enabled)

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.pdf output.docx

PDF to Word, box layout, no images, no AI layout analysis

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.pdf output.docx --no-enable-ai-layout --no-contain-image --page-layout-mode box

PDF to Word, retain annotations and background images, one document per page

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.pdf output.docx --output-document-per-page

PDF to Excel, include all content and split worksheets by page

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" excel input.pdf output.xlsx --excel-all-content --excel-worksheet-option for-page

PDF to TXT, with table formatting enabled

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" txt input.pdf output.txt

PDF to HTML, multi-page with bookmarks mode

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" html input.pdf output_dir --html-option multiple-page-with-bookmark

PDF to Image, PNG format, grayscale, 2x scaling

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" image input.pdf output.png --image-type png --image-color-mode gray --image-scaling 2.0

Image to Word (OCR auto-enabled, specify Chinese language)

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.png output.docx --ocr-language chinese
Note: For image input, the script automatically enables OCR — there is no need to pass --enable-ocr manually. To specify an OCR language, --ocr-language can still be used.

PDF with OCR enabled (multiple languages)

python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" word input.pdf output.docx --enable-ocr --ocr-language chinese english japanese

Trial License and Usage Limits

  • The scripts/license.xml auto-downloaded from the ComPDF server is a Trial License, allowing a maximum of 200 conversions.
  • The script uses a SHA-256 fingerprint to detect whether the current License is the default trial key; no usage limit applies when using any other License.
  • After each successful conversion using the trial License, the script prints the current used/remaining count to stderr, for example: Trial license: 5/200 conversions used, 195 remaining.
  • When the trial limit is reached (200 conversions), the script refuses to convert and prompts the user to purchase a full License: Error: Trial license usage limit reached (200 conversions). Please purchase a license at: https://www.compdf.com/contact-sales
  • When the trial License has expired (SDK authentication fails), the error message also includes a purchase link.
  • After purchasing a full License, place a custom license.xml containing the new <key> in scripts/ (overwriting the auto-downloaded trial file) — no script modifications or counter file cleanup are required.

Confirmed Facts

  • ComPDFKitConversion 3.9.0 has been successfully installed on the local machine.
  • The installed package provides 10 conversion methods including CPDFConversion.start_pdf_to_word/start_pdf_to_ppt/start_pdf_to_excel.
  • LibraryManager provides initialize, license_verify, release, set_document_ai_model, and set_ocr_language.
  • Official documentation confirms support for PDF to Word / Excel / PPT / HTML / RTF / Image / TXT / JSON / Markdown.
  • The SDK's start_pdf_to_* interfaces natively accept image file input (PNG → Word has been verified successfully).
  • enable_ai_layout defaults to True in the SDK; set_document_ai_model() must be called first to load the model before use, otherwise a 0xC0000005 crash will occur.
  • --ocr-language supports specifying multiple languages simultaneously (e.g. --ocr-language chinese english).

Risks / Notes

  • The official requirements page states Python >=3.6, while the demo page states <3.11, but PyPI currently provides a cp314 wheel in practice; treat the locally installable wheel as the source of truth, but always verify installation in a new environment first.
  • If the script cannot download license.xml from the server (network issue) and no manual file exists in scripts/, or the <key> field is empty, the script cannot complete SDK authentication and cannot perform any real conversions.
  • documentai.model is a large file (approximately 525 MB); there will be a noticeable download delay the first time OCR / AI layout is enabled. Because --enable-ai-layout defaults to True, the model download will be triggered on the very first run.
  • If the runtime environment cannot access https://download.compdf.com/skills/model/documentai.model, place documentai.model in the scripts/ directory in advance.
  • Do not directly apply the initialization patterns from ComPDF SDKs for other languages to the Python package; this Skill is based on the locally verified LibraryManager / CPDFConversion API.

Resource Navigation

  • License file: License.txt
  • Script: scripts/compdf_conversion_cli.py
  • SDK authentication file: scripts/license.xml (auto-downloaded from https://download.compdf.com/skills/license/license.xml if missing)
  • SDK authentication source: the <key> field in license.xml
  • SDK resource path: scripts/
  • OCR / AI layout model: scripts/documentai.model (auto-downloaded if missing)
  • Purchase a full License: https://www.compdf.com/contact-sales
  • Official documentation:

- https://www.compdf.com/guides/conversion-sdk/python/overview - https://www.compdf.com/guides/conversion-sdk/python/pdf-to-word - https://www.compdf.com/guides/conversion-sdk/python/pdf-to-excel - https://www.compdf.com/guides/conversion-sdk/python/pdf-to-ppt - https://www.compdf.com/guides/conversion-sdk/python/apply-license

Acceptance Checklist

  • python -m pip show ComPDFKitConversion shows the installed package
  • Running python "${CLAUDE_SKILL_DIR}/scripts/compdf_conversion_cli.py" --help or an equivalent local command produces normal output
  • The script auto-downloads scripts/license.xml if missing, then extracts the license key from the <key> field for authentication
  • The script uses the scripts/ directory as the SDK resource path
  • The script recognizes all 10 target formats: word/excel/ppt/html/rtf/image/txt/json/markdown/csv
  • The script accepts both PDF and image files (.png/.jpg/.jpeg/.bmp/.tif/.tiff/.gif/.webp/.tga) as input
  • When --enable-ocr or --enable-ai-layout (enabled by default) is active and documentai.model is missing, the script auto-downloads the model
  • When license.xml cannot be obtained (download fails and no manual file exists) or authentication fails, a clear error is output rather than a silent failure
  • The 7 parameters that default to True can be disabled with --no-xxx
  • --ocr-language supports specifying multiple languages simultaneously
  • After a conversion using the trial License, the usage count increments
  • When the trial License reaches 200 conversions, the script refuses to convert and outputs a purchase link
  • When using a non-trial License, no usage limit applies
  • For image input, even if --enable-ocr is not passed, the script automatically enables OCR and prints a notice to stderr
  • For HTML output, even if --page-layout-mode is not passed, the script automatically uses box (box layout) and prints a notice to stderr
  • For HTML output, explicitly passing --page-layout-mode flow overrides the automatic box layout behavior

Distribution Notes

  • This Skill does not depend on any machine-specific absolute paths.
  • When distributing to other users, the following directory structure is sufficient: compdf-conversion-cli/ ├── SKILL.md ├── License.txt └── scripts/ └── compdf_conversion_cli.py
  • Users place this directory under their own skills root directory and the Skill is ready to use.
  • license.xml is auto-downloaded at runtime; no need to include it in the distribution package.

Common Pitfalls

  • scripts/license.xml is missing and cannot be auto-downloaded (network unavailable or server error): the script will error out before authentication. If you are in an offline environment, place license.xml manually in the scripts/ directory.
  • scripts/license.xml is missing the <key> field or its value is empty: the script will error out before authentication.
  • SDK resource files required by the SDK are absent from the scripts/ directory: conversion may fail after LibraryManager.initialize().
  • A password-protected PDF is provided without --password: this will trigger PDF_PASSWORD_ERROR.
  • OCR / AI layout is enabled but documentai.model is not present locally and the network is unavailable: the model download will fail; place the file in the scripts/ directory manually in advance.
  • When the Excel output strategy is unclear, prefer passing --excel-worksheet-option explicitly to avoid unexpected result structures.
  • When converting images to other formats, the script already enables OCR automatically; if the output still contains no text, check whether documentai.model is complete and whether the OCR language matches.
  • Once the trial License usage limit is exhausted, a full License must be purchased to continue; purchase link: https://www.compdf.com/contact-sales.

Copyright

This Skill is built on top of the ComPDFKit Conversion SDK.

© 2014-2026 PDF Technologies, Inc., a KDAN Company. All Rights Reserved.
Important: Under the ComPDFKit Terms of Service, distributing the documentation, sample code, or source code of the ComPDFKit Conversion SDK to third parties is prohibited. Please ensure you have obtained a valid ComPDFKit License before using this Skill.

平台分布

Local Agent

92.66%
按下载量换算68

安全审计

暂无安全审计结果可展示。

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills