AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
This skill provides a structured approach to handling PDF files by combining programmatic generation with visual validation. It leverages Python libraries for document creation and data extraction, while utilizing system-level rendering tools to ensure that layout, typography, and spacing meet visual requirements before final delivery.
What it does
- Generates new PDF documents using Python libraries.
- Extracts text content from existing PDF files.
- Renders PDF pages as images for visual inspection.
- Validates document layout, alignment, and formatting.
- Manages temporary and final file storage paths.
When to use it
- When you need to create PDFs with specific formatting requirements.
- When you must verify the visual layout of a document before finalizing it.
- When you need to extract text from a PDF for further processing.
- When you need to ensure consistent typography and spacing in generated documents.
Advantages
- Enables visual confirmation of PDF rendering.
- Supports programmatic document creation with reliable formatting.
- Provides a clear workflow for iterative document development.
- Includes guidelines for maintaining clean, readable output.
Usage examples
- “Create a PDF report from this data and show me how it looks.”
- The agent generates the PDF using reportlab, renders it to a PNG for your review, and confirms the layout is correct.
- “Extract the text from this invoice PDF.”
- The agent uses pdfplumber to parse the document and returns the extracted text content.
Install
Download the skill as a ZIP:
https://autogineer.com/agent-skills/openai/pdf/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip pdf.zip -d .agents/skills
Documentation by OpenAI
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
Prefer visual review: render PDF pages to PNGs and inspect them.
Use
pdftoppmif available.If unavailable, install Poppler or ask the user to review the output locally.
Use
reportlabto generate PDFs when creating new documents.Use
pdfplumber(orpypdf) for text extraction and quick checks; do not rely on it for layout fidelity.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 pypdfIf uv is unavailable:
python3 -m pip install reportlab pdfplumber pypdfSystem tools (for rendering):
# macOS (Homebrew)
brew install poppler
# Ubuntu/Debian
sudo apt-get install -y poppler-utilsIf 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_PREFIXQuality 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.
Files
- ATTRIBUTION.mdAdded by AutoGineer838 B
- LICENSE.txt10.5 KiB
- SKILL.md2.5 KiB
- agents/openai.yaml219 B
- assets/pdf.png1.3 KiB
Requirements and compatibility
Written for: OpenAI Codex
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs a command-line tool, Needs Python
Security
What our scanner noticed· Low risk
- Instructions that use the network
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- OpenAI
- Publisher
- OpenAI (Official)
- Source
- openai/skills · skills/.curated/pdf · commit 49f948f
- Licence
- Apache License 2.0 (redistribution allowed)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by OpenAI or OpenAI.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download pdf.zip