agentsclimarketplace

Pdf tool

Skill publisher-skill/claude-skill/skills/pdf_tool

claude-skill skills

Install
npx -y skills add publisher-skill/claude-skill --skill pdf_tool

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

2 things to look at

  • 29 days oldThe repository was created 29 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
  • 1 stars1 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

What its author says it does

Copied from the file, not written here

PDF 工具 - 合并、拆分、提取文本、加密解密、加水印等

SKILL.md

2.1 KB, 639 tokens by cl100k_base, as published. Nobody here has run it

PDF Tool Skill

PDF 文档处理工具,日常办公必备!

功能特性

📄 PDF 基本操作

  • 合并 PDF: 将多个 PDF 文件合并为一个
  • 拆分 PDF: 按页面范围或单个页面拆分
  • 删除页面: 删除不需要的页面
  • 重排页面: 重新排列 PDF 页面顺序

🔐 安全功能

  • 加密 PDF: 为 PDF 添加密码保护
  • 解密 PDF: 移除 PDF 密码保护
  • 获取信息: 查看 PDF 页数、作者、创建时间等

📝 内容提取

  • 提取文本: 从 PDF 中提取所有文本
  • 保存为 TXT: 将提取的文本保存为 TXT 文件

使用方法

Python API

from skills.pdf_tool import PDFTool

pdf = PDFTool()

# 检查是否可用
if not pdf.is_available():
    print("请先安装: pip install pypdf")
    exit(1)

# 合并多个 PDF
pdf.merge_pdfs(['1.pdf', '2.pdf'], 'merged.pdf')

# 拆分 PDF(提取单个页面)
pdf.split_pdf('input.pdf', 'output', page=2)

# 拆分 PDF(按范围)
pdf.split_pdf('input.pdf', 'output', start=0, end=4)

# 提取文本
text = pdf.extract_text('input.pdf', 'output.txt')

# 加密 PDF
pdf.encrypt_pdf('input.pdf', 'encrypted.pdf', 'mypassword')

# 解密 PDF
pdf.decrypt_pdf('encrypted.pdf', 'decrypted.pdf', 'mypassword')

# 获取 PDF 信息
info = pdf.get_info('input.pdf')
print(f"页数: {info['pages']}")

API 参考

PDFTool 类

PDF 合并与拆分

  • merge_pdfs(pdf_paths, output_path) - 合并多个 PDF
  • split_pdf(pdf_path, output_dir, page=None, start=None, end=None) - 拆分 PDF

PDF 安全

  • encrypt_pdf(pdf_path, output_path, password) - 加密 PDF
  • decrypt_pdf(pdf_path, output_path, password) - 解密 PDF

PDF 内容操作

  • extract_text(pdf_path, output_path=None) - 提取 PDF 文本
  • remove_pages(pdf_path, output_path, pages_to_remove) - 删除页面
  • reorder_pages(pdf_path, output_path, new_order) - 重排页面

PDF 信息

  • get_info(pdf_path) - 获取 PDF 信息
  • is_available() - 检查是否可用

Gives 1 of the 12 instructions most pdf office docs skills give in 639 tokens

Counted across 635 of the 690 authors here whose files we hold, read 2026-08-06

  • extract text using pdfplumberhere, and in 92 of 635, across 25 files
  • create PDFs using reportlabin 83 of 635, across 16 files
  • read FORMS.md to fill out PDF formsin 80 of 635, across 13 files
  • OCR scanned PDFs using pytesseractin 77 of 635, across 10 files
  • merge or split PDFs using qpdfin 70 of 635, across 3 files
  • use Excel formulas instead of hardcoded calculated valuesin 68 of 635, across 12 files
  • unpack edit xml and repack existing documentsin 63 of 635, across 8 files
  • document sources for hardcoded valuesin 61 of 635, across 9 files
  • write minimal python code without unnecessary commentsin 59 of 635, across 7 files
  • run the recalculation script after adding or modifying formulasin 58 of 635, across 6 files
  • fix all identified formula errors and recalculatein 58 of 635, across 6 files
  • format years as text stringsin 57 of 635, across 5 files

Said here and by no other author read

  • save extracted text as a TXT file
  • remove password protection from a PDF
  • remove unwanted pages from a PDF
  • retrieve PDF metadata and page count

Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.

Keep looking

Skills are one crate of 328,083. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.