我正在尝试通过Ghostscript(版本9.52)将PS文件转换为PDF。我的问题是PS文件引用了外部EPS文件,这是徽标文件,通常在打印机内存中。我也有此EPS文件的来源。当使用随Ghostscript安装的“ ps2pdf”脚本时,加载EPS文件时出现错误。 EPS加载的代码如下:
/showpage {} def
/setpagedevice /pop load def
(logo.eps) run
restore
当我运行'ps2pdf'时,显示以下错误:
Error: /invalidfileaccess in --run--
Operand stack:
--nostringval-- (logo.eps) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- run --nostringval-- 2 %stopped_push --nostringval-- run run false 1 %stopped_push 1990 1 3 %oparray_pop 1989 1 3 %oparray_pop 1977 1 3 %oparray_pop 1833 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- run --nostringval-- 2 %stopped_push --nostringval-- 1990 2 3 %oparray_pop run
Dictionary stack:
--dict:739/1123(ro)(G)-- --dict:0/20(G)-- --dict:82/200(L)--
Current allocation mode is local
关于将带有EPS参考的PS文件转换为PDF的任何建议?