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.

User uploaded file

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

Reply
16 replies

Dec 21, 2017 7:33 AM in response to TheShadowCaster

Same problem with Sierra, but the problem is intermittent. I'm running OS 10.12.6 on a 2017 27" iMac I bought new 2 months ago. Right now, I can't get Preview to find a single word in any of my PDFs. But tomorrow, the situation will likely change, whether I restart my iMac or not, and whether I restart Preview or not. It seems to be completely random. I have been using Macs every day since 1987, by the way, so I know I'm not doing anything wrong.

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 ...

User uploaded file


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.

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.

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

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.

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.

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.

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.

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.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

OS X Yosemite Preview search within PDF doesn't work

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.