What problem does it solve?
Scanned contracts, invoices, book pages, and screenshots contain text locked inside images that cannot be copied or edited. This Skill converts PDFs and image files into editable text, automatically detecting whether a PDF has a text layer or needs OCR.
Core Features & Use Cases
- Automatic Scan Detection: PDFs with a text layer are extracted directly; scanned PDFs with fewer than 20 characters of embedded text are routed to OCR automatically.
- Chinese and English OCR: Uses the built-in macOS Vision framework for accurate recognition of Simplified Chinese and English text, processed locally without uploading files.
- Batch and Markdown Output: Process entire directories of files into one output file, with an optional Markdown mode.
- Use Case: You receive a folder of scanned invoices as PDFs. Run the script on the directory to produce a single text file containing all invoice contents, ready for searching or data entry.
Quick Start
Use the doc-ocr skill to extract all text from the scanned contract.pdf file into an editable text file.