pdf - Ghostscript 错误 :/undefined in --get--

标签 pdf centos postscript ghostscript

我正在尝试在 CentOS 中使用 Ghostscript。尝试发出以下 Ghostscript 命令时 ghostscript -sDEVICE=pcx256 -r150x150 -sOutputFile=OUTPUT_FILE INPUT_PDF 我收到以下错误:

ESP Ghostscript 815.02 (2006-04-19) Copyright (C) 2004 artofcode LLC, Benicia, CA. All rights reserved. This software comes with NO WARRANTY: see the file PUBLIC for details. Processing pages 1 through 1. Page 1 ERROR: /undefined in --get-- Operand stack: --dict:8/8(L)--
--dict:8/11(L)-- CS0 --dict:10/10(ro)(G)-- CS0 Execution stack: %interp_exit .runexec2
--nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1 3 %oparray_pop
1 3 %oparray_pop 1 3
%oparray_pop --nostringval--
--nostringval-- 2 1 1 --nostringval-- %for_pos_int_continue
--nostringval-- --nostringval-- --nostringval-- --nostringval-- %array_continue --nostringval--
false 1 %stopped_push
--nostringval-- %loop_continue --nostringval-- --nostringval-- --nostringval-- --nostringval-- --nostringval-- Dictionary stack: --dict:1121/1686(ro)(G)-- --dict:0/20(G)-- --dict:107/200(L)-- --dict:107/200(L)-- --dict:104/127(ro)(G)-- --dict:241/347(ro)(G)-- --dict:20/24(L)-- --dict:4/6(L)-- --dict:21/32(L)-- --dict:1/1(ro)(G)-- --dict:3/5(L)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:1/1(ro)(G)-- --dict:8/11(L)-- Current allocation mode is local Last OS error: 2 ESP Ghostscript 815.02: Unrecoverable error, exit code 1

非常感谢任何帮助!我整个周末都在谷歌上搜索答案。

最佳答案

解决了!我运行的是旧版本,我认为 yum 会自动获取最新的 n 最好的。删除旧版本,通过从源代码构建和安装来安装最新版本。完成。

关于pdf - Ghostscript 错误 :/undefined in --get--,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1663014/

相关文章:

pdf - 如何从 PDF 中删除所有图像?

使用ReportLab创建Python/PDF-带有图案的自制网格打印,但在屏幕上看起来不错

java - 如何让 PDF 内容(由 Spring MVC Controller 方法提供)显示在新窗口中

javascript - 在 Adob​​e Acrobat X Pro 中使用 javascript 导出页面

Linux:复制周日创建的文件

linux - 生成文件: executing a multiline function not working

android - 如何在 onActivityResult 回调中从 PDF 选择器 Intent 库获取的 pdfUri 获取文件路径?

pdf - 如何运行imagemagick将多个PDF文件仅第一页批量转换为JPEG?

php - 从 PHP 调用已编译的 C++ 可执行文件以创建套接字

fonts - Adobes CFF格式的 "Private DICT Data"有什么用