首页 > 解决方案 > 对多层 pdf 文档使用转换时 --run-- 中的 ImageMagick 错误范围检查

问题描述

我正在尝试将包含多个图层的 pdf 文档转换为 .jpg 图像。但这给了我一个错误。请看下面:

使用此命令:

convert test.pdf test.jpeg

结果:

Error: /rangecheck in --run--
Operand stack:
   --dict:7/16(L)--   Im0   0.0   --nostringval--   true   2292   0   0   1
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--   2   1   1   --nostringval--   %for_pos_int_continue   --nostringval--   --nostringval--   false   1   %stopped_push   --nostringval--   --nostringval--   --nostringval--   %array_continue   --nostringval--   false   1   %stopped_push   --nostringval--   %loop_continue   --nostringval--   --nostringval--   --nostringval--
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:21/40(L)--   --dict:5/5(L)--   --dict:1/1(ro)(G)--   --dict:5/5(L)--   --dict:8/15(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 8.71: Unrecoverable error, exit code 1
convert: Postscript delegate failed `test.pdf': ACzp.cache @ error/pdf.c/ReadPDFImage/638.
convert: missing an image filename `test.pdf' @ error/convert.c/ConvertImageCommand/2940.

我也试过

convert --flatten test.pdf test.jpeg 

但也没有运气。

有人可以帮我解决这个问题吗?

标签: image-processingimagemagickghostscript

解决方案


推荐阅读