One-click install
npx skills add https://github.com/led8/.codex --skill pdf-led8
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/led8/.codex/tree/main/skills/pdf
Command: npx skills add https://github.com/led8/.codex --skill pdf-led8

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps users read, generate, and verify PDFs with layout-sensitive content, ensuring visual fidelity and reliable extraction or creation workflows.

Core Features & Use Cases

  • Visual rendering checks: render pages to PNGs to validate layout, spacing, and typography.
  • PDF creation and modification: generate PDFs programmatically with consistent formatting using libraries like reportlab.
  • Data extraction and review: extract text and tables with pdfplumber or pypdf for quick checks while preserving structure.

Quick Start

Render the first page of the target PDF to PNGs and verify visual fidelity, then generate or extract content as needed.

Frequently Asked Questions about pdf

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I extract text and tables from a PDF while preserving structure?

PDF extraction with pdfplumber or pypdf pulls text and tables while preserving structural layout. These libraries read the document and extract content for quick checks, maintaining the original formatting for reliable data extraction workflows.

How do I generate PDFs programmatically with consistent formatting?

To generate PDFs programmatically with consistent formatting, use the reportlab library. It allows you to create and modify PDF documents, ensuring layout-faithful rendering and consistent formatting for administrative, data-analytics, and compliance workflows.

Can I render PDF pages to PNGs to validate layout and typography?

Rendering PDF pages to PNGs validates layout and typography visually. This process requires Poppler for rendering, allowing you to check visual fidelity, spacing, and typography before finalizing the document generation.

Do I need Poppler and Python libraries to automate document processing?

Automating PDF reading, generation, and validation requires Poppler for rendering and Python libraries reportlab, pdfplumber, and pypdf. These dependencies are necessary to generate content, extract data, and ensure layout-faithful rendering.

What is the best way to verify visual fidelity in PDF generation workflows?

Verifying visual fidelity in PDF generation workflows is done by rendering pages to PNGs. Applying Poppler for rendering validates layout, spacing, and typography, ensuring the programmatically generated PDF matches the intended design.

When should I not use reportlab for PDF creation?

You should not use reportlab for PDF creation when you only need to extract existing content or perform visual verification. For extraction tasks, pdfplumber or pypdf are better suited, while Poppler handles rendering checks.