convert -resample 115x115 -density 300 file.pdf output/1.jpg
This works for most other pdfs, but I'm getting the following output
Code: Select all
Error: /rangecheck in --run--
Operand stack:
--dict:8/17(L)-- --dict:13/15(ro)(L)-- 99 c -string-
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1878 1 3 %oparray_pop 1877 1 3 %oparray_pop 1861 1 3 %oparray_pop --nostringval-- --nostringval-- 50 1 116 --nostringval-- %for_pos_int_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval-- false 1 %stopped_push --nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- %array_continue %finish_show --nostringval-- --nostringval-- 9 10 1 --nostringval-- (gs_show_enum) %op_show_continue
Dictionary stack:
--dict:1162/1684(ro)(G)-- --dict:1/20(G)-- --dict:75/200(L)-- --dict:75/200(L)-- --dict:108/127(ro)(G)-- --dict:290/300(ro)(G)-- --dict:22/25(L)-- --dict:6/8(L)-- --dict:22/40(L)-- --dict:10/15(L)--
Current allocation mode is local
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
convert: Postscript delegate failed `file.pdf': hTTZ.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `output/1.jpg' @ error/convert.c/ConvertImageCommand/2940.
Is there anything I am doing wrong, or something wrong with the file that I can save it a different way to get this to work?