跳到正文
Skillpedia
PDF、Word 与幻灯片12k · #11573

pdf

它能做什么

该技能让智能体完成许多与 PDF 文件相关的常见工作。适用于需要阅读、制作或修改 PDF 的人。

适用场景

  • ✓当你想从 PDF 文件中提取文字或表格时。
  • ✓当你想把多个 PDF 合并为一个,或把一个文件拆分成几部分时。
  • ✓当你需要填写可填写的 PDF 表单,或为页面添加水印时。

技能链接

https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/pdf/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/EKKOLearnAI/ekko-studio/blob/main/packages/ekko-agent/skills/pdf/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“请把我列出的这三份 PDF 报告按顺序合并成一个文件。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会先检查 PDF,然后生成一个包含修改内容的新输出文件。除非你另有要求,否则会保持你的原始文件不变。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

PDF documents

Use this Skill for PDF extraction, generation, page operations, forms, metadata, attachments, encryption, and visual review.

Start here

Call skill_view for this Skill first and use the returned baseDirectory for all bundled helpers under <baseDirectory>/scripts.

Default to a new output file. Do not overwrite or remove source PDFs unless the user explicitly asks. Inspect an input before transforming it, and preserve page order, orientation, dimensions, annotations, and form intent unless the request says otherwise.

Common dependencies:

python3 -m pip install pypdf reportlab pdfplumber

Page rendering uses pypdfium2 when available and can fall back to Poppler's pdftoppm. Check dependencies first; do not install them silently.

Helpers

  • pdf_read.py: extract text and document information.
  • pdf_page_image.py: render selected pages to images.
  • pdf_create.py: create a PDF from structured input.
  • pdf_merge.py and pdf_split.py: page composition.
  • pdf_fill_form.py, pdf_form_layout.py, and pdf_make_form.py: AcroForm inspection, filling, and creation.
  • pdf_watermark.py and pdf_stamp.py: page overlays.
  • pdf_meta.py: metadata and attachment operations.
  • pdf_secure.py: encrypt or decrypt using password files.

Run helpers with terminal_exec, using python3 as the command and an argument array. Use --help to inspect exact arguments.

python3 <baseDirectory>/scripts/pdf_read.py input.pdf --json
python3 <baseDirectory>/scripts/pdf_page_image.py input.pdf -o rendered --pages 1-3
python3 <baseDirectory>/scripts/pdf_merge.py first.pdf second.pdf -o merged.pdf
python3 <baseDirectory>/scripts/pdf_split.py input.pdf -o pages

For form work, read references/forms.md through skill_view before editing.

Workflow

  1. Inspect text, metadata, page count, page sizes, encryption state, and form fields as relevant.
  2. Perform the smallest requested transformation into a new output.
  3. Re-read the output to verify page count, text, metadata, attachments, or field values.
  4. Render every changed page, or a representative sample for a large generated document, and inspect it with view_image. Check crop boxes, rotation, clipping, font rendering, overlays, and form appearance.
  5. Return the absolute output path and list any validation limitations.

Use OCR only when normal text extraction is empty or clearly incomplete. Route scanned documents through the ocr-and-documents Skill.

Passwords and sensitive PDFs

  • Do not put PDF passwords in chat, logs, or command arguments.
  • Store a supplied password in a temporary file with restrictive permissions and pass --password-file, --user-password-file, or --owner-password-file. Remove that temporary file after the operation.
  • PDF permission flags are advisory; do not describe them as strong access control.
  • Do not send sensitive PDF contents to external services without the user's authorization.
常见问题

它会覆盖我的原始 PDF 吗?

不会。默认情况下它会写入新文件,除非你要求,否则不会删除源文件。

它能处理有密码保护的 PDF 吗?

能。该技能包括使用密码文件加密和解密 PDF 的功能。

它能填写表单吗?

能。它可以检查、填写和创建可填写的表单字段,也就是 PDF 中的标准表单字段。

详情

作者的原始描述

Read, create, merge, split, fill, watermark, stamp, secure, inspect, render, and visually verify PDF files, including AcroForm workflows.

repo: EKKOLearnAI/ekko-studio

热度

GitHub 星标
12k
排名
#11573
许可证
—
更新时间
2026/11/2

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能