You have a folder of 300 PDFs and need every page that mentions "termination for convenience". Opening them one by one is not an option. Here are three ways to do it on Windows, from free-and-scriptable to point-and-click.
Option 1: Adobe Reader's Advanced Search (free, slow)
Ctrl+Shift+F in Adobe Acrobat Reader lets you search all PDFs in a folder. It works, but it re-opens and scans every file each time, has no preview of the hit, and silently ignores scanned PDFs. Fine for 10 files; painful for 300.
Option 2: A 20-line Python script (free, fast, no UI)
PyMuPDF extracts the text layer quickly:
import fitz, os, sys folder, term = sys.argv[1], sys.argv[2].lower() for root, _, files in os.walk(folder): for name in files: if not name.lower().endswith(".pdf"): continue path = os.path.join(root, name) try: doc = fitz.open(path) pages = [i + 1 for i, page in enumerate(doc) if term in page.get_text().lower()] if pages: print(f"{path}: pages {pages}") except Exception as exc: print("skipped", path, exc) Install with pip install pymupdf, run python search.py C:\docs "termination". This is the approach I use under the hood in my desktop app.
Two caveats:
- It only reads the text layer. A scanned PDF has none, so it returns nothing — not even an error.
-
page.get_text()is fast, but a 300-page scan will still take a while to open.
Option 3: OCR the scans, then search
If your folder contains scans, you need OCR. The free route is ocrmypdf:
ocrmypdf --skip-text input.pdf output.pdf This adds a text layer permanently. For a few files it's great; for a whole archive it's a multi-hour batch job, and you may not need 90% of it.
What I ended up building
I do document review often enough that I wanted a GUI, so I built PDF Keyword Search (disclosure: my paid app, $19.90 one-time, Windows).
The design decision worth stealing: don't OCR everything up front. The fast pass searches text PDFs and lists skipped scans by count. You then OCR one specific file on demand with Windows' built-in OCR engine and see the matching page highlighted. You pay the OCR cost only for files that matter.
It also previews the page with the match highlighted, which the script above can't do.
Which should you use?
- One-off, text PDFs: Adobe's Advanced Search.
- Repeatable, text PDFs: the Python script.
- Mixed folders with scans, or you want a preview: OCR only what you need, either with ocrmypdf or a GUI tool.
If you write the script, keep two things in mind: search page text case-insensitively, and never trust a zero-result on a scanned file.
