Extract txt from a pdf file containing scanned pages