pdf

Extract text and tables from PDFs using Python libraries.

126|8|Updated Mar 10, 2026
One-click install
npx skills add https://github.com/DrugClaw/DrugClaw --skill pdf-drugclaw
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/DrugClaw/DrugClaw/tree/main/skills/built-in/pdf
Command: npx skills add https://github.com/DrugClaw/DrugClaw --skill pdf-drugclaw

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill addresses the common need to manipulate and extract information from PDF documents, which are often difficult to work with programmatically.

Core Features & Use Cases

  • Text Extraction: Extract text content from PDFs, preserving layout where possible.
  • Table Extraction: Identify and extract tabular data from PDF pages.
  • PDF Creation & Manipulation: Merge, split, rotate, and add watermarks to PDFs.
  • Form Filling: Programmatically fill out PDF forms.
  • OCR: Perform Optical Character Recognition on scanned PDFs to make them searchable.
  • Use Case: Automatically extract all tables from a research paper PDF and save them as an Excel file for further analysis.

Quick Start

Use the pdf skill to extract all text from the attached file 'report.pdf'.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract tables from a PDF and save them for analysis?

Table extraction from a PDF identifies tabular data on pages and retrieves it as structured datasets. This Skill uses pdfplumber to extract tables directly, allowing you to save the output as an Excel file for further analysis.

Can I perform OCR on scanned PDF documents to make them searchable?

Yes, OCR on scanned PDF documents converts images of text into searchable data. This Skill uses pytesseract and pdf2image to perform Optical Character Recognition, making previously scanned and unsearchable PDF content readable programmatically.

What is the best way to merge or split PDF files programmatically?

The best way to merge or split PDF files programmatically is using Python libraries that manipulate document structures. This Skill leverages pypdf and command-line tools like qpdf to seamlessly combine multiple documents or separate specific pages.

Does this approach support filling out PDF forms automatically?

Yes, filling out PDF forms automatically is supported. This Skill provides programmatic form filling capabilities, allowing you to populate PDF document fields dynamically without manual input.

Why does text extraction not work on my scanned PDF?

Text extraction fails on scanned PDFs because the content is embedded as images rather than selectable text. You must use the Skill's OCR functionality, powered by pytesseract and pdf2image, to process the scanned document before extracting the text.

Do I need Python libraries to create and add watermarks to PDFs?

Yes, you need Python libraries like reportlab and pypdf to create and add watermarks to PDFs. This Skill integrates these dependencies to programmatically generate new documents and overlay watermark elements onto existing pages.