pdf

仓库创建 2025年6月22日最近提交 1 天前SkillHot 收录 20 天前
▸ 精选理由

覆盖常见PDF操作并给出代码示例,便于自动化任务。

这个 Skill 做什么

提供PDF读取、提取、合并、拆分与表单处理等操作指南与示例。

能把各种 PDF 的活儿全包:读出文字和表格、合并或拆分文件、旋转页、加水印、填表、加密/解密,甚至把扫描件做 OCR 变成可搜的文本。需要处理发票、报告、合同或要生成/改造 PDF 时就会用到。特点是既能做轻量的拆分合并,也支持表单填写和 OCR 这种稍复杂的内容抽取。

▸ 展开 SKILL.md 英文原文

Use this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple PDFs into one, splitting PDFs apart, rotating pages, adding watermarks, creating new PDFs, filling PDF forms, encrypting/decrypting PDFs, extracting images, and OCR on scanned PDFs to make them searchable. If the user mentions a .pdf file or asks to produce one, use this skill.

自动化集成PDF文档处理提取合并通用
4.4k
Stars
448
Forks
40
仓库内 Skill
+70
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/zebbern/claude-code-guide/main/skills/pdf/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/zebbern/claude-code-guide/main/skills/pdf/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# PDF Processing Guide

## Overview

This guide covers essential PDF processing operations using Python libraries and command-line tools. For advanced features, JavaScript libraries, and detailed examples, see REFERENCE.md. If you need to fill out a PDF form, read FORMS.md and follow its instructions.

## Quick Start

```python
from pypdf import PdfReader, PdfWriter

# Read a PDF
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")

# Extract text
text = ""
for page in reader.pages:
    text += page.extract_text()
```

## Python Libraries

### pypdf - Basic Operations

#### Merge PDFs
```python
from pypdf import PdfWriter, PdfReader

writer = PdfWriter()
for pdf_file in ["
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有