pdf

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

对批量处理与自动化填表、解析PDF场景非常实用。

▸ 风险提示

处理上传 PDF 可能泄露敏感数据,请注意合规与隐私。

这个 Skill 做什么

提供 PDF 文档的提取、生成、拆分合并与表单填写等处理指南。

能把 PDF 里的文字和表格抓出来,也能生成新 PDF、拆分合并文件、以及自动填写表单。需要批量处理、程序化生成或分析 PDF 时就会用到,支持用 Python 或命令行脚本跑流程,也有 JavaScript 库示例。特别适合把手工操作自动化、做大规模文档处理和结构化数据提取的场景。

▸ 展开 SKILL.md 英文原文

Comprehensive PDF manipulation toolkit for extracting text and tables, creating new PDFs, merging/splitting documents, and handling forms. When Claude needs to fill in a PDF form or programmatically process, generate, or analyze PDF documents at scale.

办公文档PDF 处理文本抽取表格解析通用
6.2k
Stars
707
Forks
23
仓库内 Skill
+70
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/ThinkInAIXYZ/deepchat/dev/resources/skills/pdf/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/ThinkInAIXYZ/deepchat/dev/resources/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 公开信息 · 原文版权归作者所有