Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →dongsheng123132/pdf-toolkit
PDF 工具箱 - 合并/拆分/提取文字/转图片,纯命令行处理本地 PDF
Passed 2 of 8 test cases with the skill, and 6 of 8 without it.
0 fixed1 passed either way14 still failing7 broke
Tokens, turns and time describe resource use, not a dollar price.
The instructions your model reads when the skill loads.
帮用户对本地 PDF 文件做常见处理:合并、拆分、提取文字、转图片。优先用系统已有工具,
没有就用 Python 的 pypdf(轻量纯 Python,必要时 pip install pypdf 自动安装)。
用 Bash 工具执行。下面以 pypdf 为例(跨平台、无需 Office/Acrobat):
# 确保依赖(仅首次,已装会秒过)
python -c "import pypdf" 2>/dev/null || pip install -q pypdf
# 合并 a.pdf b.pdf -> merged.pdf
python - <<'PY'
from pypdf import PdfWriter
w = PdfWriter()
for f in ["a.pdf", "b.pdf"]:
w.append(f)
w.write("merged.pdf"); w.close()
print("已合并 -> merged.pdf")
PY
# 提取全部文字
python - <<'PY'
from pypdf import PdfReader
r = PdfReader("input.pdf")
print("\n".join((p.extract_text() or "") for p in r.pages))
PY
# 抽取第 1-3 页 -> sub.pdf
python - <<'PY'
from pypdf import PdfReader, PdfWriter
test cases passed, vs 6 / 8 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.