pdf

Extract text and tables from PDF documents using Python libraries.

1|Updated Aug 6, 2025
One-click install
npx skills add https://github.com/tkhongsap/ai-dev-workflow --skill pdf-tkhongsap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/tkhongsap/ai-dev-workflow/tree/main/.claude/skills/pdf
Command: npx skills add https://github.com/tkhongsap/ai-dev-workflow --skill pdf-tkhongsap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pytesseract, pdf2image, and includes references (resource) components.

What problem does it solve? This Skill eliminates the tedious manual work of filling out PDF forms and extracting data from documents, saving you hours of repetitive effort and ensuring accuracy in document processing.

Core Features & Use Cases:

  • Automated Form Filling: Programmatically fill PDF forms, including complex interactive fields.
  • Advanced Data Extraction: Extract text, tables, and metadata from any PDF, even scanned documents using OCR.
  • Document Manipulation: Merge, split, rotate, watermark, and password-protect PDF files.
  • Use Case: Automatically process a batch of scanned legal contracts, extract key clauses and dates into a spreadsheet, and then merge them into a single, searchable PDF archive.

Quick Start: Use the pdf skill to extract all text and tables from the attached file 'annual_report_2023.pdf' and save the tables to an Excel file.

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 documents automatically?

Text and table extraction from PDFs uses pdfplumber and pytesseract libraries to read content and perform OCR on scanned documents. The extraction preserves layout and handles complex table structures, outputting structured data you can save to spreadsheets or databases for further analysis.

Can I programmatically fill PDF forms with data?

Yes, pypdf and reportlab enable automated form filling by mapping data fields to interactive PDF forms. This lets you batch-process hundreds of forms without manual entry, ensuring consistency and reducing errors in document workflows.

What's the best way to merge, split, and reorganize multiple PDF files?

pypdf and qpdf handle merging, splitting, and rotating pages across large PDF collections. You can combine documents into single archives, extract specific pages, and apply transformations like watermarking or page rotation in batch operations.

How do I process scanned PDFs and extract data when text isn't selectable?

Pytesseract performs OCR on scanned PDF images to convert unselectable text into extractable content. Combined with pdf2image conversion, it enables data extraction from paper documents and legacy scans in enterprise batch workflows.

Can I add security like password protection and metadata management to PDFs?

pypdf supports password protection, metadata modification, and basic security tasks on PDF files. You can encrypt documents, embed metadata, and protect sensitive content before archiving or distributing files.

Does this work for processing large batches of PDFs in production pipelines?

Yes, the Skill handles batch processing of large PDF collections and integrates into enterprise data extraction pipelines. It scales for high-volume document processing with automated workflows using Python libraries and CLI tools.