[gs-bugs] problems with TimesNewRoman font

voipas voipas at gmail.com
Fri Jul 30 12:59:16 UTC 2010


Hi,

  I've a problem with one my customer. He sends me pdf documents and fonts
are TimesNewRoman. I'm using newest Ghostscript and distribution is Centos
5.5. The output is:
/opt/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-sOutputFile=/root/pdfs/test2.pdf /root/pdfs/20100630144713_136.pdf
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 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
Can't find CID font "TimesNewRoman".
Substituting CID font /Adobe-Identity for /TimesNewRoman, see
doc/Use.htm#CIDFontSubstitution.
Error: /undefinedresource in findresource
Operand stack:
   --dict:8/17(L)--   F0   12   --dict:7/7(L)--   --dict:7/7(L)--
TimesNewRoman   --dict:10/12(ro)(G)--   --nostringval--   CIDFontObject
--dict:8/8(L)--   --dict:8/8(L)--   Adobe-Identity   CIDFont   true
Adobe-Identity   Adobe-Identity   NimbusRomNo9L-Regu   17
NimbusRomNo9L-Regu
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
1877   1   3   %oparray_pop   1861   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--   1829   13   11
%oparray_pop   findresource   %errorexec_pop   --nostringval--
--nostringval--   --nostringval--   --nostringval--   --nostringval--
--nostringval--   --nostringval--   --nostringval--
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--
--dict:75/200(L)--   --dict:108/127(ro)(G)--   --dict:288/300(ro)(G)--
--dict:22/25(L)--   --dict:6/8(L)--   --dict:21/40(L)--
--dict:1/1(ro)(G)--   --dict:9/15(L)--   --dict:20/26(ro)(G)--
Current allocation mode is local
GPL Ghostscript 8.71: Unrecoverable error, exit code 1

In cidfmap I've made this change:
/Adobe-Identity /NimbusRomNo9L-Regu ;


I run this command with strace and I see :
open("/opt/share/ghostscript/8.71/Resource/Init/CIDFont/NimbusRomNo9L-Regu",
O_RDONLY) = -1 ENOENT (No such file or directory)
So I have created this directory and copied NimbusRomNo9L-Regu file, but I
get now this:
/opt/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite
-sOutputFile=/root/pdfs/test2.pdf /root/pdfs/20100630144713_136.pdf
GPL Ghostscript 8.71 (2010-02-10)
Copyright (C) 2010 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
Can't find CID font "TimesNewRoman".
Substituting CID font /Adobe-Identity for /TimesNewRoman, see
doc/Use.htm#CIDFontSubstitution.
The substitute CID font "Adobe-Identity" is not provided either. Will exit
with error.
Error: /undefined in findresource
Operand stack:
   --dict:8/17(L)--   F0   12   --dict:7/7(L)--   --dict:7/7(L)--
TimesNewRoman   --dict:10/12(ro)(G)--   --nostringval--   CIDFontObject
--dict:8/8(L)--   --dict:8/8(L)--   Adobe-Identity
Execution stack:
   %interp_exit   .runexec2   --nostringval--   --nostringval--
--nostringval--   2   %stopped_push   --nostringval--   --nostringval--
--nostringval--   false   1   %stopped_push   1878   1   3   %oparray_pop
1877   1   3   %oparray_pop   1861   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
Dictionary stack:
   --dict:1151/1684(ro)(G)--   --dict:1/20(G)--   --dict:75/200(L)--
--dict:75/200(L)--   --dict:108/127(ro)(G)--   --dict:288/300(ro)(G)--
--dict:22/25(L)--   --dict:6/8(L)--   --dict:21/40(L)--
--dict:1/1(ro)(G)--   --dict:9/15(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1

Can somebody help me with this problem?
-- 
Best Regards,
Giedrius
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://ghostscript.com/pipermail/gs-bugs/attachments/20100730/8a1facfc/attachment.html>


More information about the gs-bugs mailing list