pdf

Extract text, tables, and modify PDF documents automatically.

4|Updated Jan 30, 2026
One-click install
npx skills add https://github.com/Xueheng-Li/ai-tools-installation --skill pdf-xueheng-li
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/Xueheng-Li/ai-tools-installation/tree/main/recommended_skills/pdf
Command: npx skills add https://github.com/Xueheng-Li/ai-tools-installation --skill pdf-xueheng-li

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

Manual handling of PDF documents—extracting text, merging, splitting, rotating, watermarking, or filling forms—is time‑consuming and error‑prone.

Core Features & Use Cases

  • Comprehensive PDF Manipulation: Merge, split, rotate pages, add watermarks, and create new PDFs using Python libraries and command‑line tools.
  • Data Extraction: Pull plain text, tables, images, and OCR scanned pages into usable formats.
  • Form Automation: Fill both fillable and non‑fillable PDF forms through structured JSON specifications.
  • Use Case: Quickly process a batch of invoices to extract amounts, dates, and vendor names, then compile the data into a CSV file.

Quick Start

Ask the pdf skill to extract all text from the file 'report.pdf' and save it as 'report.txt'.

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

You can extract text and tables from a PDF automatically by applying Python libraries like pdfplumber and pypdf combined with command-line tools such as pdftotext. This approach reads document pages and pulls plain text and tabular data into usable formats without manual intervention.

Can I fill both fillable and non-fillable PDF forms using Python?

Yes, you can fill both fillable and non-fillable PDF forms using Python by providing structured JSON specifications. The Skill applies these JSON mappings to automate form filling, modifying the PDF document automatically without manual data entry.

Does PDF extraction work with scanned documents on macOS?

PDF extraction works with scanned documents on macOS by applying OCR capabilities. The Skill uses pdf2image and Pillow to render scanned pages into images, then applies OCR to pull the text into editable formats for document processing tasks.

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

The best way to merge, split, and rotate PDF pages is using Python libraries like pypdf and command-line tools such as qpdf. This Skill manipulates PDF documents automatically, allowing you to restructure pages and create new PDFs without manual intervention.

Do I need to install reportlab and qpdf to create and modify PDFs?

Yes, you need Python libraries like reportlab and pypdf plus command-line tools including qpdf and pdfimages installed on macOS. These dependencies are required to read, modify, and render PDFs automatically for tasks like invoice digitization and report generation.

Why does my PDF table extraction return misaligned data?

PDF table extraction may return misaligned data when scanned pages are processed without OCR or when complex table borders confuse pdfplumber. Applying OCR first to convert scanned images to text, then using pdfplumber, helps pull structured tabular data accurately into usable formats.