Extraction of text from PDF

sir i dont have axactly idea what should i do to acomplush task, for example extracting text in formatted condition