private void processToUnicode(){
PdfObject toUni = PdfReader.getPdfObjectRelease(fontDic.get(PdfName.TOUNICODE));
if (toUni instanceof PRStream){
try {
byte[] touni = PdfReader.getStreamBytes((PRStream)toUni);
CidLocationFromByte lb = new CidLocationFromByte(touni);
toUnicodeCmap = new CMapToUnicode();
CMapParserEx.parseCid("", toUnicodeCmap, lb);
uni2cid = toUnicodeCmap.createReverseMapping();
} catch (IOException e) {
toUnicodeCmap = null;