When I try to convert an EPS graphics created with Adobe Illustrator which is fairly simple, it references CJK fonts, none of them are used (can't change that), just plain ASCII glyphs. The process fails which is actually invoked from xelatex (TeX Live 2022): =============== $ freebsd-version 12.3-RELEASE-p8 $ ps2pdf Schichtdicke.eps Error: /undefinedresource in resourcestatus Operand stack: false ct_StyleDicts --dict:0/4(L)-- Adobe-Japan1 --dict:0/4(L)-- Serif HeiseiMin-W3-83pv-RKSJ-H Font HeiseiMin-W3 CIDFont Execution stack: %interp_exit .runexec2 --nostringval-- resourcestatus --nostringval-- 2 %stopped_push --nostringval-- resourcestatus resourcestatus false 1 %stopped_push 1990 1 3 %oparray_pop 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1988 1 3 %oparray_pop resourcestatus 1977 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- resourcestatus --nostringval-- 2 %stopped_push --nostringval-- resourcestatus resourcestatus 1919 10 9 %oparray_pop Dictionary stack: --dict:767/1123(ro)(G)-- --dict:0/20(G)-- --dict:91/200(L)-- --dict:57/75(L)-- --dict:2/10(L)-- --dict:39/70(L)-- --dict:0/4(L)-- --dict:0/4(L)-- --dict:20/27(ro)(G)-- --dict:20/26(ro)(G)-- Current allocation mode is local Last OS error: No such file or directory GPL Ghostscript 9.56.1: Unrecoverable error, exit code 1 =============== Doing the same on a vanilla GS successfully converts this file. Tracing down I have identified that patches patch-Resource_Init_cidfmap and patch-Resource_Init_FAPIcidfmap break the configuration. As soon as they are removed conversion works. Those mappings refer to paid fonts which aren't available on vanilla systems/setups. I do also not intend to install any Adobe fonts on the target machine. Please remove or reconsider these files because patches must not break a standard setup.
Created attachment 237925 [details] EPS file which makes conversion fail
Created attachment 238008 [details] Git-formatted patch Here is a patch which fully addresses this issue.
Created attachment 238009 [details] Git-formatted patch
Hiroki, can you have a look and either remove or fix the patch?
ran into same problem with a couple EPS files from Shutterstock. was using 13.2-RC4/amd64 and current ports tree. then followed your advice--great success! dont really understand what files/patch-Resource_Init_{FAPI,}cidfmap accomplished, but removing them solved my immediate issue Thank you, Michael Osipov
(In reply to Chad Jacob Milios from comment #5) Chad, you might want to look at my Ghostscript 10 port under Bug 269302. It does contain any changes to the PS/PDF processing engine. So it is basically a vanilla GS w/o the headaches. I will have to leave GS 9 behind because of this :-( Thanks for the praise! Took me some time to narrow down the cause.
(In reply to Chad Jacob Milios from comment #5) Chad, print/ghostscript10 has just been comitted to main. It does not have the custom patch and your case should work w/o modifications.
print/ghostscript9 has been removed.