Ghostscript fails to process certain PDF files in RHEL 6
Issue
-
Ghostscript fails to convert certain pdf files to TIFF format using "convert" command from ImageMagick in Red Hat Enterprise Linux 6.
# /usr/bin/convert -density 300x300 -monochrome -sharpen 1,1 -enhance testfile.pdf xx.tif Error: /undefined in findresource Operand stack: --dict:6/15(L)-- F1 11.0 --dict:6/6(L)-- --dict:6/6(L)-- Arial --dict:11/12(ro)(G)-- --nostringval-- CIDFontObject --dict:7/7(L)-- --dict:7/7(L)-- Adobe-Identity Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 186 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 5 1 9 --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:1156/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:285/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:6/15(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 8.70: Unrecoverable error, exit code 1 convert: Postscript delegate failed `testfile.pdf': No such file or directory @ pdf.c/ReadPDFImage/611. convert: missing an image filename `xx.tif' @ convert.c/ConvertImageCommand/2800.</code>
-
Ghostscript fails to convert the PDF files containing Arial fonts using the
convert
command from ImageMagick in Red Hat Enterprise Linux 6. -
Ghostscript fails to process PDF files containing non-installed fonts:
$ /usr/bin/gs -dBATCH -dNOPAUSE -sDEVICE=pdfwrite -dPDFSETTINGS=/default -sOutputFile=out.pdf in.pdf GPL Ghostscript 8.70 (2009-07-31) 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 Can't find CID font "KozMinPro-Regular". Substituting CID font /Adobe-Japan1 for /KozMinPro-Regular, see doc/Use.htm#CIDFontSubstitution. The substitute CID font "Adobe-Japan1" is not provided either. Will exit with error. Error: /undefined in findresource Operand stack: --dict:6/15(L)-- F1 16 --dict:5/5(L)-- --dict:5/5(L)-- KozMinPro-Regular-UniJIS-UCS2-H --dict:10/12(ro)(G)-- --nostringval-- CIDFontObject --dict:7/7(L)-- --dict:7/7(L)-- Adobe-Japan1 Execution stack: %interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 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-- --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:1150/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:106/127(ro)(G)-- --dict:286/300(ro)(G)-- --dict:22/25(L)-- --dict:4/6(L)-- --dict:21/40(L)-- --dict:6/15(L)-- Current allocation mode is local Last OS error: 2 GPL Ghostscript 8.70: Unrecoverable error, exit code 1
Environment
- Red Hat Enterprise Linux 6
- ghostscript-8.70
- ImageMagick-6.5.4.7
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.