pdf

Extract text and tables from PDF documents using Python libraries.

Updated Feb 4, 2026
One-click install
npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill pdf-yuanshenjian-cn
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/yuanshenjian-cn/yuanshenjian-cn/tree/main/.opencode/skills/pdf
Command: npx skills add https://github.com/yuanshenjian-cn/yuanshenjian-cn --skill pdf-yuanshenjian-cn

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

This Skill automates the process of filling out PDF forms and extracting data from PDF documents, saving significant time and reducing manual effort.

Core Features & Use Cases

  • Fillable and Non-Fillable Forms: Handles both types of PDF forms, either by directly populating fields or by adding text annotations.
  • Text and Table Extraction: Extracts raw text and structured data from tables within PDFs.
  • PDF Creation and Manipulation: Supports creating new PDFs, merging, splitting, rotating, and watermarking documents.
  • Use Case: Automatically process a batch of scanned application forms by extracting text, filling in predefined fields, and saving the results as structured data.

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

You can extract text and tables from a PDF using Python libraries like pdfplumber and pypdf. This Skill leverages these dependencies to pull raw text and structured table data, enabling automated document processing for files like invoices.

Can I automate filling out both fillable and non-fillable PDF forms?

Yes, you can automate filling both fillable and non-fillable PDF forms. This Skill directly populates interactive form fields or overlays text annotations onto flat documents, streamlining batch processing of scanned application forms.

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

The best way to merge, split, or watermark PDFs is using a Python toolkit combining pypdf and reportlab. This Skill supports creating new PDFs and manipulating existing documents by rotating, merging, splitting, and applying watermarks programmatically.

Does this PDF processing approach support extracting text from scanned images?

Yes, extracting text from scanned PDF images is supported via pytesseract and pdf2image dependencies. These enable OCR capabilities, allowing the Skill to process scanned application forms and convert image-based documents into structured data.

Do I need to install command-line tools like qpdf and pdftotext to manipulate PDFs?

Yes, robust PDF manipulation requires command-line tools like qpdf and pdftotext alongside Python libraries. This Skill integrates these external tools with pypdf and pdfplumber to ensure comprehensive document processing and reliable text extraction.