Results 1 to 8 of 8

Thread: Searching within pdf files from dash

  1. #1
    Join Date
    May 2011
    Beans
    32
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Searching within pdf files from dash

    I am just wondering if it is possible to search for words that are inside pdf files from the dash or some other location.

    If i can remember correctly this was enabled by default in OS X but on windows you had to download some special software from adobe.

    Is there something compatible available for Ubuntu?

  2. #2
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Searching within pdf files from dash

    Open to correction, I believe PDF cannot be searched directly.


    You could use something like pdftotext and search that if your desperate!
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  3. #3
    Join Date
    May 2011
    Beans
    32
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Searching within pdf files from dash

    Not really that desperate, but it is a useful feature, especially when you've got alot of big pdf documents.

    Does this mean that searching within files of any kind that contain text is not possible then?

  4. #4
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Searching within pdf files from dash

    Found an interesting post here with a couple of good recommendations


    One was doing pdf2text searching on the fly- Answer 12

    Or using the pdfgrep and the expression

    Code:
    find /path -iname '*.pdf' -exec pdfgrep pattern {} +
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  5. #5
    Join Date
    May 2011
    Beans
    32
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Searching within pdf files from dash

    Well pdfgrep did do the trick, that is it allowed me to search through multiple pdf files at once as well as displaying the text in the terminal output. So then i can identify the pdf file that contains the relevant information and open it. Thanks for unearthing that piece of information.

    Now if i could just get it to index the data so that searching doesn't take so long

  6. #6
    Join Date
    Oct 2008
    Location
    Ottawa, Canada
    Beans
    805
    Distro
    Xubuntu 14.04 Trusty Tahr

    Re: Searching within pdf files from dash

    There's a simple solution for you: Recoll. It will index and search PDF files as well as other documents for you. It's in the repos.

    If you add the Recoll PPA, you also get a lens for searching from within the Dash.
    http://www.lesbonscomptes.com/recoll/download.html

    Cheers!
    husband@wife$ make sandwich
    Permission denied
    husband@wife$ sudo make sandwich

  7. #7
    Join Date
    Nov 2006
    Location
    Craggy Island.
    Beans
    Hidden!
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Searching within pdf files from dash

    sweet
    You can tell a man who boozes by the company he chooses, as the pig got up and slowly walked away.

  8. #8
    Join Date
    May 2011
    Beans
    32
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Searching within pdf files from dash

    Thank you

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •