PDF text decoding for Type1 and Type2/CFF fonts