The PDF-file rotisfonts.pdf is using the fonts RotisSerif and RotisSansSerif. To succeed in viewing or converting the PDF, I got the TrueType-fonts Rb.ttf and Rg.ttf from my customer and I inserted two definitions for this fonts in cidfmap ( see attachement ). The PDF-file can now be rendered, but the texts in the rectangles on the right side of the page have a wrong encoding. When viewing the PDF-file with the AcrobatReader, you can see the correct text. Is there an error in the Ghostscript or are my changes in cidfmap not correct.
Created attachment 5019 [details] rotisfonts.pdf
Created attachment 5020 [details] cidfmap
Created attachment 5021 [details] Rb.ttf
Created attachment 5022 [details] Rg.ttf
PDF interpreter can already load embedded TTF fonts and does it well. When we have the right font we need to use it directly, like an embedded font and drop Decoding resources and all associated cruft. I've tested this approach and it works fine for the sample file. We just need to figure out what TTF or OTF fonts are available.
If the location of the .ttf fonts is identified with -sFONTPATH, and _IF_ the names in the ttf fonts MATCH the name given in the PDF, then GS will automatically load the TTF fonts. If the names don't match, then an alias may need to be added to the Fontmap.
The Ghostscipt finds the TTF-fonts, but the enconding is not correct! When I use the attached file cidfmap, the Ghostscript is showing the messages: "Loading a TT font from Rg.ttf to emulate a CID font RotisSerif ... Done" "Loading a TT font from Rb.ttf to emulate a CID font RotisSansSerif ... Done" But the text, which is produced ist not correct. You can see this in the rectangle in the upper right corner of the picture. There should be text "siehe BBN 11-0009".
*** This bug has been marked as a duplicate of 688515 ***
Changing customer bugs that have been resolved more than a year ago to closed.