Design & media

pdf

Create and review PDFs through programmatic generation, text checks, and rendered-page inspection.

What it does

Read, create, and review PDFs with attention to layout and rendering. Generate documents with reportlab, extract text or run quick checks with pdfplumber or pypdf, then render pages to PNG with Poppler for visual inspection. Recheck alignment, spacing, typography, tables, images, headers, footers, and page numbering after meaningful updates.

When to use it

  • Reviewing layout-sensitive PDF reports
  • Generating consistently formatted PDFs
  • Checking tables, charts, and images before delivery
  • Extracting PDF text for quick validation

The skill document

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.

Questions people ask

How does it check that a PDF will render correctly?
It renders pages to PNG with pdftoppm and inspects the latest output for clipping, overlaps, broken tables, unreadable glyphs, and other formatting defects.
Which tools does it use for PDF generation and extraction?
It uses reportlab to create PDFs and pdfplumber or pypdf for text extraction and quick checks. Extraction tools are not treated as a substitute for visual layout review.
What happens if the required PDF tools are unavailable?
It prefers uv or pip for Python dependencies and provides Homebrew or apt commands for Poppler. If installation is not possible in the current environment, it identifies the missing dependency and explains how to install it locally.

Related skills

Access supported Stripe administration and payment APIs through managed OAuth.

720 installs29 stars

Search YouTube data and manage account resources through Data API v3 with managed OAuth.

873 installs144 stars

Design and critique visual artifacts using measurable rules for hierarchy, spacing, type, color, and layout.

by Iván137 installs5 stars

Analyze mixed files and produce multiple requested artifacts through one agent task.

527 installs8 stars

Generate customizable adult portraits through an authenticated API with quota checks and multiple export formats.

263 installs12 stars

More from OpenAI

Browse all skills

chatgpt-apps

Official

Plan, scaffold, refactor, and validate ChatGPT Apps SDK projects with an MCP server and widget UI.

by OpenAI24.8k stars

Build or update full-page Figma screens with linked design-system components, variables, and styles.

by OpenAI24.8k stars

Builds a code-aligned Figma design system through phased creation, validation, and user approval.

by OpenAI24.8k stars

figma-use

Official

Runs Figma Plugin API scripts with the required call parameters, API rules, IDs, and validation workflow.

by OpenAI24.8k stars

hatch-pet

Official

Create and validate a Codex-compatible animated pet atlas from concepts, brand cues, or reference art.

by OpenAI24.8k stars

imagegen

Official

Generate or edit raster assets, validate the result, and place selected files into the project workspace.

by OpenAI24.8k stars