This is a simple python script to edit the ToUnicode Cmap in a pdf file.
Read the explanation.
I wrote this script just for fun in a little slot of free-time. There are a lot of situations where the script won't work (for example if there are more than one ToUnicode Cmap or if there isn't anyone).