TheShadowCaster

Q: OS X Yosemite Preview search within PDF doesn't work

Hello guys, I'm currently having a big trouble with Preview application which seems to me, does not search through the PDF - it is just... not working.

Screenshot 2014-12-20 17.05.41.png

Is there any way to reinstall Preview App?

 

Thanks in advance.

MacBook Pro with Retina display, OS X Yosemite (10.10.1)

Posted on Dec 20, 2014 8:14 AM

Close

Q: OS X Yosemite Preview search within PDF doesn't work

  • All replies
  • Helpful answers

  • by Barney-15E,

    Barney-15E Barney-15E Dec 20, 2014 9:09 AM in response to TheShadowCaster
    Level 9 (50,871 points)
    Mac OS X
    Dec 20, 2014 9:09 AM in response to TheShadowCaster

    Are you sure there is actual text in that PDF. Some PDFs are just images of the text.

    Can you select lines of text in the document?

     

    Here is a PDF that definitely does have text, and my Preview searches fine: PDF "Dancing Links" - Dr. Donald Knuth, Stanford University ...

    Dancing Links.png

     

    You must reinstall the OS to reinstall Preview. However, programs just don't break like that, so reinstalling likely will do nothing to help you.

  • by TheShadowCaster,

    TheShadowCaster TheShadowCaster Dec 21, 2014 8:21 AM in response to Barney-15E
    Level 1 (0 points)
    Dec 21, 2014 8:21 AM in response to Barney-15E

    No, it's the same PDF generated from the original PostScript file from Knuth's website. So I have to backup my entire disc and reinstall the entire OS X? Wow, that kinda ... *****.

  • by Barney-15E,

    Barney-15E Barney-15E Dec 21, 2014 10:12 AM in response to TheShadowCaster
    Level 9 (50,871 points)
    Mac OS X
    Dec 21, 2014 10:12 AM in response to TheShadowCaster

    As I already stated, reinstalling Preview will likely not change a thing. Apps cannot be written to, so there is nothing that will cause them to "break" besides hard disk corruption.

     

    Something else is the problem. It could be with Spotlight. It could also be something else that may be corrected by an OS reinstall.

    I would reindex Spotlight before I reinstalled, but then that shouldn't take too much time, depending on your internet connection.

    http://support.apple.com/en-us/HT201716

     

    And, if you don't maintain current backups, creating one will take a bunch of extra time.

  • by TheShadowCaster,

    TheShadowCaster TheShadowCaster Dec 21, 2014 12:21 PM in response to Barney-15E
    Level 1 (0 points)
    Dec 21, 2014 12:21 PM in response to Barney-15E

    Well, when I was installing the final OSX Yosemite it got stuck so there might be some problem. However I don't know how to repair it.

  • by Barney-15E,

    Barney-15E Barney-15E Dec 21, 2014 4:07 PM in response to TheShadowCaster
    Level 9 (50,871 points)
    Mac OS X
    Dec 21, 2014 4:07 PM in response to TheShadowCaster

    If it got stuck during the install, then your problems may be related. If it was a problem with the recent update, you can try to install it again. Just download it from the Apple Downloads site: OS X Yosemite 10.10.1 Update

     

    If you mean the initial upgrade to Yosemite, then you will have to reinstall that from Recovery.

    OS X: About OS X Recovery - Apple Support

  • by TheShadowCaster,

    TheShadowCaster TheShadowCaster Dec 22, 2014 3:48 AM in response to Barney-15E
    Level 1 (0 points)
    Dec 22, 2014 3:48 AM in response to Barney-15E

    Nope, when I was updating from OS X Yosemite Beta to final version of OS X Yosemite.

  • by Barney-15E,

    Barney-15E Barney-15E Dec 24, 2014 6:09 AM in response to TheShadowCaster
    Level 9 (50,871 points)
    Mac OS X
    Dec 24, 2014 6:09 AM in response to TheShadowCaster

    I don't know if it will help, but I would try reinstalling Hhe OS.

  • by agreenberg19,

    agreenberg19 agreenberg19 Mar 6, 2015 8:27 AM in response to Barney-15E
    Level 1 (0 points)
    Mar 6, 2015 8:27 AM in response to Barney-15E

    I have the same problem; not being able to search in Preview.  I tested one writer's theory and it did not pan out:

     

    I opened a document in Preview, searched for a word that I could plainly see in the first paragraph.  It did not find the word.

    So I highlighted the word, right-clicked, selected copy, then pasted the word into the Notes app.

     

    So this document has text...because.....

     

    Then, using the Notes app, I searched for the word and found it.

     

    So text is not being found in Preview's Search function:

     

    OS X Yosemite 10.10.2 on a Mac Mini

     

    Discussion?  

     

    WAIT!!  

     

    After writing the above, I retested and now Preview IS finding text. 

     

    I don't understand this.  I did not reboot. 

  • by Hypnonotic,

    Hypnonotic Hypnonotic Apr 12, 2015 6:34 PM in response to agreenberg19
    Level 1 (0 points)
    Apr 12, 2015 6:34 PM in response to agreenberg19

    I am also having this problem. I'm not sure about other people, but for me it happens for documents individually. Once it starts happening for a document, it will always be broken for that document however searching other documents that it has not broken on works perfectly fine. I have noticed that it happens more often for larger documents (a few are 500+ pages), but in order for me to replicate the problem, I simply search the document roughly 5-6 times for different things. If I re-download the document it will be searchable while the one that I have already searched remains broken.

     

    I tried the spotlight reindex as well as restoring the file (File->Revert To->Browse All->The earliest version it goes to) and it still does not work.

     

    I don't have the option to reinstall OSX, and I doubt that's the problem anyway, I think it has something to do with Preview and large files being indexed or something of the sort.

     

    Can anyone else weigh in on the size of the files that you were having issues with?

     

    Edit: Problem happened on 10.10.1, 10.10.2 and it is still happening on 10.10.3, I never had this problem on Mountain Lion or Mavericks.

  • by pau|c,

    pau|c pau|c Dec 22, 2015 1:01 AM in response to Hypnonotic
    Level 1 (0 points)
    Dec 22, 2015 1:01 AM in response to Hypnonotic

    Similarly, since upgrading to El Capitan search in Preview works for some but not all documents. I typically use preview for reading books. Even when search does work, both of the Sort By buttons are highlighted - 'Search Rank' and 'Page Order' - which suggests that something else is not right. Combined with the fuzzy rendering in Preview in El Capitan, it's become unpleasant to use. I've switched to kamihq for reading PDFs and am largely happy with that.

  • by diverge,

    diverge diverge Jan 10, 2016 9:21 AM in response to pau|c
    Level 1 (5 points)
    Jan 10, 2016 9:21 AM in response to pau|c

    My wife has been having this issue with one of her PDF ebooks in Preview within El Capitan for weeks.  In my attempts to help her, my Google search led me here.  Here is the solution that worked for us:

     

    Learning above that Preview uses Spotlight indexes, and Spotlight indexes when a file is saved, I told her to simply re-save the file (she never makes changes to the PDF, so she had never done this).  We waited a few seconds, and searched again and voila, it worked!


    Incidentally, this file was downloaded using Dropbox and resides in her Dropbox.  When she first linked the shared folder, we moved the folder within her Dropbox, so perhaps we screwed up the indexing with this file movement, leading to this issue.  Whatever the case, it's fixed now.


    Hopefully this helps someone having similar issues.

  • by phunckman,

    phunckman phunckman Jan 20, 2016 1:38 PM in response to diverge
    Level 1 (0 points)
    Jan 20, 2016 1:38 PM in response to diverge

    A wholesale workaround appears to do something like compress all your pdfs into a single ZIP archive, delete the originals, unzip the archive and the "new" files are suddenly searchable again. I happen to have the majority of my pdfs in a single directory so this was easy, but it would be a lot better if it didn't happen. I do have other pdfs elsewhere. Are these indexed by spotlight? Annoying.

  • by kevin3141,

    kevin3141 kevin3141 Jan 22, 2016 4:45 PM in response to diverge
    Level 1 (0 points)
    Jan 22, 2016 4:45 PM in response to diverge

    Thanks for this post.  This helped me out.  I did a command-s and then suddenly search works again.

     

    I've always had search issues with Preview, though.  It's pretty pitiful.  It freaks when you put in some special characters, for one thing.