How to search for text in many PDFs at once

The short answer

Your computer's search can look inside every PDF that contains real text. A scanned PDF is a picture of a page, so its words have to be recognised first (OCR) before any search can find them.

Is it text or a scan?

Open the PDF and try to select a word. If you can highlight single words, it has text. If the whole page selects like a picture, or nothing does, it's a scan.

On a Mac

  1. Press ⌘ Space and type the words. Spotlight reads the text in PDFs.
  2. To search one folder from Terminal:
mdfind -onlyin ~/Documents "purchase order 4471"

On Windows

  1. In File Explorer, open the folder and type content:"purchase order" ext:.pdf.

No results? Windows may not be indexing what’s inside PDFs: check its PDF filter.

Scanned PDFs

A PDF editor can recognise the text and save a searchable copy, one file at a time. On Windows, Truffle recognises the words on scanned pages while it reads your files (the first 8 pages of each scan), so the scans become searchable without new copies. On a Mac it does not read scanned PDFs yet.

Truffle's viewer showing page 1 of 6 of “Lease — 14 Elm St, signed.pdf”, with the words of the search marked on the page and “Match 1 of 6” in the pager.
Truffle opens the PDF at the page that matched, with the words lit.

Free. Your files are searched on your own computer, not uploaded to us.

Apple, Mac, macOS, Finder and Spotlight are trademarks of Apple Inc., registered in the U.S. and other countries and regions. Windows and File Explorer are trademarks of the Microsoft group of companies. PageDuo is not affiliated with, endorsed or sponsored by Apple or Microsoft.