Ubuntu 10.04 で GhostScript 8.71 を使用すると問題が発生します。DejaVu フォントが埋め込まれた特定の PDF ファイルの jpeg を作成しようとしています。
jpegに変換しようとしているPDFファイル:
http://litesitev2.propserver7.com/bad_fonts.pdf
私が実行するゴーストスクリプトコマンド:
gs -sDEVICE=jpeg -o _tests/jpegs/aaa.jpg -dJPEGQ=75 -r216 _tests/bad_fonts.pdf
Ghostscript で発生するエラーは次のとおりです。
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
Error: /undefined in --run--
Operand stack:
--dict:5/14(L)-- F1 10.5 FontObject --dict:8/8(L)-- --dict:8/8(L)-- 481 --dict:8/8(L)--
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-- --nostringval--
Dictionary stack:
--dict:1158/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:25/40(L)-- --dict:1158/1684(ro)(G)-- --dict:10/10(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
http://dejavu-fonts.org/wiki/Downloadからすべての DejaVu フォントをダウンロードして/usr/share/ghostscript/8.71/Resource/Fontに配置しましたが、それでも効果がありません。
Ghostscript の検索パスは次のとおりです。
Search path:
. : /usr/share/ghostscript/8.71/Resource/Init :
/usr/share/ghostscript/8.71/lib :
/usr/share/ghostscript/8.71/Resource/Font :
/usr/share/ghostscript/fonts : /var/lib/defoma/gs.d/dirs/fonts :
/usr/share/cups/fonts : /usr/share/ghostscript/fonts :
/usr/local/lib/ghostscript/fonts : /usr/share/fonts
誰でもこの問題を解決するのを手伝ってくれませんか? 本当にありがとう。