pdf

用途概括用于处理PDF文件的技能,包括读取、提取、合并、拆分、旋转、添加水印、创建、填写表单、加密解密、OCR等操作。

业务领域

CodingDocument Processing

技能形态

Cli ManualWorkflow
所需工具
pdftotextqpdfpdftk
语言环境
python
包管理器
pip

Agent Skill 规格描述

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.

使用场景

两种典型用法

场景 01

从PDF中提取表格数据

用户需要从PDF报告中提取表格数据进行分析。使用该技能,Agent可以调用pdfplumber库提取PDF中的表格,并将其转换为Pandas DataFrame,最终导出为Excel文件,方便用户进行后续数据处理和分析。

场景 02

合并多个PDF文件

用户需要将多个PDF文档合并为一个文件。使用该技能,Agent可以调用pypdf库或qpdf命令行工具,将用户提供的多个PDF文件按顺序合并,生成一个完整的PDF文档,提高文档管理效率。

技能关系

我用了哪些 Skills · 哪些 skills 用了我

依赖关系读作“上一格指向下一格”。当前 Skill 位于第二格,上下分别是影响它与被它影响的 Skill。

第一层 · 这些 Skills 用了我

  • 无显式依赖

第二层 · 当前 Skill

  • pdfCli Manual · Workflow

第三层 · 我用了这些 Skills

  • 无其他 Skill 显式依赖此项

技能文件

SKILL.md

在 GitHub 打开 ↗
SKILL.md从 GitHub 加载中…

目录结构

技能结构

在 GitHub 打开 ↗
  • skills/pdf/
  • root
    • ·LICENSE.txt
    • ·SKILL.md
    • ·forms.md
    • ·reference.md
    • scripts
      • ·check_bounding_boxes.py
      • ·check_fillable_fields.py
      • ·convert_pdf_to_images.py
      • ·create_validation_image.py
      • ·extract_form_field_info.py
      • ·extract_form_structure.py
      • ·fill_fillable_fields.py
      • ·fill_pdf_form_with_annotations.py

按 Agent Skills 规范,必需项仅 SKILL.md;其余目录均为可选的脚本 / 引用 / 资源扩展。