pdf

Generate, extract text from, and render PDF pages using Python libraries.

Updated Feb 20, 2026
One-click install
npx skills add https://github.com/garethdaine/agent --skill pdf-garethdaine
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/garethdaine/agent/tree/main/.cursor/skills/pdf
Command: npx skills add https://github.com/garethdaine/agent --skill pdf-garethdaine

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, pdfplumber, pypdf, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill streamlines the process of working with PDF documents, from creation and editing to detailed review and quality assurance, ensuring professional and accurate outputs.

Core Features & Use Cases

  • Programmatic PDF Generation: Create new PDFs with precise formatting using reportlab.
  • Content Extraction: Extract text and data from existing PDFs using pdfplumber and pypdf, prioritizing accuracy over layout fidelity for text-based extraction.
  • Visual Rendering & Verification: Render PDF pages to images for visual inspection, ensuring layout integrity and identifying rendering defects.
  • Use Case: Generate a monthly financial report PDF, ensuring all tables and charts are perfectly aligned, then render key pages to PNGs for a final visual sign-off.

Quick Start

Use the pdf skill to render the first page of the document 'report.pdf' as a PNG image.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract text from a PDF using Python?

You can extract text from PDFs using pdfplumber and pypdf, which prioritize text accuracy over layout fidelity. This approach handles content extraction from existing documents.

What is the best way to generate a PDF with precise formatting?

Generating PDFs with precise formatting is best done using reportlab. It enables programmatic PDF generation to create new documents ensuring professional presentation and layout fidelity.

How can I render PDF pages to images for visual inspection?

Rendering PDF pages to PNG images for visual inspection uses pdftoppm. This visual verification ensures layout integrity and helps identify rendering defects in the document.

Does pdfplumber maintain layout fidelity when extracting content?

pdfplumber does not maintain layout fidelity; it prioritizes text accuracy during content extraction. For layout verification, render the PDF pages to images using pdftoppm for visual review.

What dependencies are needed for PDF visual review and generation?

Dependencies needed for PDF visual review and generation include reportlab, pdfplumber, and pypdf for generation and extraction, plus poppler-utils for rendering pages to images. These Python libraries support full PDF document workflows.