Extract structured data from PDF documents using OCR and pattern matching.
Scanned 9/3/2026
Install to Claude Code
npx -y skills add mediar-ai/skillhubz --skill pdf-data-extractor --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Pdf Data Extractor?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/mediar-ai-pdf-data-extractor)More formats (shields.io, HTML) on the badges page.
# PDF Data Extractor
Extract structured data from PDF documents using OCR and pattern matching.
## Prerequisites
- Chrome browser installed
- PDF file accessible locally or via URL
## Instructions
1. Open Chrome and navigate to the PDF file:
- If local file: use `file:///path/to/document.pdf`
- If URL: navigate directly to the PDF URL
2. Wait for the PDF to fully load in Chrome's PDF viewer:
- Confirm the page count is visible
- Confirm text is selectable (if not scanned)
3. Use Chrome DevTools to extract text content:
- Press F12 to open DevTools
- Go to Console tab
- For each page, extract visible text
4. For scanned PDFs without selectable text:
- Take a screenshot of each page
- Use OCR to extract text from screenshots
- Clean up OCR results for accuracy
5. Parse extracted text for structured data:
- Look for key-value patterns (e.g., "Name: John Doe")
- Identify tables by detecting aligned columns
- Extract dates, amounts, and other formatted data
6. Output the extracted data in requested format:
- JSON for structured data
- CSV for tabular data
- Plain text for unstructured content
## Error Handling
- If PDF is password protected, inform user and request password
- If OCR quality is poor, suggest higher resolution scan
- If PDF has complex layouts, process page by page manually
## Notes
- Works best with text-based PDFs
- Scanned documents require OCR and may have lower accuracy
- For invoices and receipts, consider the `invoice-parser` skill
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!