pdf

Extract text and tables from PDFs and fill forms via annotations.

783|65|Updated Feb 27, 2026
One-click install
npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill pdf-leonchaox
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/LeonChaoX/qinyan-academic-skills/tree/main/skills/14-%E6%96%87%E6%A1%A3%E5%A4%84%E7%90%86%E4%B8%8E%E6%95%B0%E6%8D%AE%E5%B7%A5%E5%85%B7/pdf
Command: npx skills add https://github.com/LeonChaoX/qinyan-academic-skills --skill pdf-leonchaox

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, pdf2image, PIL, pytesseract, ImageMagick, reportlab, qpdf, poppler-utils, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill solves the problem of manually handling complex PDF workflows—such as extracting text/tables, processing scanned documents with OCR, filling forms, and generating or transforming PDFs.

Core Features & Use Cases

  • PDF text and table extraction: Pull readable text and structured tables from PDFs for analysis and downstream writing.
  • Scanned PDF OCR workflows: Convert scanned pages to images and extract text via OCR when the PDF has no reliable text layer.
  • End-to-end PDF form handling: Detect whether a PDF is fillable, fill AcroForm fields, or add precise text annotations for non-fillable forms.
  • Common PDF transformations: Merge/split PDFs, rotate pages, add watermarks, extract images, and apply encryption/decryption.

Quick Start

Ask the skill to fill your PDF form by first detecting fillable fields, then generating the correct bounding boxes, and finally producing a filled output PDF from your provided values.

Frequently Asked Questions about pdf

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

FAQPage Schema
How do I extract text from a scanned PDF that has no selectable text layer?

To extract text from scanned PDFs without a text layer, OCR workflows convert PDF pages to images using pdf2image and then apply pytesseract to extract readable text. This handles scanned-document digitization reliably when native text extraction fails.

What's the best way to automate filling non-fillable PDF forms?

Automating non-fillable PDF forms requires adding precise text annotations using accurate coordinate-based positioning and bounding box validation. This approach places text directly onto the document without relying on native AcroForm fields to generate completed outputs.

Does this PDF processing approach support extracting structured tables alongside text?

Yes, PDF table extraction is fully supported alongside standard text extraction. It pulls readable text and structured tables from documents simultaneously, providing structured data outputs ready for downstream analysis and writing workflows.

How do I handle PDF coordinate transformations when placing annotations or validating bounding boxes?

Handling PDF coordinate transformations requires accurately mapping image and document coordinate systems to position annotations correctly. The workflow validates bounding boxes and field IDs to ensure deterministic text placement on targeted document pages.

Can I merge, split, and rotate PDF pages in batch operations using Python?

Yes, common PDF transformations like merging, splitting, and rotating pages are supported via Python and command-line tools. These batch page operations allow deterministic document manipulation across multiple files with reliable outputs.

Do I need ImageMagick and poppler-utils installed to run OCR on PDFs?

Yes, ImageMagick and poppler-utils are required dependencies for PDF OCR workflows. They provide the underlying image conversion and rendering infrastructure needed by pdf2image to convert PDF pages into images for pytesseract text extraction.