This is an edited version of the pdfminer project, unlike the pdfminer project this outputs to a text file.