Everywhere All articles Download

Finding specific things

Full-text PDF search

Updated 2026-07-31 · 4 min read

A folder of a hundred PDFs and a phrase you remember — three tools, depending on whether the PDFs have real text.

Spotlight (has the text already)

PDFs with a text layer are content-indexed:

mdfind -onlyin ~/Documents/Papers "tidal subsidy"

Instant, because the text is in the index. Works for born-digital PDFs and OCR'd scans; fails silently on image-only scans.

pdfgrep (searches on demand)

brew install pdfgrep
pdfgrep -r "tidal subsidy" ~/Documents/Papers
pdfgrep -r -n "clause 7" .          # -n shows page numbers
pdfgrep -r -i -C 2 "indemnity"      # case-insensitive, 2 lines context

Slower than Spotlight (it reads each file) but needs no index and shows page numbers — better for "which page in which contract".

Checking whether a PDF has searchable text

mdimport -d2 -t scan.pdf | grep kMDItemTextContent | head

Empty means image-only — nothing to search until OCR.

OCR for scans

brew install ocrmypdf
ocrmypdf scan.pdf scan-searchable.pdf

Adds an invisible text layer over the images, leaving the pages looking identical but now searchable by every tool above. Batch a folder:

for f in *.pdf; do ocrmypdf --skip-text "$f" "ocr/$f"; done

--skip-text leaves already-text PDFs alone.

The workflow

For a research or contract archive: OCR everything once (so scans join the searchable set), then rely on Spotlight's content index for instant lookup, with pdfgrep as the page-precise fallback. That combination makes a decade of PDFs answer "which one said this" in seconds.

Common questions

How do I search text inside PDFs on a Mac?

Spotlight/mdfind for PDFs with a text layer; pdfgrep for on-demand search with page numbers. Image-only scans need OCR first.

How do I make a scanned PDF searchable?

ocrmypdf adds an invisible text layer: ocrmypdf scan.pdf out.pdf. Every search tool then finds its text.

Find any file before you finish typing

Everywhere keeps track of every file on your Mac — including the folders Spotlight hides and drives you have unplugged. Free for a day, then $19 once.

Download for Mac

Related

© 2026 Caretopia Network Private Limited Everywhere for Mac Articles Privacy Support