pdf

Extract text and tables from PDFs using Python libraries.

1|Updated Nov 4, 2025
One-click install
npx skills add https://github.com/ThomasRohde/strands-cli --skill pdf-thomasrohde
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/ThomasRohde/strands-cli/tree/main/examples/skills/pdf
Command: npx skills add https://github.com/ThomasRohde/strands-cli --skill pdf-thomasrohde

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solves? This Skill provides a comprehensive toolkit to automate all aspects of PDF document management, from extracting data and filling forms to creating and manipulating files. It eliminates manual, time-consuming PDF tasks, ensuring accuracy and efficiency in document workflows, allowing you to focus on higher-value work.

Core Features & Use Cases

  • Intelligent Form Filling: Programmatically fill both fillable and non-fillable PDF forms using visual analysis and bounding box validation.
  • Advanced Data Extraction: Extract text, structured tables, and even images from PDFs, including scanned documents via OCR.
  • Document Manipulation: Merge, split, rotate, watermark, and password-protect PDF files with ease.
  • Use Case: A legal team receives hundreds of contracts in PDF format that need specific fields updated and then merged into a single archive. This Skill can identify the fields, update them, and then merge all documents, saving days of manual effort and reducing errors.

Quick Start

Use the pdf skill to extract all text and tables from the attached file 'quarterly_report.pdf'. Then, create a new PDF document summarizing the extracted information.

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 programmatically?

Extract text and tables from PDFs using pdfplumber for structured data and pypdf for general text extraction. Both libraries parse content directly, supporting scanned documents via OCR integration for image-based PDFs.

Can I fill PDF forms automatically with Python?

Yes, pypdf and visual analysis techniques enable programmatic form filling for both fillable and non-fillable PDFs. Bounding box validation ensures accurate field placement and data mapping.

What's the best way to merge, split, and manipulate multiple PDF documents?

Use pypdf to merge, split, rotate, and password-protect PDFs at scale. reportlab complements this for creating new PDFs programmatically, enabling batch document processing workflows.

Does this support OCR for scanned or image-based PDFs?

Yes, pytesseract and pdf2image convert scanned PDFs to images and extract text via OCR. This handles both searchable and image-only documents in data extraction pipelines.

Can I automate PDF processing at scale for batch document workflows?

PDF automation handles batch processing and form-filling at scale across hundreds of documents. The toolkit supports validation workflows, metadata generation, and error-free bulk operations.

What are the limitations when working with complex or encrypted PDFs?

Password-protected PDFs require decryption before processing. Complex layouts may need visual bounding box analysis; some edge cases benefit from CLI tools like qpdf for additional control.