(Funnily, Ghostscript chokes on page 2; Acrobat Reader also choked, but offered to download and install an additional Asian font, not naming it, but saying it was 'to support traditional Chinese'. After installing it, Acrobat Reader however does not show a single chinese glyph on page 2! In Mac OS, you may not be able to open a PDF document created in. Adobe® Acrobat® Reader 4.0 If Download Asian Fonts is not selected, the PDF document prints correctly. Fonts are available for Chinese Traditional, Chinese Simplified, Japanese, and Korean languages.
I tried
but I get the ff. output from Ghostscript on the page where the Chinese font is used.
It's obvious that Ghostscript's encoding is non-Unicode because it got garbage (/·s²Ó©úÅé) when it read the font name which is in Chinese. Here is a screen shot of the Chinese fonts used as listed by Adobe Reader 9.
Makoto2 Answers
Interesting problem.
However, it's not necessarily Ghostscript's fault here, that you only see /·s²Ó©úÅé.
From your command, I see you was using Ghostscript on Windows, inside a cmd.exe shell window. And it is cmd.exe which may not be able to display properly what Ghostscript asks it to display. This could have two separate reasons (or both at the same time)
- the 'codepage' your cmd.exe window uses cannot handle CID or Unicode characters/glyphs.
- the font used by your cmd.exe does not contain and therefore cannot handle CID/Unicode glyphs.
You should query your cmd.exe window first, which 'codepage' it uses. Type:
and see if it is anything that can NOT display multi-byte characters and glyphs (like 'codepage 850').
If so, try to change your codepage in your current cmd.exe window, using this command:
or
This should switch you to Unicode (65001 UTF-8-Unicode; 65000 UTF-7-Unicode). If you did so, you also have to make sure that the font used in your cmd.exe window can display all (most) of the glyphs in question: therefore you should go into the settings of the cmd.exe window (click the top left corner icon of window title bar) and change the font to 'Lucida Console'.
Here are a few more codepage numbers which may help you:
But note, you may not be able to switch to these codepages, unless your computer is installed with Japanese/Chinese/Korean language support.
See also here:
Having said all this above, this may still not solve your problem. Ghostscript may still show the same error, because it is not finding the font it wants to use (CID font resource/Adobe-CNS1) in place of ·s²Ó©úÅé. But at least you would understand better, which font it wants to replace. Your console would display the same asian glyphs as your Adobe Reader screenshot shows... ;-)
Kurt Pfeifle
Kurt PfeifleChry Cheng: I'm still trying to find a solution to your problem with Ghostscript, but I didn't have time to do the required research yet...
I don't know if you must use Ghostscript for some reason. But if not, here is another option: MuPDF. Brought to you by artofcode LLC & Artifex Inc. -- the same people that develop Ghostscript.
And MuPDF didn't have any problem for me to render your example file! (Funnily, Ghostscript chokes on page 2; Acrobat Reader also choked, but offered to download and install an additional Asian font, not naming it, but saying it was 'to support traditional Chinese'. After installing it, Acrobat Reader however does not show a single chinese glyph on page 2!)
MuPDF:
- Open Source;
- multiplatform (Windows, Mac OS X, Unix, ...soon maybe Android, iPhone too?);
- very lightweight (see screenshots below);
- very fast;
- secure (no JavaScript support);
- very surely not bloated with features;
- does display all pages of your example PDF
- interface is very simple (keyboard navigation only, no menues or icons):

(Chry Cheng: I wonder if you also notice that one little thing in my screenshots that was a bit surprising and mysterious for me...)
Kurt PfeifleKurt Pfeifle