The system I'm using uses the linux utility convert to convert pdfs to jpgs. My box gives me the following error.
我正在使用的系统使用linux实用程序转换将pdf转换为jpgs。我的框给了我以下错误。
>$ convert Badge-1114044091.pdf Badge-1114044091.jpg
convert: Postscript delegate failed `Badge-1114044091.pdf'.
convert: missing an image filename `Badge-1114044091.jpg'.
But the production machine does not. According to
但生产机器没有。根据
>$ convert -version
my version is the same as the prodution machine. I'm not sure exactly how to check if postscript needs to be updated. Not really a huge linux guru.
我的版本与生产机器相同。我不确定如何检查postscript是否需要更新。不是一个巨大的Linux大师。
EDIT: Upon suggestion, I checked Ghostscript. The following was already installed.
编辑:根据建议,我检查了Ghostscript。已安装以下内容。
>$ gs -version
ESP Ghostscript 8.15.3 (2006-08-25)
Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved.
1 个解决方案
#1
Install GhostScript.
ImageMagick (the 'convert' utility) doesn't actually convert PDFs; it invokes GhostScript using an arcane command like
ImageMagick('convert'实用程序)实际上并不转换PDF;它使用类似的奥术命令调用GhostScript
gs -q -sDEVICE=jpeg -dBATCH -dNOPAUSE -dFirstPage=1 -dLastPage=1 -r<OUTPUT RESOLUTION> -sOutputFile=<OUTPUT>.jpg <INPUT>.pdf 2>&1
You might want to try that command directly if you want more control.
如果您想要更多控制,可能需要直接尝试该命令。
#1
Install GhostScript.
ImageMagick (the 'convert' utility) doesn't actually convert PDFs; it invokes GhostScript using an arcane command like
ImageMagick('convert'实用程序)实际上并不转换PDF;它使用类似的奥术命令调用GhostScript
gs -q -sDEVICE=jpeg -dBATCH -dNOPAUSE -dFirstPage=1 -dLastPage=1 -r<OUTPUT RESOLUTION> -sOutputFile=<OUTPUT>.jpg <INPUT>.pdf 2>&1
You might want to try that command directly if you want more control.
如果您想要更多控制,可能需要直接尝试该命令。