shdskill12

Efficient, lossless PDF to Word, PPT, and Excel conversion tool. Supports single-file and batch conversion while preserving text, images, tables, hyperlinks, headers and footers. Automatically detects document type and selects the best conversion strategy, and batches large files to avoid memory overflow. Used to convert PDFs into editable Office documents.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "shdskill12" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-effcdb2844211fcd600d52d7df1633856c73d627d3c5934ce5db1f9f75e47989. Verify the upstream source and version against https://skillhub.cn/skills/user_9355e276/shdskill12 before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Efficient, lossless PDF to Word, PPT, and Excel conversion tool. Supports single-file and batch conversion while preserving text, images, tables, hyperlinks, headers and footers. Automatically detects document type and selects the best conversion strategy, and batches large files to avoid memory overflow. Used to convert PDFs into editable Office documents.

0 Downloads

Introduction source: third_party · user_9355e276 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Audience
Not specified in the source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: pdf-to-office
description: "高效无损的PDF转Word、PPT、Excel工具。支持单文件和批量转换,保留文字、图片、表格、超链接、页眉页脚等全部特性。自动检测文档类型并选择最佳转换策略,大文件分批处理避免内存溢出。当用户需要将PDF转换为可编辑的Office文档时使用此技能。"
version: 1.0.0
agent_created: true

PDF转OFFICE

功能概述

将PDF文件高质量转换为Word (.docx)、PPT (.pptx)、Excel (.xlsx) 格式,保留原文档的文字、图片、表格、超链接等全部特性。

触发条件

  • 用户说"PDF转Word"、"PDF转PPT"、"PDF转Excel"、"PDF转换"等
  • 用户提供PDF文件并要求转换为可编辑格式
  • 用户需要批量转换多个PDF文件

依赖安装

转换前需确保以下Python包已安装。使用WorkBuddy管理的Python虚拟环境:

# 安装依赖(优先使用清华镜像加速)
<C:/Users/admin/.workbuddy/binaries/python/envs/default/Scripts/pip.exe> install pdf2docx PyMuPDF pdfplumber python-pptx openpyxl Pillow -i https://pypi.tuna.tsinghua.edu.cn/simple

运行时使用:

<C:/Users/admin/.workbuddy/binaries/python/envs/default/Scripts/python.exe>

转换流程

第一步:确定输出格式

根据用户需求确定输出格式:

  • 用户说"转Word" → 输出 .docx
  • 用户说"转PPT" → 输出 .pptx
  • 用户说"转Excel" → 输出 .xlsx
  • 用户未指定 → 默认转为 Word

第二步:执行转换

使用 scripts/convert_pdf.py 脚本执行转换。该脚本支持所有三种格式,并自动处理大文件分批转换。

单文件转换

<C:/Users/admin/.workbuddy/binaries/python/envs/default/Scripts/python.exe> <skill_dir>/scripts/convert_pdf.py <input.pdf> <output_path> --format <word|ppt|excel>

示例:

# PDF转Word
python convert_pdf.py "C:/input.pdf" "C:/output.docx" --format word

# PDF转PPT
python convert_pdf.py "C:/input.pdf" "C:/output.pptx" --format ppt

# PDF转Excel
python convert_pdf.py "C:/input.pdf" "C:/output.xlsx" --format excel

批量转换

python convert_pdf.py --batch <input_directory> --output-dir <output_directory> --format <word|ppt|excel>

第三步:处理大文件

当PDF超过30页时,单次转换可能因内存不足失败。脚本内置分批转换功能,自动将PDF按每15页一批进行转换,然后合并结果。分批大小可通过 --batch-size 参数调整:

python convert_pdf.py "large.pdf" "output.docx" --format word --batch-size 15

第四步:输出结果

  • 转换完成后,告知用户输出文件路径和文件大小
  • 如有转换失败,报告失败页码和原因
  • 使用 present_files 向用户展示输出文件

各格式转换特性

详细的支持矩阵见 references/conversion_quality.md。

PDF → Word

  • 使用 pdf2docx 库,完整保留文字样式、段落格式、图片、表格、超链接、页眉页脚
  • 支持自动生成目录

PDF → PPT

  • 每页PDF转为一张幻灯片
  • 保留文字、图片、形状
  • 使用 python-pptx 生成

PDF → Excel

  • 提取PDF中的表格数据
  • 每页表格转为一个Sheet
  • 使用 pdfplumber 提取表格

注意事项

  • 加密PDF需要先解密才能转换
  • 扫描版PDF(纯图片)转换后为图片,无法编辑文字,需配合OCR
  • 输出文件默认保存到当前工作目录,除非用户指定其他路径
  • 转换大量文件时建议使用批量模式

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 支持PDF转Word/PPT/Excel三种格式,满足常见办公需求
  • 支持单文件和批量转换,具备实际使用价值
  • 保留文字、图片、表格、超链接等全部特性
Trigger Precision85/100

Highlights

  • 触发词覆盖合理,包括"PDF转Word"、"PDF转PPT"、"PDF转Excel"等
  • 边界清晰,不易与其他Skill重叠
Structure and Standards90/100

Highlights

  • 四步流程清晰完整,包含出口条件
  • 提供端到端示例,便于用户理解执行
  • frontmatter完整,文档结构规范
Execution Reliability88/100

Areas to improve

  • 引用文件缺失 Reported severity: Major

    SKILL.md中引用了scripts/convert_pdf.py和references/conversion_quality.md文件,但未传入ZIP包

    Recommendation: 请确保所有被引用的文件都包含在Skill包中,否则用户无法执行转换操作

Highlights

  • 工具来源明确,使用pdf2docx、PyMuPDF等成熟库
  • 覆盖主要异常场景:大文件分批处理、加密PDF提示、扫描版PDF说明
  • 参数设置合理,支持自定义输出路径和分批大小
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • pypi.tuna.tsinghua.edu.cn

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.