Page 1 of 1

Error Converting Pdf

Posted: 2013-01-29T16:40:40-07:00
by nlewis
I am trying to convert this pdf http://www.mediafire.com/view/?47c37nvh3kgjn5o to a list of jpgs using:
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.
I have tried resaving the pdf as different versions, and that does not seem to work.

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?

Re: Error Converting Pdf

Posted: 2013-01-29T17:16:52-07:00
by snibgo
The PDF converts fine on my laptop without any options. Each page is then 612x792 pixels. It fails with "-density 300". 115 pages: 56 M pixels. Density 300 will multiply this by about 4x4, or 892 M pixels. At 6 bytes per pixel, this needs 5 GB of memory.

Is your computer, like mine, too small?