I have a pdf file with a custom encoding. Most of the characters have the same encoding as in utf8, so running pdftotext gives the correct result except for a few characters. I've tried to use the unicodeToUnicode option to define a map for those characters. Doing so the only output from pdftotext is exactly those characters specified in the map file everything else is converted to space. I could create a map-file containing all the characters in the document but I would rather have it so that the character codes not found in the map file where just interpreted as unicode, as with the default invocation of pdftotext.

I've tried to set mapUnknownCharNames to "yes", but that didn't change anything.

Any ideas would be highly appreciated!