设计与多媒体

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 创建、编辑、读取 Word 文档,并支持修订与批注,输出可渲染检查。

作者 Anthropic197.6k 星标

pdf

官方

用 Python 库和命令行工具读取、提取、合并、拆分、旋转、加水印、加密并生成 PDF。

作者 Anthropic197.6k 星标

搭建并重构由 MCP 服务器加小组件 UI 组成的 ChatGPT Apps SDK 应用。

作者 OpenAI28.8k 星标

用已发布的设计系统组件、变量和样式在 Figma 中搭建或更新整页屏幕,而不是手绘硬编码数值。

作者 OpenAI28.8k 星标

OpenAI 的更多技能

浏览全部技能

搭建并重构由 MCP 服务器加小组件 UI 组成的 ChatGPT Apps SDK 应用。

作者 OpenAI28.8k 星标

用已发布的设计系统组件、变量和样式在 Figma 中搭建或更新整页屏幕,而不是手绘硬编码数值。

作者 OpenAI28.8k 星标

把代码库里的设计系统按阶段搬进 Figma,每一步都先给你确认再往下走。

作者 OpenAI28.8k 星标

figma-use

官方

通过 Figma 插件 API 执行 JavaScript,在 Figma 文件中创建、修改和读取节点。

作者 OpenAI28.8k 星标

hatch-pet

官方

把概念、品牌线索或参考图做成通过校验的 Codex 动画宠物图集与 pet.json 包。

作者 OpenAI28.8k 星标

imagegen

官方

在编码会话中直接生成或编辑位图素材,从主视觉图到透明背景抠图。

作者 OpenAI28.8k 星标