【发布时间】:2011-03-28 04:12:00
【问题描述】:
我试过了
gswin32c -sDEVICE=jpeg -sOutputFile=foo.jpg foo.pdf
但我明白了。在使用中文字体的页面上从 Ghostscript 输出。
Substituting CID font resource/Adobe-CNS1 for /·s²Ó©úÅé.
Error: /undefinedresource in --findresource--
Operand stack:
--dict:4/4(L)-- F3 12.96 --dict:6/6(L)-- --dict:6/6(L)-- ·s²Ó©úÅé --dict:9/12(ro)(G)-- --nostringval-- --dict:8/8(L)-- --dict:8/8(L)-- Adobe-CNS1 CIDFont Adobe-CNS1
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop 1 3 %oparray_pop 1 3 %oparray_pop --nostringval-- --nostringval-- 3 1 33 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- 12 9 %oparray_pop --nostringval-- --nostringval-- --nostringval--
Dictionary stack:
--dict:1122/1686(ro)(G)-- --dict:2/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:105/127(ro)(G)-- --dict:253/347(ro)(G)-- --dict:21/24(L)-- --dict:4/6(L)-- --dict:26/31(L)-- --dict:20/26(ro)(G)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.54: Unrecoverable error, exit code 1
很明显,Ghostscript的编码是非Unicode的,因为它在读取中文字体名称时会出现垃圾(/·s²Ó©úÅé)。 Here 是 Adobe Reader 9 列出的中文字体的屏幕截图。
【问题讨论】:
-
如果您可以发布指向这些 PDF 之一的链接会很有帮助...我没有使用 CID 字体的 PDF。
-
您的 Ghostscript 版本相当旧,我可能会说。 8.51 于 2005 年 4 月发布,距今已有 5 年多了!在这 5 年中,Ghostscript 代码取得了很多的进步和改进。您应该考虑从ghostscript.com/releases 安装 8.71(当前是最新版本)。
-
试试csb.gov.hk/english/publication/files/e-hrmguide.pdf。我认为这是我的测试人员获得 PDF 的地方。
标签: pdf fonts ghostscript cmd cjk