Major improvements to pdf text extraction