pdf

Extract text and tables from PDFs using Python libraries.

15|Updated Oct 17, 2018
One-click install
npx skills add https://github.com/phamquiluan/dotfiles --skill pdf-phamquiluan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/phamquiluan/dotfiles/tree/main/skills/pdf
Command: npx skills add https://github.com/phamquiluan/dotfiles --skill pdf-phamquiluan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdf2image, Pillow, and includes scripts (resource) components.

What problem does it solve?

This Skill provides a programmable toolkit for PDF processing, including extracting text and tables, creating new PDFs, merging and splitting documents, and handling forms. It enables automation of document workflows at scale.

Core Features & Use Cases

  • Text and table extraction from PDFs using Python libraries for data pipelines and analytics.
  • PDF creation and manipulation: merge, split, rotate, annotate, and form-filling capabilities (supporting both fillable and non-fillable forms).
  • Use Case: Process large sets of invoices or reports, extract structured data, and generate consolidated outputs or fill standardized forms automatically.

Quick Start

Extract all text from a PDF and print the number of pages.

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 tables from PDF files in Python?

Extracting text and tables from PDF files is handled by the pypdf library, which parses document content into structured data. It targets batch processing scenarios like invoices and reports, providing reliable outputs for downstream analytics pipelines.

Can I automate filling both fillable and non-fillable PDF forms?

Automating PDF form filling supports both fillable and non-fillable forms. By leveraging pypdf and Pillow, the Skill handles form fields and document manipulation to populate standardized forms automatically, streamlining document workflows at scale.

Does pypdf work with pdf2image and Pillow for PDF manipulation tasks?

pypdf works seamlessly with pdf2image and Pillow for comprehensive PDF manipulation tasks. This combination enables text extraction, page rendering to images, and document creation, ensuring robust validation and error handling during batch processing.

What is the best way to merge and split PDF documents for batch processing?

The best way to merge and split PDF documents for batch processing is using a Python-based programmatic toolkit. This Skill automates merging, splitting, and rotating PDFs, enabling automated data extraction and consolidated output generation for large document sets.

How do I create new PDF files from extracted invoice data?

Creating new PDF files from extracted invoice data involves using pypdf to generate and manipulate documents. The Skill extracts structured data from existing reports and uses it to create or fill new standardized PDF outputs automatically.