设计与多媒体

Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplum

它能做什么

Use when tasks involve reading, creating, or reviewing PDF files where rendering and layout matter; prefer visual checks by rendering pages (Poppler) and use Python tools such as `reportlab`, `pdfplumber`, and `pypdf` for generation and extraction.

技能文档

PDF Skill

When to use

  • Read or review PDF content where layout and visuals matter.
  • Create PDFs programmatically with reliable formatting.
  • Validate final rendering before delivery.

Workflow

  1. Prefer visual review: render PDF pages to PNGs and inspect them.
    • Use pdftoppm if available.
    • If unavailable, install Poppler or ask the user to review the output locally.
  2. Use reportlab to generate PDFs when creating new documents.
  3. Use pdfplumber (or pypdf) for text extraction and quick checks; do not rely on it for layout fidelity.
  4. After each meaningful update, re-render pages and verify alignment, spacing, and legibility.

Temp and output conventions

  • Use tmp/pdfs/ for intermediate files; delete when done.
  • Write final artifacts under output/pdf/ when working in this repo.
  • Keep filenames stable and descriptive.

Dependencies (install if missing)

Prefer uv for dependency management.

Python packages:

uv pip install reportlab pdfplumber pypdf

If uv is unavailable:

python3 -m pip install reportlab pdfplumber pypdf

System tools (for rendering):

# macOS (Homebrew)
brew install poppler

# Ubuntu/Debian
sudo apt-get install -y poppler-utils

If installation isn't possible in this environment, tell the user which dependency is missing and how to install it locally.

Environment

No required environment variables.

Rendering command

pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX

Quality expectations

  • Maintain polished visual design: consistent typography, spacing, margins, and section hierarchy.
  • Avoid rendering issues: clipped text, overlapping elements, broken tables, black squares, or unreadable glyphs.
  • Charts, tables, and images must be sharp, aligned, and clearly labeled.
  • Use ASCII hyphens only. Avoid U+2011 (non-breaking hyphen) and other Unicode dashes.
  • Citations and references must be human-readable; never leave tool tokens or placeholder strings.

Final checks

  • Do not deliver until the latest PNG inspection shows zero visual or formatting defects.
  • Confirm headers/footers, page numbering, and section transitions look polished.
  • Keep intermediate files organized or remove them after final approval.

相关技能

以 AI 机器人身份加入视频会议,提供语音、虚拟形象与屏幕共享四种模式。

作者 johnpatternai22 次安装8 星标

docx

官方

直接操作底层 XML,创建、编辑、读取 .docx 与 .dotx 文档并添加批注。

作者 Anthropic181.1k 星标

pdf

官方

用 Python 库和命令行工具读取、编辑、生成 PDF,并对扫描件做 OCR。

作者 Anthropic181.1k 星标

为 ChatGPT Apps SDK 项目搭建脚手架、重构代码并排查问题,同时生成 MCP 服务器与 widget 界面。

作者 OpenAI28.1k 星标

复用 Figma 文件里已发布的组件、变量和样式,生成或更新整页屏幕。

作者 OpenAI28.1k 星标

OpenAI 的更多技能

浏览全部技能

为 ChatGPT Apps SDK 项目搭建脚手架、重构代码并排查问题,同时生成 MCP 服务器与 widget 界面。

作者 OpenAI28.1k 星标

复用 Figma 文件里已发布的组件、变量和样式,生成或更新整页屏幕。

作者 OpenAI28.1k 星标

从代码库出发,分阶段在 Figma 中搭建设计系统,每个阶段都有人工确认。

作者 OpenAI28.1k 星标

figma-use

官方

在 Figma 文件中通过 Plugin API 执行 JavaScript,并先加载好 API 规则与参考文档。

作者 OpenAI28.1k 星标

hatch-pet

官方

把概念、品牌线索或参考图做成可打包的 Codex 兼容动画宠物精灵图集。

作者 OpenAI28.1k 星标

imagegen

官方

为项目生成或编辑位图图像,从写实照片到透明背景抠图都能处理。

作者 OpenAI28.1k 星标