pdf

Manage PDF files for reading, creation, and review with Poppler, reportlab, and pdfplumber.

24.7k|1.7k|Updated Nov 25, 2025
One-click install
npx skills add https://github.com/openai/skills --skill pdf-openai
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/openai/skills/tree/main/skills/.curated/pdf
Command: npx skills add https://github.com/openai/skills --skill pdf-openai

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the creation, modification, and review of PDF documents, ensuring professional quality and accurate content.

Core Features & Use Cases

  • PDF Generation: Create new PDFs with precise formatting using reportlab.
  • Data Extraction: Extract text and tabular data from existing PDFs using pdfplumber and pypdf.
  • Visual Verification: Render PDF pages to images for layout and design checks.
  • Use Case: Generate a monthly report in PDF format, ensuring all charts and tables are perfectly aligned and readable, then extract key figures for a summary.

Quick Start

Use the pdf skill to render the first page of 'document.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 and tabular data from a PDF document?

To extract text and tabular data from a PDF, use pdfplumber and pypdf to parse content while preserving layout accuracy. These libraries enable precise data extraction from existing documents, ensuring you capture structured information like tables and key figures reliably.

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

The best way to generate a PDF with precise formatting is using reportlab. It ensures consistent typography, spacing, and visual fidelity, allowing you to create new PDF documents where charts, tables, and text are perfectly aligned and readable.

Can I render PDF pages to images for visual layout verification?

Yes, you can render PDF pages to images for visual layout verification using Poppler. This allows you to review the visual fidelity and design of your PDF documents by converting pages into image formats like PNG for detailed inspection.

Does this approach work for both creating new PDFs and modifying existing ones?

Yes, this approach handles both creating new PDFs and processing existing ones. It utilizes reportlab for generation and pdfplumber with pypdf for extraction, ensuring professional quality and accurate content modification across the document lifecycle.

How do I ensure consistent typography and spacing in generated PDF documents?

To ensure consistent typography and spacing in generated PDF documents, utilize reportlab for creation. This process prioritizes visual fidelity and layout accuracy, guaranteeing that all generated files maintain professional legibility and precise structural alignment.

What are the limitations of using pdfplumber for data extraction?

While pdfplumber extracts text and tabular data accurately, complex visual layouts may require rendering pages to images via Poppler for verification. It focuses on data extraction and layout accuracy, so highly irregular document structures might need visual review to confirm fidelity.