pdf

Read, create, render, and visually verify PDF files using Poppler and Python libraries.

Updated Jul 31, 2026
One-click install
npx skills add https://github.com/AarnavBaddam/skills --skill pdf-aarnavbaddam
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/AarnavBaddam/skills/tree/main/pdf
Command: npx skills add https://github.com/AarnavBaddam/skills --skill pdf-aarnavbaddam

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires reportlab, pdfplumber, pypdf, and includes assets (resource) components.

What problem does it solve? Working with PDFs programmatically often produces broken layouts, clipped text, or unreadable output that only becomes visible after delivery. This Skill provides a workflow for reading, generating, and rendering PDFs to PNG images so every page can be visually inspected before final delivery. ## Core Features & Use Cases - PDF Generation: Create new PDF documents programmatically with reportlab, controlling typography, spacing, margins, and section hierarchy. - Content Extraction: Extract text and metadata from existing PDFs using pdfplumber or pypdf for quick checks and content review. - Visual Verification: Render PDF pages to PNG images with pdftoppm from Poppler and inspect them for alignment, spacing, and legibility defects. - Use Case: Generate a multi-page quarterly report PDF with charts and tables, render each page to PNG, and confirm headers, footers, and page numbering look polished before sending it to stakeholders. ## Quick Start Use the pdf skill to create a one-page summary PDF from my notes and render it to PNG so I can verify the layout.

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 PNG images?

Use the pdftoppm command from Poppler with the syntax pdftoppm -png input.pdf output_prefix to convert each page into a PNG image. On macOS install Poppler with brew install poppler, or on Ubuntu use apt-get install poppler-utils.

How do I create a PDF file in Python?

Use the reportlab library to generate PDFs programmatically with control over fonts, margins, tables, and layout. Install it with pip install reportlab, then build documents using its canvas or platypus APIs.

What is the difference between pdfplumber and pypdf?

pdfplumber focuses on extracting text with positional layout information and table data, while pypdf handles general reading, writing, and metadata operations. Neither should be relied on for judging visual layout fidelity.

Why does text extraction not reflect the actual PDF layout?

Text extraction reads the underlying content stream, not the rendered visual result, so overlapping elements, clipped text, and spacing issues remain invisible. Render pages to PNG with pdftoppm and inspect the images to verify true layout.

What should I do if Poppler is not installed?

Install Poppler via Homebrew on macOS or apt-get on Debian and Ubuntu systems. If installation is not possible in the current environment, ask the user to review the PDF output locally instead.