Usesumatrapdf-tool.exeor SumatraPDF.exe with the same arguments.
To search text in
file.pdf:sumatrapdf-tool grep -i foo file.pdf-i ignores case, so the search is case-insensitive, which is usually what you want.Other options:
-aignore accents (diacritics)
Search with a regular expression #
sumatrapdf-tool grep -i -G x.* file.pdf-Gspecifies that the search pattern is a regular expression-icombines it with the case-insensitive flagx.*is a regular expression that matches every string that starts withx
For all options, see sumatrapdf-tool grep.