I use Preview's Command-F (find) to search for C# in the pdf document. However, the result is not for 'C#', but just 'C': I get hundreds of meaningless search results.
How can I get the search result exactly for 'C#' or 'C++' in Preview?
I've not found a way to get Preview to search for characters like
+, but Skim, an alternative PDF viewer (homepage here), is a good replacement/addition to Preview and is able to search more specifically.
I've tested it and found it was able to find
C++ (without needing any quotes/special options) without bringing up all
It was also able to search specifically for accented characters (like
ö) — though requires such characters to be accented in the search to find them (i.e. you can't search for
blah and expect it to match
bläh, nor vice versa). In Preview, either search will return matches for both accented and unaccented characters.
You could just open the PDF in Safari. Safari has a more standard approach to searching PDFs -- it looks for exactly what you type. Preview used to behave this way, but somewhere around OS X 10.5, Apple tried to make it smarter, e.g., looking for pages that contain some or all of the words you type, instead of treating your words as a phrase. This new behavior in Preview is much less useful to me, but I don't know any way to turn it off. You can partly get around it by putting quotes around phrases, but I haven't found any way to get Preview to search for symbols, e.g., "C++".