为什么会出现错误:--file--中的/ invalidfileaccess [英] Why do I get Error: /invalidfileaccess in --file--
本文介绍了为什么会出现错误:--file--中的/ invalidfileaccess的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
基于在后记中添加图像的简单方法我写了以下内容:
gsave
360 72 translate % set lower left of image at (360, 72)
230 346 scale % size of rendered image is 175 points by 47 points
2304 % number of columns per row
3456 % number of rows
8 % bits per color channel (1, 2, 4, or 8)
[2304 0 0 -3456 0 3456] % transform array... maps unit square to pixel
(graphics/IMG_2216.jpg) (r) file /DCTDecode filter % opens the file and filters the image data
false % pull channels from separate sources
3 % 3 color channels (RGB)
colorimage
grestore
但这给出了:
Error: /invalidfileaccess in --file--
Operand stack:
2304 3456 8 --nostringval-- (graphics/IMG_2216.jpg) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval-- --nostringval-- --nostringval-- false 1 %stopped_push 1894 1 3 %oparray_pop 1893 1 3 %oparray_pop --nostringval-- 1877 1 3 %oparray_pop 1771 1 3 %oparray_pop --nostringval-- %errorexec_pop .runexec2 --nostringval-- --nostringval-- --nostringval-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1166/1684(ro)(G)-- --dict:0/20(G)-- --dict:126/200(L)-- --dict:136/228(L)--
Current allocation mode is local
怎么办
推荐答案
很简单,访问文件存在问题。该文件不存在于指定位置,或者您没有对该文件的访问权。
Quite simply there is a problem accessing the file. Either the file does not exist in the specified location, or you do not have access rights to it.
鉴于您正在打开文件进行读取,最可能的原因是该文件不存在。我注意到您没有使用完全限定的路径,也许您是在错误的位置执行了PostScript。
Given that you are opening the file for read, the most likely is that the file doesn't exist. I notice that you haven't used a fully qualified path, perhaps you are executing the PostScript from the wrong location.
这篇关于为什么会出现错误:--file--中的/ invalidfileaccess的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文