Install any skill in seconds. Free to start, no credit card required.
Get Started Free →coderwanfeng/pdf2docx
将 PDF 文件转换为 Word 文档(.docx),支持单文件和批量转换。当用户提到 PDF 转 Word、PDF 转 docx 时使用。
Passed 22 of 22 test cases with the skill, and 5 of 22 without it.
and 13 more in the full report
17 fixed5 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 17 test cases the skill fixed. Same model, same prompt, with and without the skill.
需要把财务报表 `q4_finance.pdf` 转换成 `q4_finance.docx`,请给出一个简洁的 Python 调用脚本。
| Checked | Without skill | With skill |
|---|---|---|
| Imports pdf2docx from skills.pdf. | Missed | Passed |
| Passes 'q4_finance.docx' to output_file. | Passed | Passed |
The instructions your model reads when the skill loads.
将 PDF 转换为 Word 文档
将一个或多个 PDF 文件转换为 Word(.docx)格式。
office/skills/pdf/pdf2docx/
from skills.pdf import pdf2docx
# 单个文件
pdf2docx(input_file='./test.pdf', output_file='./test.docx')
# 批量转换(指定输入输出文件夹)
pdf2docx(input_path='./pdfs/', output_path='./docs/')
| 参数 | 类型 | 必填 | 默认值 | 说明 |
|---|---|---|---|---|
input_file | str | 否* | - | PDF 文件路径 |
output_file | str | 否 | - | 输出 Word 文件路径 |
input_path | str | 否* | - | 输入文件夹路径(批量转换时使用) |
output_path | str | 否 | - | 输出文件夹路径(批量转换时使用) |
file_path | str | 否 | - | [已弃用] 请使用 input_file |
至少需要提供
input_file+output_file或input_path+output_path之一
None
test cases passed, vs 5 / 22 without
Published skills whose descriptions closely match this one, with their headline benchmark lift.
More skills from the same source and nearby in the registry, with their headline benchmark lift.