pdf

Generate and inspect PDF files with Poppler and Python libraries.

1|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/yige666s/claude-codex --skill pdf-yige666s
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/yige666s/claude-codex/tree/main/.claude/skills/pdf
Command: npx skills add https://github.com/yige666s/claude-codex --skill pdf-yige666s

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

PDF files often have complex visual layouts that make standard text extraction unreliable, and creating polished, properly formatted PDFs programmatically without visual verification can lead to formatting errors, clipped text, or misaligned elements that require time-consuming fixes.

Core Features & Use Cases

  • Visual Layout Inspection: Render PDF pages to PNG images to visually verify formatting, alignment, and legibility before delivery.
  • Polished PDF Generation: Create professional, consistently formatted PDFs using reportlab with controlled typography, spacing, and section hierarchy.
  • Content Extraction & Validation: Extract text and content from PDFs, with mandatory visual checks to ensure layout fidelity is preserved. A common use case is generating a client-facing invoice PDF with precise table alignment and brand styling, then rendering it to confirm no elements are clipped or misaligned before sending it to the client.

Quick Start

Use the pdf skill to generate a formatted sales report PDF from the provided quarterly data and render it to verify all tables and headers are aligned correctly.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I generate a formatted PDF and check it for layout defects before sending?

Generate a formatted PDF using reportlab with controlled typography, then render pages to PNG images to visually inspect for alignment and clipping defects. This verifies visual layout fidelity before delivery.

Why does text extraction from complex PDF layouts return misaligned or unreliable results?

Text extraction from complex PDF layouts often fails due to visual structure interfering with logical reading order. Mandatory visual layout checks ensure content extraction preserves layout fidelity and prevents misaligned results.

Do I need Poppler and Python packages like reportlab to create and verify PDF files?

Yes, deterministic PDF generation and inspection workflows require Poppler utilities alongside Python packages reportlab, pdfplumber, and pypdf to execute rendering and layout verification processes.

What is the best way to extract content from layout-heavy PDF files while preserving formatting?

The best way to extract content from layout-heavy PDF files is using pdfplumber for text extraction paired with mandatory visual layout verification to ensure formatting fidelity is preserved.

Can I render PDF pages to PNG images to visually verify formatting and legibility?

Yes, you can render PDF pages to PNG images to visually verify formatting, alignment, and legibility. This visual layout inspection identifies formatting defects before document delivery.

How do I programmatically create a professional PDF with precise table alignment and brand styling?

Create professional PDFs using reportlab to control typography, spacing, and section hierarchy. This enables precise table alignment and consistent brand styling for client-facing documents.