Bug 687747 - PDF tries substituting but throws /undefinedresource in --findresource--
Summary: PDF tries substituting but throws /undefinedresource in --findresource--
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.14
Hardware: PC Linux
: P4 normal
Assignee: Igor Melichev
URL:
Keywords:
: 688120 688232 688233 688234 688264 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-10 15:40 UTC by evan schulz
Modified: 2008-12-19 08:31 UTC (History)
3 users (show)

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description evan schulz 2004-10-10 15:40:48 UTC
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
Comment 1 evan schulz 2004-10-16 14:57:13 UTC
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)--
Comment 2 Igor Melichev 2004-10-24 09:47:56 UTC
We will improve the error message, but we won't improve the substitution 
since 'Identity' doesn't specify a language.
Comment 4 Igor Melichev 2004-10-26 02:59:21 UTC
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.
Comment 5 Alex Cherepanov 2005-07-23 13:49:06 UTC
*** Bug 688232 has been marked as a duplicate of this bug. ***
Comment 6 Alex Cherepanov 2005-07-23 13:50:19 UTC
*** Bug 688233 has been marked as a duplicate of this bug. ***
Comment 7 Alex Cherepanov 2005-07-23 13:51:36 UTC
*** Bug 688234 has been marked as a duplicate of this bug. ***
Comment 8 Alex Cherepanov 2005-08-15 06:31:26 UTC
*** Bug 688264 has been marked as a duplicate of this bug. ***
Comment 9 Alex Cherepanov 2005-08-15 06:36:51 UTC
*** Bug 688120 has been marked as a duplicate of this bug. ***