How can I cross reference a PDF ?

I have a list of about 22,000 names on a .pdf file (names of all officers in my department), and I have another list of 300 or so names on a .doc file. Is there anyway I can easily cross reference the two to see if there is any matches. For example, I want to see if "John Doe" from the "300" list is located on the "22,000" list. I tried to use search to highlight names but its just too many.

?2018-01-23T07:06:12Z

copy and paste both lists into Excel, then sort the list.