Small search bug in Preview for Snow Leopard

When you look for a specific dollar amount in a PDF document, Preview in Snow Leopard will not only locate the search query but will also find irrelevant search results.

There is a small bug in Snow Leopard's Preview application that has to do with the search features of the program when finding text in PDF documents. When you look for a specific dollar amount in the PDF document, it will not only locate the search query but will also find irrelevant search results.

This bug was brought to my attention by CNET Forums poster "scotty321--2008", who outlined steps to reproduce it:

  1. Generate a PDF document with dollar amounts in it (use any text editor and use the Print as PDF feature).

  2. Open the PDF in preview.

  3. Do a search for a dollar amount where the number either before or after the period exists in the document.

Here are some search results for a PDF I generated, which demonstrate this bug:

Searching for 50.53 gives both "50" and "53"
Searching for "50.00" shows any instance of "00"
Searching just for "00", however, shows an appropriate result of all instances of "00"

This behavior seems to be from the program treating periods as separators for search queries, instead of using them in the search results. As such, in the PDF shown if you search for "50.00", Preview will display any instance of "50" and "00".

A fix for this bug will require Apple to address it in an update, but you can help them be aware of it by submitting a bug report here (requires an ADC membership, which is free): https://bugreport.apple.com/

Alternatively, you can submit feedback at Apple's OS X feedback page (Select "Applications/Utilities" as the feedback area): http://www.apple.com/feedback/macosx.html



Questions? Comments? Post them below or email us!
Be sure to check us out on Twitter and the CNET Mac forums.

Featured Video
6
This content is rated TV-MA, and is for viewers 18 years or older. Are you of age?
Sorry, you are not old enough to view this content.

The problem with Amazon Dash buttons

Limits on choice mean new shopping gadget won't click for everyone. Bridget Carey explains how the buttons work, and the rule changes for sharing your Prime perks with others.

by Bridget Carey