pdf

Extract text and tables from PDFs using Python libraries.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/XSIJIE975/agents-skills --skill pdf-xsijie975
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/XSIJIE975/agents-skills/tree/main/skills/pdf
Command: npx skills add https://github.com/XSIJIE975/agents-skills --skill pdf-xsijie975

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill streamlines the end-to-end handling of PDF documents by enabling automated extraction of text and tables, creation of new PDFs, merging/splitting, and form digitization without manual scripting.

Core Features & Use Cases

  • Automated Text and Table Extraction: Pull text and structured table data from PDFs for ingestion into analytics workflows.
  • PDF Creation and Manipulation: Generate new PDFs, merge or split documents, rotate pages, and apply basic transformations.
  • Form Digitization and Filling: Programmatically fill both fillable and non-fillable PDF forms, convert user inputs into annotations or field updates, and validate results for streamlined document workflows.
  • Use Case: You have 100 invoices in PDF; you can automatically extract invoice numbers, totals, and dates, or fill standardized forms across all documents for archiving.

Quick Start

To begin, install the required Python packages and run the sample workflow:

  • Install dependencies: pip install pypdf pdf2image Pillow
  • Extract form field info: python scripts/extract_form_field_info.py sample.pdf fields.json
  • Fill fields into a PDF: python scripts/fill_fillable_fields.py sample.pdf fields.json filled.pdf
  • Create a validation image for page 1: python scripts/create_validation_image.py 1 fields.json sample_page1.png

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I automate PDF text and table extraction for multiple invoices using Python?

Automate PDF text and table extraction by using Python libraries like pypdf to parse documents and pull structured data from hundreds of invoices for ingestion into analytics workflows without manual scripting.

Can I programmatically fill non-fillable PDF forms without manual input?

Programmatically fill both fillable and non-fillable PDF forms by converting user inputs into annotations or field updates using pdf2image and Pillow to render pages and validate results.

What is the best way to merge, split, and manipulate PDF documents in an automated workflow?

The best way to manipulate PDF documents in automated workflows is using Python libraries like pypdf to generate new PDFs, merge or split documents, rotate pages, and apply basic transformations.

Do I need to install pypdf and pdf2image to extract form field info from a PDF?

Yes, you need to install pypdf, pdf2image, and Pillow to extract form field info, fill fillable fields, and create validation images from PDF documents in your automated processing workflow.

How do I create a validation image for a filled PDF form page?

Create a validation image for a filled PDF form page by running a Python script with pdf2image and Pillow to render the specific page to an image, validating the field updates visually.