PDF OCR And Question Answering Based on The OCR Data

Hello all, I want to make a Rasa Chatbot which can take PDF as input and do OCR on it to extract useful information. After that we want bot will reply the question on the basis of extracted information. How can we do it in Rasa?