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.
Written by OpenAI and published in openai/skills under the Apache-2.0 license. Treq shows it unchanged except for heading levels and links to files on GitHub.
pdftoppm if available.reportlab to generate PDFs when creating new documents.pdfplumber (or pypdf) for text extraction and quick checks; do not rely on it for layout fidelity.tmp/pdfs/ for intermediate files; delete when done.output/pdf/ when working in this repo.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.
No required environment variables.
pdftoppm -png $INPUT_PDF $OUTPUT_PREFIX
Claude Code and Codex keep each installed skill's name and description in context. When a request matches the description, the agent loads the full SKILL.md. You can also run it yourself: type /pdf in Claude Code or $pdf in Codex.
The description says when to use it:
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…
Copy the pdf folder into .claude/skills/ in your project. To use it in every project, copy it into ~/.claude/skills/ instead.
git clone --depth 1 https://github.com/openai/skills.git /tmp/openai-skills
mkdir -p .claude/skills
cp -r /tmp/openai-skills/skills/.curated/pdf .claude/skills/
Codex reads skills from .agents/skills/ in your repository, and from ~/.agents/skills/ for every repository. It detects new skills on its own. Restart Codex if pdf does not appear.
git clone --depth 1 https://github.com/openai/skills.git /tmp/openai-skills
mkdir -p .agents/skills
cp -r /tmp/openai-skills/skills/.curated/pdf .agents/skills/
Open Settings and select the Skills tab. The tab appears when Skills installation is on under Settings → Feature Preview. Search for pdf and choose Install….
Install for repository writes the skill under .treq/skills/ in the current repository. Install for application makes it available to every repository on this machine. Each new workspace gets a copy in .claude/skills/ and .agents/skills/, so Claude Code and Codex both find it. See Installing Skills from the Library.
pdf ships 4 files, 14.5 KB in total. Select a file to load it from GitHub.