Parse PDF into formatted text file