pdf

Extracts and manipulates text, tables, images, and forms in PDF documents.

199|41|Updated Oct 25, 2020
One-click install
npx skills add https://github.com/rvdbreemen/OTGW-firmware --skill pdf-rvdbreemen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/rvdbreemen/OTGW-firmware/tree/main/.github/skills/pdf
Command: npx skills add https://github.com/rvdbreemen/OTGW-firmware --skill pdf-rvdbreemen

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill removes the manual burden of working with PDFs by enabling automated extraction, transformation, and form filling workflows.

Core Features & Use Cases

  • Text and table extraction from PDFs (including layout-aware extraction) for turning documents into usable data.
  • PDF transformations such as merging, splitting, rotating, watermarking, encrypting/decrypting, and extracting embedded images.
  • Form handling for both fillable PDFs and non-fillable PDFs via scripted coordinate/annotation workflows; for example, you can take a scanned application form PDF, OCR/search it, and then place answers into the correct locations.

Quick Start

Ask the pdf skill to extract text from invoice-q3.pdf and return the extracted content page-by-page.

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 a PDF document?

To extract text and tables from a PDF, this Skill uses pdfplumber and pypdf to perform layout-aware extraction. This process transforms static document content into usable structured data for downstream workflows.

Can I fill out a non-fillable PDF form using coordinates?

Yes, you can fill non-fillable PDF forms by using scripted coordinate annotations. This allows you to place text precisely onto scanned applications or static documents even without interactive form fields.

Does this approach support OCR for scanned PDF documents?

Yes, OCR for scanned PDF documents is supported using pytesseract and pdf2image. This renders scanned pages to images and applies optical character recognition to produce usable extracted text.

What is the best way to merge, split, and watermark PDF files?

The best way to merge, split, and watermark PDF files is through automated PDF transformations using pypdf. This handles document manipulation like rotating and encrypting while producing a modified PDF output.

Do I need Python libraries like pandas and numpy for PDF table extraction?

Yes, you need Python libraries like pandas and numpy installed because they support structured PDF table extraction. These dependencies enable the conversion of extracted tabular data into analyzable dataframes.

Why does text extraction fail on my scanned PDF without OCR?

Text extraction fails on scanned PDFs without OCR because scanned documents contain images rather than embedded text. You must use the integrated pytesseract and pdf2image OCR workflow to process them.