pdf

Read, modify, and generate PDF documents using Python libraries.

288|42|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/shuyu-labs/WebCode --skill pdf-shuyu-labs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: pdf
Source: https://github.com/shuyu-labs/WebCode/tree/main/skills/claude/pdf
Command: npx skills add https://github.com/shuyu-labs/WebCode --skill pdf-shuyu-labs

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve?

PDF documents are pervasive but challenging to process programmatically. This Skill provides a comprehensive toolkit to automate PDF editing tasks, including reading, extracting text and tables, creating and merging documents, filling forms, and annotating outputs.

Core Features & Use Cases

  • Read and parse PDFs to extract text, tables, and metadata using Python libraries.
  • Merge, split, rotate, and annotate PDFs; fill out forms (fillable and non-fillable) and generate annotated outputs.
  • Extract structured data (tables) and export to usable formats for data pipelines and reporting.
  • Use cases span admin workflows, invoice processing, contract digitization, and archival/document management.

Quick Start

  • Install dependencies: pip install pypdf pdfplumber pdf2image Pillow
  • Extract form field information: python scripts/extract_form_field_info.py sample.pdf sample_fields.json
  • Fill a PDF form using the generated fields: python scripts/fill_fillable_fields.py sample.pdf sample_fields.json filled.pdf
  • Create an annotated PDF from fields: python scripts/fill_pdf_form_with_annotations.py sample.pdf sample_fields.json annotated.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 for data pipelines?

Merge, split, and rotate PDF documents programmatically using the pypdf Python library. This toolkit automates document assembly and archival by modifying page structures directly through Python scripts, streamlining admin workflows without manual editing.

How do I fill out PDF forms automatically using Python?

Extract structured data from PDF tables using the pdfplumber Python library to parse and export content into usable formats. This approach handles table extraction for data pipelines and reporting by rendering document structures programmatically.

Can I render and annotate PDFs using pdf2image and Pillow?

Fill out PDF forms automatically using Python by extracting field info with pypdf and mapping JSON data to fillable fields. This process generates completed annotated PDFs programmatically, streamlining form filling for admin and invoice workflows.

What is the best way to automate PDF document assembly and archival?

Render and annotate PDFs using pdf2image to convert pages to images and Pillow for visual modifications. This image-based processing approach supports generating annotated outputs for digitized contracts and archived documents within Python workflows.