I have a bunch of PDFs created with Adobe's Distiller 5 that will often throw the following error: gs -sDEVICE=png16m -sOutputFile=out.png pg28.pdf ... Substituting /Adobe-Identity for /NNPXYW+TimesNewRomanPS-ItalicMT. Error: /undefinedresource in --findresource-- ... Opening the file in Acrobat Pro, saving it as postscript, and running that through gs is successful, but it'd be nice not to have to take that extra step. I've gone through the docs, bugs, etc. trying to find what is happening. I've tried different combinations of gs 8.14, 8.15, 8.31, and gs-gnu on WinXP, Debian Linux, and FreeBSD. An example can be downloaded here: http://www.ivan37.com/pg28.zip
Here is the complete error message from another page that caused the problem: Substituting /Adobe-Identity for /NNPXYW+TimesNewRomanPS-ItalicMT. Error: /undefinedresource in --findresource-- Operand stack: --dict:8/8(L)-- G21 1 --dict:5/5(L)-- --dict:5/5(L)-- NNPXYW+TimesNewRomanPS-ItalicMT-Identity-H --dict:9/12(ro)(G)-- --nostringval-- --dict:7/7(L)-- NNPXYW+TimesNewRomanPS-ItalicMT --dict:7/7(L)-- Adobe-Identity CIDFont Adobe-Identity 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 --nostringval-- 36 1 74 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- --nostringval-- --nostringval-- %loop_continue --nostringval-- 13 9 %oparray_pop --nostringval-- --nostringval-- --nostringval-- --nostringval-- Dictionary stack: --dict:1058/1417(ro)(G)-- --dict:0/20(G)-- --dict:73/200(L)-- --dict:73/200(L)-- --dict:97/127(ro)(G)-- --dict:229/230(ro)(G)-- --dict:19/24(L)-- --dict:4/6(L)-- --dict:24/31(L)-- --dict:16/24(ro)(G)--
We will improve the error message, but we won't improve the substitution since 'Identity' doesn't specify a language.
Patch to HEAD : http://www.ghostscript.com/pipermail/gs-cvs/2004-October/004963.html http://www.ghostscript.com/pipermail/gs-cvs/2004-October/004964.html Patch to GS_8_1X : http://www.ghostscript.com/pipermail/gs-cvs/2004-October/004965.html http://www.ghostscript.com/pipermail/gs-cvs/2004-October/004966.html
Please note that the user must add a cidfmap record like this : /Adobe-Identity /WadaGo-Bold ; See more details in the documentation patch referred in the Comment #3.
*** Bug 688232 has been marked as a duplicate of this bug. ***
*** Bug 688233 has been marked as a duplicate of this bug. ***
*** Bug 688234 has been marked as a duplicate of this bug. ***
*** Bug 688264 has been marked as a duplicate of this bug. ***
*** Bug 688120 has been marked as a duplicate of this bug. ***