openai avatar

Pdf

This one's for when you need to actually see what your PDFs look like, not just extract text and hope for the best. It leans hard on visual validation by rendering pages to PNG with Poppler's pdftoppm, then uses reportlab for generation and pdfplumber for extraction. The workflow is deliberate: create, render, inspect, fix, repeat. It's opinionated about quality too, explicitly calling out common disasters like clipped text, overlapping elements, and those mysterious black squares that show up when fonts go wrong. If you've ever shipped a PDF that looked fine in code but broken in practice, this skill is built around preventing exactly that. Good fit for reports, invoices, or anything where layout isn't negotiable.

install copies · 90 days. Times the install command was copied on this site in the last 90 days, bots filtered.
14
skills.sh installs
13.7K
GitHub stars
28.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add openai/skills --skill pdf --agent claude-code

Installs into .claude/skills of the current project.

Files

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

Sponsors

Details

Repository
github.com/openai/skills
Categories
Frontend Development, AI & Agent Building, Python, Design & UI/UX, Office & Documents
First seen
May 16, 2026

More from openai/skills

All 50
1shopify avatarshopify-storefront-graphqlshopify/shopify-ai-toolkitUse for custom storefronts requiring direct GraphQL queries/mutations for data fetching and cart operations. Choose this when you need full control over data fe13.7Kskills.sh installs
2dart-lang avatardart-setup-ffi-assetsdart-lang/skillsGuides agents in compiling and packaging C/C++ source code into dynamic or static libraries (Code Assets) using Dart's Native Assets hook system (via hook/build13.1Kskills.sh installs
3shopify avatarshopify-liquidshopify/shopify-ai-toolkitLiquid is an open-source templating language created by Shopify. It is the backbone of Shopify themes and is used to load dynamic content on storefronts. Keywor13Kskills.sh installs
4samber avatargolang-refactoringsamber/cc-skills-golangGolang refactoring — the safe, at-scale process for restructuring existing Go code: a coverage-adaptive safety net, tool-driven behavior-preserving transforms (12.9Kskills.sh installs
5backnotprop avatarplannotator-compoundbacknotprop/plannotatorAnalyze a user's Plannotator plan archive to extract denial patterns, feedback taxonomy, evolution over time, and actionable prompt improvements — then produce 12.8Kskills.sh installs
6yusukebe avatarhonoyusukebe/hono-skillUse when building Hono web applications or when the user asks about Hono APIs, routing, middleware, JSX, validation, testing, or streaming. TRIGGER when code im12.6Kskills.sh installs