pdf

Create, extract, and visually review PDF documents using Python libraries and Poppler rendering.

Updated May 11, 2026
One-click install
npx skills add https://github.com/cloudofgeorge/AI-hands-Engineer --skill pdf-cloudofgeorge
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/cloudofgeorge/AI-hands-Engineer/tree/main/skills/tools/pdf
Command: npx skills add https://github.com/cloudofgeorge/AI-hands-Engineer --skill pdf-cloudofgeorge

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, pdfplumber, pypdf.

What problem does it solve? Working with PDFs often fails on layout fidelity: text extraction loses structure, generated documents render with clipped text or broken tables, and defects go unnoticed until delivery. This Skill provides a workflow for reading, generating, and visually validating PDF files so the final output is polished and correct. ## Core Features & Use Cases - Visual PDF Review: Render PDF pages to PNG images with Poppler's pdftoppm and inspect them for alignment, spacing, and legibility issues. - Programmatic PDF Generation: Create new PDF documents with reportlab while maintaining consistent typography, margins, and section hierarchy. - Text Extraction and Checks: Use pdfplumber or pypdf for text extraction and quick content checks without relying on them for layout fidelity. - Use Case: Generate a multi-page report PDF with charts and tables, render every page to PNG, and iterate until headers, footers, and page numbering show zero visual defects. ## Quick Start Use the pdf skill to create a formatted PDF report and render its pages to images so you can verify the layout before delivery.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I generate a PDF in Python with good formatting?▼

Use reportlab to generate PDFs programmatically with control over typography, spacing, margins, and section hierarchy. After generation, render pages to PNG with pdftoppm and inspect them to confirm the layout is polished.

How do I render PDF pages to images for review?▼

Use the pdftoppm command from Poppler: `pdftoppm -png input.pdf output_prefix` converts each page to a PNG image. Install Poppler via Homebrew on macOS or apt-get on Ubuntu/Debian.

What is the difference between pdfplumber and pypdf?▼

pdfplumber is suited for text extraction and quick content checks with positional awareness, while pypdf handles general PDF reading and manipulation. Neither should be relied on for layout fidelity; visual rendering is the reliable check.

Why does my generated PDF have clipped text or broken tables?▼

Clipped text, overlapping elements, and broken tables usually come from incorrect sizing or spacing during generation. Re-render the pages to PNG after each update and verify alignment, spacing, and legibility before delivery.

Can I extract text from a PDF without checking the layout?▼

Yes, pdfplumber or pypdf can extract text for quick checks without rendering. However, for any deliverable where layout matters, you should still render pages visually since extraction tools do not capture formatting defects.