PDF text search problem in Preview for Mac OS Mojave

I have a Macbook Pro, and I just upgraded to Mac OS Mojave. I'm having trouble searching for text within PDFs using the Mojave version of Preview. When I used Preview before the upgrade to Mojave, I was able to search for text within PDFs (using the command-F function). Now, however, the PDF text search feature in Preview only seems to work with very few PDFs. The PDFs I'm trying to search within are definitely searchable PDFs, so this seems to be a glitch with the Mojave version of Preview. Any suggestions on what I can do?

MacBook Pro, macOS Mojave (10.14)

Posted on Sep 30, 2018 4:07 AM

Reply
Question marked as Top-ranking reply

Posted on Nov 15, 2018 6:18 AM

This bug drove me nuts! I fixed it by trying two things:


  • Switched off all markup extensions in system preferences. These features were added in the latest Mojave update, I thought they might be related somehow.
  • I found a folder called searchindexes and deleted its contents:

~▸ ⁨Library⁩ ▸ ⁨Containers⁩ ▸ ⁨com.apple.Preview⁩ ▸ ⁨Data⁩ ▸ ⁨Library⁩ ▸ ⁨Application Support⁩ ▸ ⁨Preview⁩ ▸ ⁨SearchIndexes⁩

The folder's size was about 200 mb in my case.


I think it was the second step that resolved the issue, so try that first. Test to see if everything is working properly before deleting the contents by emptying the trash.


I also tried reindexing spotlight, installing a beta version of Mojave, downgrading to a stable build again, copying the preview.app from an older system... nothing worked! I'm still having troubles with images not being displayed in some pdf's, very annoying. There's something seriously wrong with preview 10.1, hope they'll fix it!

Similar questions

23 replies

Dec 3, 2018 3:16 PM in response to dialabrain

I can confirm that too: just updated to macOS Mojave, unsearchable PDF [it was searchable in previous version] open in Preview, just closed it, reopened and search worked again. Thanks a lot for the trick, but Apple will have to solve this, opening/closing/reopening is not a solution for people that, like me, do work all day long doing searches inside PDFs.


Saluditos,


Ferrán.

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.

PDF text search problem in Preview for Mac OS Mojave

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