Google uses the title metadata within the file and the anchor text of links pointing to the PDF file. Google recommends setting both.