anthropics/skills✦ 精选0°

pdf

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

覆盖常见 PDF 处理场景,能显著自动化文档操作流程。

这个 Skill 做什么

对 PDF 的读取、提取(文本/表格)、合并/拆分、加密/填写等全套处理能力。

把常见的 PDF 操作都包了:读取和提取文本/表格、合并/拆分、旋转页、填表、加密/解密、提取图片和 OCR 识别等。只要任务里出现 .pdf 文件或需生成 PDF,就该用它。优点是把多种 PDF 工具能力集中在一起,免去了在不同工具间反复切换的麻烦。

▸ 展开 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处理表单与解析合并拆分通用
16.4w
Stars
2.0w
Forks
18
仓库内 Skill
+5.6k
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/anthropics/skills/main/skills/pdf/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/anthropics/skills/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 公开信息 · 原文版权归作者所有