agentleFS
kanjiandahaikanjiandahai/skills-collection/skills/pdf-documents/SKILL.md

pdf-documents

Skill1 starsChanged 32 days agoMITView on GitHub

创建、阅读、拆合或填写 PDF。用户提到 PDF、导出说明书、合并拆分页面、提取表格/文字、加水印、填表时使用。

4 other projects use a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

pdf-documents

围绕 PDF 的读写与组装:先定「可读编辑还是印刷定稿」,再选工具链。

何时用

  • 生成报告/说明书 PDF
  • 合并、拆分、旋转、抽页
  • 提取文本/表格,或填写可填表单

工作流

  1. 确认输入输出:已有 PDF 还是从 Markdown/HTML 渲染;是否要可复制文本、书签、目录。
  2. 生成:Markdown/HTML → PDF(如 typst、pandoc、headless Chrome 打印);注意中文字体嵌入。
  3. 编辑/拆合:用成熟库或 CLI(如 pypdf、qpdf)做页级操作;保持原有旋转与盒子信息。
  4. 提取:文本层优先;扫描件需 OCR 时明确告知质量限制。
  5. 交稿前打开抽查:字体缺字、空白页、页序、链接是否可点。

原则

  • 印刷稿嵌入字体;勿依赖对方机器上的字体
  • 大文件先拆任务再合并,避免内存暴毙
  • 表单填写保留字段只读/只写语义,不破坏现有签名域(除非用户要求)

成功标准

  • 目标页数与内容齐全;关键页截图或文本抽查通过
  • 中文不乱码;合并后页序正确

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.