簡體   English   中英

使用ImageMagick將pdf轉換為png時出錯

[英]Error on convert pdf to png using ImageMagick

使用以下命令將pdf轉換為png時出錯:convert -density 300 -depth 8 -quality 85 655382767_1460008284.pdf [0-9] 655382767_1460008284.png

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

它給出以下錯誤:

+++++++++++++++++++++++++++++++++
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.
++++++++++++++++++++++++++++++++++

在此處輸入圖片說明

請幫助我修復它。 另外,其他一些pdf文件也會完全轉換為png。

請找到使用Imagemagick convert命令轉換為png時出現問題的pdf文件附件。

在此處輸入鏈接說明

ioerror表示存在I / O錯誤,這可能意味着磁盤已滿,或存在其他問題。 嘗試使用較低的分辨率(我認為IM術語為“密度”)。 假設您有8頁,則每頁為32x76英寸,分辨率為300 dpi,您正在尋找產生大量數據的功能,如果depth = 8表示灰度,則約為1.8Gb。

發生ioerror可能有許多其他原因,下一步是嘗試更新的Ghostscript 8.70版本已經有6年了.....正如Mark Setchell所建議的,您也可以嘗試使用更多版本。最新版本的ImageMagick,盡管我懷疑這會有所幫助,因為它顯然是從Ghostscript返回的錯誤。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM