pdf

Extract text and tables from PDFs using Python libraries.

26|15|Updated Dec 25, 2025
One-click install
npx skills add https://github.com/AnswerZhao/agent-skills --skill pdf-answerzhao
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/AnswerZhao/agent-skills/tree/main/glm-skills/document-skills/pdf
Command: npx skills add https://github.com/AnswerZhao/agent-skills --skill pdf-answerzhao

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdf2image, Pillow.

What problem does it solve?

This Skill provides a comprehensive toolkit for automating PDF processing, including text and table extraction, PDF creation, merging/splitting, and form handling, to replace repetitive manual work with reproducible automation.

Core Features & Use Cases

  • Data Extraction: Extract text and tabular data from PDFs using Python libraries for downstream analytics.
  • Document Creation & Manipulation: Create new PDFs, merge/split documents, and apply simple annotations or forms.
  • Use Case: Automatically process a batch of invoices to extract invoice numbers, dates, and totals and compile them into a CSV.
  • Form Handling: Fillable form fields can be populated programmatically or annotated for manual review.

Quick Start

Run the provided Python scripts to extract text from a sample PDF, or fill form fields in a PDF using the field-values JSON and the fill scripts.

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 using Python?

To extract text and tables from PDF files using Python, you can use libraries like pypdf and pdfplumber to parse document content for downstream analytics. This approach automates data extraction from PDFs, replacing manual entry with reproducible scripts for batch workflows like invoice processing.

What is the best way to automate filling PDF form fields programmatically?

The best way to automate filling PDF form fields programmatically is using Python libraries like pypdf to populate fillable fields based on a JSON input. This allows you to batch process forms and apply programmatic annotations to PDF documents for manual review.

Can I merge and split PDF documents in a batch processing workflow?

Yes, you can merge and split PDF documents in a batch processing workflow using Python. By leveraging pypdf, you can automate the manipulation of multiple PDFs, allowing you to compile invoices or split large archival documents into reproducible outputs.

Do I need Python and specific libraries to parse and manipulate PDFs?

Yes, you need Python and libraries such as pypdf, pdf2image, and Pillow to parse and manipulate PDFs effectively. These dependencies are required to handle text extraction, form filling, and document creation within your automated batch workflows.

How does pypdf compare to other libraries for PDF data extraction and document automation?

Pypdf provides robust capabilities for PDF data extraction and document automation, specifically targeting text parsing, merging, and form handling. When combined with tools like pdfplumber for tables, it offers a comprehensive Python-based solution for contract digitization and archival tasks.

What are the limitations of using Python for PDF processing in contract digitization?

Limitations of using Python for PDF processing in contract digitization include potential parsing errors with complex, image-heavy layouts requiring pdf2image. Users should anticipate edge cases where standard text extraction fails, necessitating additional tooling like Pillow for image handling.