agentleFS
telagodtelagod/code-abyss/skills/processing-pdfs/SKILL.md

processing-pdfs

Skill242 starsChanged 5 months agoMITView on GitHub

Processes PDF files. Extracts text and tables, fills forms, merges and splits documents, batch-processes files, converts to images, and generates PDFs programmatically. Use when working with .pdf files. Do NOT use for Word documents, spreadsheets, or presentations.

1 other project uses a version of this.

Adopted by

Most recently taken up by

The file

Files
SKILL.md

PDF Processing

Essential PDF operations using Python libraries and CLI tools.

Decision Matrix

TaskBest ToolReference
Merge / split / metadata / rotatepypdfrecipes.md
Extract text (layout preserved)pdfplumberrecipes.md
Extract tablespdfplumberrecipes.md
Create new PDFreportlabrecipes.md
Batch CLI opsqpdf / pdftkrecipes.md
OCR scanned PDFspytesseract + pdf2imageadvanced.md
Add watermark / extract images / encryptpypdf / pdfimagesadvanced.md
Fill PDF formspdf-lib / pypdfFORMS.md
Advanced pypdfium2 / pdf-lib JS—REFERENCE.md

Quick Start

from pypdf import PdfReader
reader = PdfReader("document.pdf")
print(f"Pages: {len(reader.pages)}")
text = "".join(page.extract_text() for page in reader.pages)

Workflow

  1. Identify task — text extraction? table? creation? form? Pick row from matrix above.
  2. Load reference — recipes.md covers 90% of tasks; advanced.md for OCR / encrypt; FORMS.md for forms.
  3. Implement — copy-adapt recipe; verify output.
  4. Validate — open in a viewer or grep extracted text.

Library Selection

LibraryUse for
pypdfMerge, split, metadata, encryption, rotation
pdfplumberText extraction with layout, tables
reportlabGenerate PDFs programmatically
pdf2image + pytesseractOCR scanned documents
qpdf / pdftk (CLI)Batch ops, no Python needed

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.