Bug 690365

Summary: Error: /typecheck in --.namestring--
Product: Ghostscript Reporter: serge gubenko <serge_gubenko>
Component: PDF InterpreterAssignee: Alex Cherepanov <alex>
Status: RESOLVED FIXED    
Severity: major    
Priority: P4    
Version: 8.64   
Hardware: PC   
OS: Windows XP   
Customer: Word Size: ---
Attachments: pdf file which produces an error

Description serge gubenko 2009-03-27 14:23:15 UTC
I'm trying to open a prd file by the ghostscript 8.64 and having an error (see 
summary) returned. The same file is opened by Adobe Reader without any 
problems. 

file was generated by Compleo MapForm (http://www.symtrax.com/index.asp?iPays=2)

Here's how gs was called: gswin32c -dSAFAER -dBATCH test.pdf

Below is what was returned by ghostscript:

GPL Ghostscript 8.64 (2009-02-03)
Copyright (C) 2009 Artifex Software, Inc.  All rights reserved.
This software comes with NO WARRANTY: see the file PUBLIC for details.
Processing pages 1 through 1.
Page 1
Error: /typecheck in --.namestring--
Operand stack:
   --nostringval--   --dict:5/14(L)--   F1   12   FontObject   --dict:8/8(L)--
 --dict:8/8(L)--   (Wingdings)   --dict:8/8(L)--   8   (Wingdings)   (Wingdings)

Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--   --nostringval-
-   2   %stopped_push   --nostringval--   --nostringval--   --nostringval--   fa
lse   1   %stopped_push   1862   1   3   %oparray_pop   1861   1   3   %oparray_
pop   1845   1   3   %oparray_pop   --nostringval--   --nostringval--   2   1
1   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--
  false   1   %stopped_push   --nostringval--   --nostringval--   --nostringval-
-   %array_continue   --nostringval--   false   1   %stopped_push   --nostringva
l--   %loop_continue   --nostringval--   --nostringval--   --nostringval--   --n
ostringval--   --nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1150/1684(ro)(G)--   --dict:1/20(G)--   --dict:74/200(L)--   --dict:74
/200(L)--   --dict:106/127(ro)(G)--   --dict:278/300(ro)(G)--   --dict:22/25(L)-
-   --dict:4/6(L)--   --dict:21/40(L)--   --dict:1/1(ro)(G)--   --dict:5/5(L)--
  --dict:6/8(L)--
Current allocation mode is local
Last OS error: No such file or directory
GPL Ghostscript 8.64: Unrecoverable error, exit code 1
Comment 1 serge gubenko 2009-03-27 14:26:20 UTC
Created attachment 4875 [details]
pdf file which produces an error
Comment 2 Alex Cherepanov 2009-03-28 14:08:31 UTC
Accept a string (instead of a name) as a possible /FontName value in
FontDescriptor. Recover broken PDF file generated by "MapForm".

The following patch has been committed as a rev. 6902.
http://ghostscript.com/pipermail/gs-cvs/2009-March/009176.html
Regression testing shows no differences.