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
- ht426/skillseedtheir own version, first seen Jul 12, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 1
- ht426/skillseed★ 12same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository39 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- analyzing-changesSkill
- analyzing-securitySkill
- analyzing-spreadsheetsSkill
- applying-ui-design-systemSkill
- architecting-securitySkill
- automating-devopsSkill
- building-agent-systemsSkill
- checking-code-qualitySkill
- creating-presentationsSkill
- cultivating-personasSkill
- cultivating-skillsSkill
- defending-applicationsSkill
- designing-architecturesSkill
- designing-hardware-productsSkill
- detecting-and-respondingSkill
- developing-mobile-appsSkill
- developing-softwareSkill
- engineering-data-pipelinesSkill
- generating-docsSkill
- indexing-codeSkill
- backendSkill
- characterSkill
- doctrineSkill
- frontendSkill
- hardwareSkill
- loop-engineeringSkill
- methodsSkill
- mlSkill
- securitySkill
- operating-kicad-edaSkill
- orchestrating-adversarial-reviewsSkill
- processing-docxSkill
- provisioning-infrastructureSkill
- reducing-aigc-detectionSkill
- securing-cloud-and-supply-chainSkill
- securing-systemsSkill
- shipping-changesSkill
- verifying-modulesSkill
The file
Files
PDF Processing
Essential PDF operations using Python libraries and CLI tools.
Decision Matrix
| Task | Best Tool | Reference |
| Merge / split / metadata / rotate | pypdf | recipes.md |
| Extract text (layout preserved) | pdfplumber | recipes.md |
| Extract tables | pdfplumber | recipes.md |
| Create new PDF | reportlab | recipes.md |
| Batch CLI ops | qpdf / pdftk | recipes.md |
| OCR scanned PDFs | pytesseract + pdf2image | advanced.md |
| Add watermark / extract images / encrypt | pypdf / pdfimages | advanced.md |
| Fill PDF forms | pdf-lib / pypdf | FORMS.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
- Identify task — text extraction? table? creation? form? Pick row from matrix above.
- Load reference — recipes.md covers 90% of tasks; advanced.md for OCR / encrypt; FORMS.md for forms.
- Implement — copy-adapt recipe; verify output.
- Validate — open in a viewer or grep extracted text.
Library Selection
| Library | Use for |
| pypdf | Merge, split, metadata, encryption, rotation |
| pdfplumber | Text extraction with layout, tables |
| reportlab | Generate PDFs programmatically |
| pdf2image + pytesseract | OCR scanned documents |
| qpdf / pdftk (CLI) | Batch ops, no Python needed |
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
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.

