PDF feature #1582
-
Does ripgrep search within PDFs? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 10 replies
-
You can use it to do a 'dumb' search of PDFs (the same way you'd search any other binary file) with the |
Beta Was this translation helpful? Give feedback.
-
Sorry to re-open: I just discovered https://github.com/phiresky/ripgrep-all. This function would do what |
Beta Was this translation helpful? Give feedback.
You can use it to do a 'dumb' search of PDFs (the same way you'd search any other binary file) with the
-a
option. If you want to search in a way that semi-respects the actual PDF format, you can use the--pre
option with something likepdftotext
. There's an example of that in the user guide