image-processing - 对多层 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
但也没有运气。
有人可以帮我解决这个问题吗?
解决方案
推荐阅读
- spring-boot - Spring Cloud Gateway 下游 spring boot app 总是返回 404
- git - 如何将代码从本地机器推送到 bonobo git 服务器
- excel - 根据日期进行选择
- javascript - 我无法完整查看 vuejs-datepicker 日历
- python - 更改每组 Python 列表的第一个元素
- ios - 如何在 if 包含错误条件
- python-3.x - 在 conda env 中导入 sklearn 时出现 ModuleNotFoundError
- python - 我的 Bleu 分数与 nltk bleu 分数不同
- jdbc - Oracle SQL Developer 中的 DB2 SQL 错误-=-204、SQLSTATE=42704、SQLERRMC=SYSCAT.SCHEMATA
- graphql - NestJS GraphQL 订阅不适用于`graphql-ws`