pdf-official

Extract, merge, split, create, and fill PDF documents using Python libraries and command-line tools.

Updated Aug 19, 2026
One-click install
npx skills add https://github.com/nperepichka/Antigravity --skill pdf-official-nperepichka
Or copy as Structured Prompt for Agent▼
Please help me install this Agent Skill.
Skill: pdf-official
Source: https://github.com/nperepichka/Antigravity/tree/main/config/skills/pdf-official
Command: npx skills add https://github.com/nperepichka/Antigravity --skill pdf-official-nperepichka

SYSTEM DOCUMENTATION & REQUIREMENTS

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

What problem does it solve? Working with PDF files programmatically is fragmented across many libraries and tools, making it hard to know which approach to use for extracting text, merging documents, or filling forms. This Skill consolidates proven PDF manipulation techniques into one operational guide with ready-to-run scripts. ## Core Features & Use Cases - Text and Table Extraction: Pull text and structured tables from PDFs using pypdf, pdfplumber, and pdftotext, including OCR support for scanned documents. - Document Manipulation: Merge, split, rotate, encrypt, watermark, and create PDFs with pypdf, reportlab, and qpdf. - PDF Form Filling: A rigorous step-by-step workflow for both fillable forms (field extraction and validation) and non-fillable forms (visual bounding-box analysis with validation images). - Use Case: You receive a stack of non-fillable PDF application forms. The Skill converts pages to images, guides bounding-box annotation, validates the layout, and produces accurately filled PDFs. ## Quick Start Use the pdf skill to extract all tables from the attached report.pdf and save them to an Excel file.

Frequently Asked Questions about pdf-official

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

FAQPage Schema
How do I extract tables from a PDF in Python?▼

Use pdfplumber's page.extract_tables() method to detect and extract tables from each page. The results can be loaded into pandas DataFrames and exported to Excel or CSV for further analysis.

How do I fill out a PDF form programmatically?▼

First run check_fillable_fields.py to detect fillable fields. For fillable PDFs, extract field info to JSON and use fill_fillable_fields.py; for non-fillable PDFs, define bounding boxes in fields.json and add text annotations.

Which Python library should I use for PDF processing?▼

Use pypdf for merging, splitting, and metadata; pdfplumber for text and table extraction; reportlab for creating new PDFs; and pypdfium2 for fast page rendering. Command-line tools like qpdf handle batch operations efficiently.

Can I extract text from a scanned PDF?▼

Scanned PDFs contain images rather than text layers, so standard extraction fails. Convert pages to images with pdf2image, then run OCR with pytesseract to recover the text content.

Why does my filled PDF form not display values correctly?▼

Some PDF viewers need the NeedAppearances flag set to render form values properly. The fill_fillable_fields.py script calls set_need_appearances_writer(True) to address this, though viewers may show a save-changes dialog.