undo hack for OSX pdf, because it prevented text extraction from other pdfs