pdf-reader
Skill33 starsChanged 12 months agoApache-2.0View on GitHub
WHAT: Read and extract content from PDF files — text, tables, and images. WHEN: the user asks about content in a PDF, mentions a .pdf file, or needs data extracted from technical documents, manuals, specifications, or reports. KEYWORDS: PDF, extract text, extract tables, extract images, pdf reader, document, datasheet, manual, specification, report.
8 other projects use a version of this.
Adopted by
Most recently taken up by
- drinkspiller/skillstheir own version, first seen Sep 16, 2026
- themusecatcher/ai-coding-kittheir own version, first seen Sep 15, 2026
- ziminglin895-del/claude-code-skillstheir own version, first seen Aug 12, 2026
- phanghonghao/THU-Awesome-Skillstheir own version, first seen Aug 10, 2026
- vichhka-git/pdf-reader-skillstheir own version, first seen Aug 5, 2026
- TimChang19980409/tim-agents-skillstheir own version, first seen Jul 11, 2026
Other versions8 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 8
- phanghonghao/THU-Awesome-Skills★ 8same name
- vichhka-git/pdf-reader-skills★ 4same name
- tunnckoCore/skills★ 2same name
- Damon-GSY/skills★ 1same name
- drinkspiller/skills★ 1same name
- themusecatcher/ai-coding-kit★ 1same name
- TimChang19980409/tim-agents-skills★ 1same name
- ziminglin895-del/claude-code-skills★ 0same 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 repository14 other files it gives its agents.
- algorithmic-artSkill
- brand-guidelinesSkill
- canvas-designSkill
- frontend-designSkill
- internal-commsSkill
- mcp-builderSkill
- skill-creatorSkill
- slack-gif-creatorSkill
- superimage-generatorSkill
- template-skillSkill
- theme-factorySkill
- webapp-testingSkill
- web-artifacts-builderSkill
- zip-handlerSkill
The file
We split this skill into the rules it gives an agent
7 rules. 0 are common, 1 is distinctive, and 6 are very specific to this project.
0
Common
Most of the 5 edited versions we read keep these.
1
Distinctive
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 29
Use --max-results 10 and --offset N for pagination.
- Very specific: line 38
Use --output file.txt to write to a file instead of stdout.
- Very specific: line 47
Use --output file.json for large results.
- Very specific: line 56
Use --list-only first to scan, then extract specific pages.
- Distinctive: line 65
Use when table extraction doesn't capture a complex layout correctly.
- Very specific: line 78
All scripts support --help for full usage details.
- Very specific: line 86
Use extract-structure.mjs to get raw positional data and analyze the layout from coordinates.
“Common” is measured: kept by at least 6 in 10 of the 5 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
PDF Reader
Extract text, tables, and images from any PDF using pdfjs-dist scripts. All extraction is deterministic — no artificial inference.
Workflow for Large Documents
For documents over ~20 pages, follow this sequence. For short documents, skip to step 3.
1. Understand the document
node scripts/get-info.mjs <pdf>Returns page count, metadata (title, author, dates), and table of contents.
2. Find relevant pages
node scripts/search-text.mjs <pdf> --query "search term"Searches all pages. Returns JSON array of matches with page numbers and context.
Use --max-results 10 and --offset N for pagination.
3. Extract text from targeted pages
node scripts/extract-text.mjs <pdf> --pages 1-5,10,20For large documents, --pages is required (unless --all is passed).
Use --output file.txt to write to a file instead of stdout.
4. Extract tables
node scripts/extract-tables.mjs <pdf> --page 20Detects tables by analyzing text positions. Supports --format markdown (default), csv, or json.
Use --output file.json for large results.
5. Extract images
node scripts/extract-images.mjs <pdf> --pages 1-30 --list-only
node scripts/extract-images.mjs <pdf> --page 5 --output-dir ./imagesUse --list-only first to scan, then extract specific pages. Saves images as PNG.
6. Raw structural analysis (advanced)
node scripts/extract-structure.mjs <pdf> --page 20Returns every text item with exact x/y coordinates, font info, and dimensions. Use when table extraction doesn't capture a complex layout correctly.
Quick Reference
| Task | Script | Key flags |
| Document info | get-info.mjs | |
| Search text | search-text.mjs | --query, --max-results, --offset |
| Extract text | extract-text.mjs | --pages, --all, --output |
| Extract tables | extract-tables.mjs | --page, --format, --output |
| Extract images | extract-images.mjs | --page, --output-dir, --list-only |
| Raw positions | extract-structure.mjs | --page, --output |
All scripts support --help for full usage details.
If text extraction returns empty results
The PDF may be scanned (image-only). Use extract-images.mjs to extract page images instead.
If table extraction misses a table
Use extract-structure.mjs to get raw positional data and analyze the layout from coordinates.
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.

