pdf

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

1|Updated Jul 13, 2026
One-click install
npx skills add https://github.com/HalseyYang/Skills-HY --skill pdf-halseyyang
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/HalseyYang/Skills-HY/tree/main/pdf
Command: npx skills add https://github.com/HalseyYang/Skills-HY --skill pdf-halseyyang

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, pdfplumber, pypdf.

What problem does it solve? Working with PDFs often fails silently: text extraction loses layout, generated documents have clipped text or broken tables, and defects go unnoticed until delivery. This Skill enforces a render-and-inspect workflow so PDF output is visually verified before it reaches the user. ## Core Features & Use Cases - Visual PDF Review: Renders PDF pages to PNG images with Poppler's pdftoppm so layout, spacing, and typography can be inspected directly. - Programmatic PDF Generation: Creates new PDF documents with reportlab, with re-rendering after each meaningful update to catch alignment and legibility issues. - Text Extraction and Checks: Uses 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 tables and charts, render every page to PNG, verify headers, footers, and page numbering, then deliver only after zero visual defects remain. ## Quick Start Use the pdf skill to create a polished one-page summary PDF from this content and render it for visual review before delivery.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I render PDF pages to images for visual inspection?

Use the pdftoppm command from Poppler with the -png flag, passing the input PDF and an output prefix. Each page is written as a separate PNG file that can be inspected for layout, spacing, and typography issues.

What Python library should I use to generate PDF files?

Use reportlab to generate PDFs programmatically with control over formatting, tables, and layout. After generation, re-render the pages with pdftoppm and inspect the PNGs to confirm alignment and legibility.

pdfplumber vs pypdf for PDF text extraction?

pdfplumber is suited for text extraction and quick content checks, while pypdf handles general PDF reading tasks. Neither should be relied on for layout fidelity, so visual rendering with Poppler is still required for review.

How do I install Poppler for PDF rendering?

On macOS run brew install poppler, and on Ubuntu or Debian run sudo apt-get install -y poppler-utils. If installation is not possible in the environment, the missing dependency should be reported with local install instructions.

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

Clipped text, overlapping elements, and broken tables come from layout errors in generation that text-based checks cannot detect. Re-render the pages to PNG after each update and verify spacing, margins, and table alignment before delivery.