Bug 690825 - TimesNewRoman,Italic ; Error: /undefinedresource in findresource
Summary: TimesNewRoman,Italic ; Error: /undefinedresource in findresource
Status: RESOLVED INVALID
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: PDF Interpreter (show other bugs)
Version: 8.62
Hardware: PC Linux
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-16 09:36 UTC by Costam
Modified: 2009-10-22 11:22 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Costam 2009-10-16 09:36:54 UTC
When trying to convert a document from .pdf to tiff3g I get the following error:

===
Error: /undefinedresource in findresource
Operand stack:
   --nostringval--   --dict:5/14(L)--   F0   7   --dict:7/7(L)--  
--dict:7/7(L)--   TimesNewRoman,Italic   --dict:9/12(ro)(G)--   --nostringval--
  --dict:8/8(L)--   --dict:8/8(L)--   Adobe-Identity   CIDFont   Adobe-Identity
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--  
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--  
--nostringval--   false   1   %stopped_push   1905   1   3   %oparray_pop   1904
  1   3   %oparray_pop   1888   1   3   %oparray_pop   --nostringval--  
--nostringval--   2   1   1   --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--   --nostringval--  
--nostringval--   %loop_continue   --nostringval--   1856   13   9  
%oparray_pop   findresource   %errorexec_pop   --nostringval--   --nostringval--
  --nostringval--
Dictionary stack:
   --dict:1153/1684(ro)(G)--   --dict:1/20(G)--   --dict:97/200(L)--  
--dict:97/200(L)--   --dict:108/127(ro)(G)--   --dict:275/300(ro)(G)--  
--dict:22/25(L)--   --dict:4/6(L)--   --dict:25/40(L)--   --dict:38/40(ro)(G)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.62: Unrecoverable error, exit code 1
===

Could anyone be so kind and tell me what could be wrong here?
Comment 1 Costam 2009-10-16 09:38:01 UTC
It works for other documents but from time to time some customer reports problem
with his document (auto generated by some software).
Comment 2 Costam 2009-10-16 09:42:17 UTC
There are these entries in /usr/share/ghostscript/8.62/lib/Fontmap.GS:

===
/TimesNewRoman                          /TimesNewRomanPSMT              ;
/TimesNewRoman,Bold                     /TimesNewRomanPS-BoldMT         ;
/TimesNewRoman,Italic                   /TimesNewRomanPS-ItalicMT       ;
/TimesNewRoman,BoldItalic               /TimesNewRomanPS-BoldItalicMT   ;
===

so I don't really know what could be the problem - I can render these fonts with
/xxx DoFont... :(
Comment 3 Ralph Giles 2009-10-16 11:34:37 UTC
If you can attach a file which consistently fails, it would help.

There's a known issue with the font enumeration overwriting the initial font
map, but that should only cause problems if it can't actually load the new
entry. Can you try with -OSTACKPRINT ?
Comment 4 Ken Sharp 2009-10-17 00:38:32 UTC
Without a sample file its impossible to say for certain, but I'd be inclined to
try a recent version of Ghostscript, 8.62 is several years old.
Comment 5 Ray Johnston 2009-10-22 11:22:30 UTC
Closing since no sample file and no re-test with 8.70