gpt4 book ai didi

unix - ps2pdf 不可恢复的错误

转载 作者:行者123 更新时间:2023-12-02 05:26:09 25 4
gpt4 key购买 nike

当我尝试将 .ps 文件转换为 pdf 时,出现不可恢复的错误,退出代码 1。它在大约半小时前工作,现在不会了。文件在那里!

Error: /undefinedfilename in (10132012a.ps)
Operand stack:

Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push
Dictionary stack:
--dict:1161/1684(ro)(G)-- --dict:0/20(G)-- --dict:77/200(L)--
Current allocation mode is local
Last OS error: 2
GPL Ghostscript 9.04: Unrecoverable error, exit code 1

这是我的命令:

ps2pdf 10132012a.ps 10132012b.pdf

ps 文件是使用 latex 创建的。

我正在运行 Ubuntu 11.10。

最佳答案

您可以尝试直接运行 Ghostscript,而不是使用脚本:

gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -o 10132012b.pdf 10132012a.ps

甚至:

gs -sDEVICE=pdfwrite -o 10132012b.pdf - < 10132012a.ps

“便利”脚本(ps2pdf、pdf2ps 等)使用的选项可能会妨碍(尽管它们确实不应该)。

关于unix - ps2pdf 不可恢复的错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13066505/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com