Arrk interview question

How to write Xpath? How to crawl PDF Files?