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, i.e. performs a case-insensitive search, which is probably a good default.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.