简体   繁体   English

使用ImageMagick将pdf转换为png时出错

[英]Error on convert pdf to png using ImageMagick

Give error while convert pdf to png by using below command : convert -density 300 -depth 8 -quality 85 655382767_1460008284.pdf[0-9] 655382767_1460008284.png 使用以下命令将pdf转换为png时出错:convert -density 300 -depth 8 -quality 85 655382767_1460008284.pdf [0-9] 655382767_1460008284.png

OS : Redhat 64 bit 6.7 ImageMagick : version 6.7.2-7 2015-02-27 Q16 Ghostscript : GPL Ghostscript 8.70 (2009-07-31) 操作系统:Redhat 64位6.7 ImageMagick:版本6.7.2-7 2015-02-27 Q16 Ghostscript:GPL Ghostscript 8.70(2009-07-31)

Its give below error : 它给出以下错误:

+++++++++++++++++++++++++++++++++
Error: /ioerror in --showpage--
Operand stack:
1 true
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-- 4 1 8 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- 1745 0 9 %oparray_pop --nostringval-- --nostringval--
Dictionary stack:
--dict:1157/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:27/40(L)--
Current allocation mode is local
Last OS error: 28
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed 655382767_1460008284.pdf': No such file or directory @ error/pdf.c/ReadPDFImage/664. convert: missing an image filename655382767_1460008284.png' @ error/convert.c/ConvertImageCommand/3015.
++++++++++++++++++++++++++++++++++

在此处输入图片说明

Please help me to fix it. 请帮助我修复它。 Also some other pdf files are converted perfactly to png. 另外,其他一些pdf文件也会完全转换为png。

Please find attachment of pdf file which are making issue on converting to png using Imagemagick convert command. 请找到使用Imagemagick convert命令转换为png时出现问题的pdf文件附件。

enter link description here 在此处输入链接说明

ioerror means there was an I/O error, which may mean that the disk is full, or there was some other problem. ioerror表示存在I / O错误,这可能意味着磁盘已满,或存在其他问题。 Try using a lower resolution ('density' in IM terms I think). 尝试使用较低的分辨率(我认为IM术语为“密度”)。 Given that you have 8 pages, each page is 32x76 inches and you have a resolution of 300 dpi you are looking at producing a lot of data, about 1.8Gb if depth=8 means greyscale. 假设您有8页,则每页为32x76英寸,分辨率为300 dpi,您正在寻找产生大量数据的功能,如果depth = 8表示灰度,则约为1.8Gb。

There could be any number of other reasons why there was an ioerror, the next thing to do is to try a more recent version of Ghostscript 8.70 is now 6 years old..... As Mark Setchell suggests you could also try using a more recent version of ImageMagick, though I doubt that will help, since its clearly an error being returned from Ghostscript. 发生ioerror可能有许多其他原因,下一步是尝试更新的Ghostscript 8.70版本已经有6年了.....正如Mark Setchell所建议的,您也可以尝试使用更多版本。最新版本的ImageMagick,尽管我怀疑这会有所帮助,因为它显然是从Ghostscript返回的错误。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM