Build the Case4603.exe command line app using the supplied C# project sources.
Run the Case4603.exe app and it will read the supplied xlsx file and create the file output.xps
Open the generated output.xps file in VisualStudio and save out the obfuscated odttf file.
Use the supplied DeobfuscateODTTF command line app to create a ttf file.
Use the supplied TTFDump to dump the ttf file to create a text file.
Open the text file in a text editor.
The table at the head of the file looks like this:
0. 'head' - chksm = 0xF05C337C, off = 0x000000DC, len = 54 1. 'hhea' - chksm = 0x0DAD037C, off = 0x00000114, len = 36 2. 'maxp' - chksm = 0x125C2625, off = 0x00000138, len = 32 3. 'hmtx' - chksm = 0xE69D1658, off = 0x00000158, len = 236 4. 'fpgm' - chksm = 0xF6F64D0C, off = 0x00000244, len = 2330 5. 'prep' - chksm = 0x6BAF02FE, off = 0x00000B60, len = 9232 6. 'cvt ' - chksm = 0xB09BC4D2, off = 0x00002F70, len = 1308 7. 'loca' - chksm = 0x0007896C, off = 0x0000348C, len = 240 8. 'glyf' - chksm = 0x79B80997, off = 0x0000357C, len = 16888 9. 'OS/2' - chksm = 0xF9DDB6D7, off = 0x00007774, len = 96 10. 'name' - chksm = 0x2BB92698, off = 0x000077D4, len = 3411 11. 'cmap' - chksm = 0x0CD60E66, off = 0x00008528, len = 484 12. 'post' - chksm = 0xFF1B0086, off = 0x0000870C, len = 32
According to the TrueType specification, the tags should be ordered numerically ascending, so the correct order should be this:
9. 'OS/2' - chksm = 0xF9DDB6D7, off = 0x00007774, len = 96 11. 'cmap' - chksm = 0x0CD60E66, off = 0x00008528, len = 484 6. 'cvt ' - chksm = 0xB09BC4D2, off = 0x00002F70, len = 1308 4. 'fpgm' - chksm = 0xF6F64D0C, off = 0x00000244, len = 2330 8. 'glyf' - chksm = 0x79B80997, off = 0x0000357C, len = 16888 0. 'head' - chksm = 0xF05C337C, off = 0x000000DC, len = 54 1. 'hhea' - chksm = 0x0DAD037C, off = 0x00000114, len = 36 3. 'hmtx' - chksm = 0xE69D1658, off = 0x00000158, len = 236 7. 'loca' - chksm = 0x0007896C, off = 0x0000348C, len = 240 2. 'maxp' - chksm = 0x125C2625, off = 0x00000138, len = 32 10. 'name' - chksm = 0x2BB92698, off = 0x000077D4, len = 3411 12. 'post' - chksm = 0xFF1B0086, off = 0x0000870C, len = 32 5. 'prep' - chksm = 0x6BAF02FE, off = 0x00000B60, len = 9232
If you open the xps file using xpsrchvw.exe and print to the CutePDF driver, the text in the generated pdf is garbled. See CuteOutput.pdf. You get similar printout printing to the Ghostscript PDF driver or to Canon or HP drivers.
You can also open the xps file using Reader (part of Windows) and although the printout is better, it still misses part of the first line.
Summary - the obfuscated TrueType fonts in the xps are malformed.