pdf

Extract text and tables from PDFs using Python libraries and CLI tools.

2|Updated Nov 15, 2025
One-click install
npx skills add https://github.com/dakesan/hiro-favorite-skills --skill pdf-dakesan
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/dakesan/hiro-favorite-skills/tree/main/skills/pdf
Command: npx skills add https://github.com/dakesan/hiro-favorite-skills --skill pdf-dakesan

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, reportlab, pytesseract, pdf2image, poppler-utils, qpdf, and includes scripts (resource) and 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. It provides a comprehensive toolkit to programmatically process, generate, and analyze PDF documents at scale, saving countless hours of repetitive effort.

Core Features & Use Cases

  • Automated Form Filling: Programmatically fill both fillable and non-fillable PDF forms using precise bounding box detection.
  • Data Extraction: Extract text with layout, structured tables, and metadata from any PDF document.
  • Document Manipulation: Merge, split, rotate pages, add watermarks, and password-protect PDFs.
  • Use Case: You have 100 job application forms in PDF format, some fillable, some not. Use this Skill to automatically extract applicant names and contact info, then fill in standard fields like "Date Received" and "Application Status" across all documents.

Quick Start

Use the pdf skill to extract all text from the attached file 'invoice-q3.pdf'.

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

Extract text and tables from PDFs using pdfplumber for layout-preserving text and structured table parsing, or pypdf for text-only extraction. Both libraries support batch processing of multiple documents and return data you can export to CSV or JSON formats.

Can I automatically fill PDF forms with data?

Yes, this Skill fills both fillable and non-fillable PDF forms programmatically using precise bounding box detection. Automate form completion across batches of documents by mapping your data to form fields and generating filled PDFs at scale.

What's the best way to merge, split, and rotate PDF pages?

Merge multiple PDFs into one document, split by page ranges, and rotate pages using pypdf and qpdf. These operations support batch workflows, letting you reorganize document collections and extract specific pages without manual handling.

Does this work for extracting data from scanned PDFs or images?

Yes, for scanned PDFs use pytesseract with pdf2image to convert pages to images and apply OCR text recognition. This Skill supports both digital PDFs and image-based documents, though OCR accuracy depends on scan quality and language.

Can I add watermarks or password-protect PDFs in batch operations?

Add watermarks and apply password protection to PDFs using reportlab and pypdf. These document security and branding features work in batch scripts, letting you protect or mark large document collections with a single command.

What dependencies do I need to run PDF automation workflows?

Core dependencies are pypdf, pdfplumber, and reportlab for Python; qpdf for command-line operations; pytesseract for OCR; and pdf2image with poppler-utils for image conversion. Verify poppler-utils is installed on your system for image processing.