Getting an error when trying to convert pdf to png
Posted: 2017-11-07T15:12:38-07:00
Linux server version:
2.6.32-71.el6.i686
My IM version:
Version: ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP http://www.imagemagick.org
My GS version:
GPL Ghostscript 8.70 (2009-07-31)
I am doing other modifications, but in the simplest form, I do convert file.pdf file.png
When doing it I am getting this mess:
Error: /undefined in findresource
Operand stack:
--dict:6/15(L)-- C2_0 8.999 --dict:5/5(L)-- --dict:5/5(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 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 7 1 6 --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:1155/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:23/25(L)-- --dict:4/6(L)-- --dict:25/40(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `00000871.pdf': No such file or directory @ pdf.c/ReadPDFImage/611.
convert: missing an image filename `test.png' @ convert.c/ConvertImageCommand/2800.
I am thinking a version upgrade of GS might fix this, but wanted some advice.
If I need to try a version upgrade of IM and/or GS, how can I do it and easily revert back in case it breaks other things?
Was thinking of saving the old folder and unzipping the new version in the same path location or does it not work that way? If so, where would that be.
2.6.32-71.el6.i686
My IM version:
Version: ImageMagick 6.5.4-7 2012-05-07 Q16 OpenMP http://www.imagemagick.org
My GS version:
GPL Ghostscript 8.70 (2009-07-31)
I am doing other modifications, but in the simplest form, I do convert file.pdf file.png
When doing it I am getting this mess:
Error: /undefined in findresource
Operand stack:
--dict:6/15(L)-- C2_0 8.999 --dict:5/5(L)-- --dict:5/5(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 1862 1 3 %oparray_pop 1861 1 3 %oparray_pop 1845 1 3 %oparray_pop --nostringval-- --nostringval-- 7 1 6 --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:1155/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:23/25(L)-- --dict:4/6(L)-- --dict:25/40(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.70: Unrecoverable error, exit code 1
convert: Postscript delegate failed `00000871.pdf': No such file or directory @ pdf.c/ReadPDFImage/611.
convert: missing an image filename `test.png' @ convert.c/ConvertImageCommand/2800.
I am thinking a version upgrade of GS might fix this, but wanted some advice.
If I need to try a version upgrade of IM and/or GS, how can I do it and easily revert back in case it breaks other things?
Was thinking of saving the old folder and unzipping the new version in the same path location or does it not work that way? If so, where would that be.