Skip to main content
February 12, 2018
Question

Searching for strings in pdf

  • February 12, 2018
  • 1 reply
  • 273 views

I need to search many pdf's for a string and display the 5 lines after that string

Can I use a dos command in a script or is there a tool that will do this?

Thanks,

    This topic has been closed for replies.

    1 reply

    try67
    Community Expert
    Community Expert
    February 12, 2018

    You can use Reader to perform a search for the same string over multiple files, and it shows the immediate context in which it was found. Use the Advanced Search command for that.

    Showing exactly five lines of text is not possible with Reader, and would be difficult elsewhere, too. I've developed some stand-alone tools that can perform such a search and extract the surrounding context (including from a DOS command-line), so if you're interested feel free to contact me privately (try6767 at gmail.com) and we could discuss it further.