Discussion:
[gs-bugs] [Bug 691743] New: Error: /invalidfileaccess in --file--
b***@ghostscript.com
2010-11-02 07:58:33 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=691743

Summary: Error: /invalidfileaccess in --file--
Product: Ghostscript
Version: 9.00
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: normal
Priority: P4
Component: PDF Writer
AssignedTo: ***@artifex.com
ReportedBy: ***@yeah.net
QAContact: gs-***@ghostscript.com
Estimated Hours: 0.0


Created an attachment (id=6859)
--> (http://bugs.ghostscript.com/attachment.cgi?id=6859)
The ps file

Hi there,

when I hope to convert a ps file, which produced by LaTeX with beamer class, to
a pdf file, a error appeared:

E:\>"d:\Program Files\gs\gs9.00\bin\gswin32c.exe" -q -dSAFER -dNOPAUSE -dBATCH
-
sDEVICE=pdfwrite -dUseCIEColor=true -dPDFSETTINGS=/printer -sOutputFile=zz.pdf
z
z.ps
Error: /invalidfileaccess in --file--
Operand stack:
--nostringval-- --nostringval-- (digclock.swf) (r)
Execution stack:
%interp_exit .runexec2 --nostringval-- --nostringval--
--nostringval-
- 2 %stopped_push --nostringval-- --nostringval-- --nostringval--
fa
lse 1 %stopped_push 1910 1 3 %oparray_pop 1909 1 3
%oparray_
pop 1893 1 3 %oparray_pop 1787 1 3 %oparray_pop
--nostringval-
- %errorexec_pop .runexec2 --nostringval-- --nostringval--
--nostringv
al-- 2 %stopped_push --nostringval--
Dictionary stack:
--dict:1160/1684(ro)(G)-- --dict:0/20(G)-- --dict:79/200(L)--
--dict:10
6/300(L)-- --dict:36/200(L)--
Current allocation mode is local
Last OS error: No such file or directory
Current file position is 37829
GPL Ghostscript 9.00: Unrecoverable error, exit code 1

I tested the same ps file with ghostscript 8.71, no error occurred.

Regards,
Jinsong
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
b***@ghostscript.com
2010-11-02 07:59:24 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=691743

--- Comment #1 from Jinsong Zhao <***@yeah.net> 2010-11-02 07:59:23 UTC ---
Created an attachment (id=6860)
--> (http://bugs.ghostscript.com/attachment.cgi?id=6860)
the embedded swf file
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
b***@ghostscript.com
2010-11-02 08:18:38 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=691743

Ken Sharp <***@artifex.com> changed:

What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution| |INVALID

--- Comment #2 from Ken Sharp <***@artifex.com> 2010-11-02 08:18:36 UTC ---
This is undoubtedly nothing to do with the PDF writer. I suspect that using the
display device would give the same error.

You are using an unqualified path to the file, which means its using the
current working directory. There were changes made to the way this works in 9.0
in order to address security concerns.
b***@ghostscript.com
2010-11-02 08:27:15 UTC
Permalink
http://bugs.ghostscript.com/show_bug.cgi?id=691743

Alexander Grahn <***@fzd.de> changed:

What |Removed |Added
----------------------------------------------------------------------------
CC| |***@fzd.de

--- Comment #3 from Alexander Grahn <***@fzd.de> 2010-11-02 08:27:14 UTC ---
The command ps2pdf was probably used for ps to pdf conversion. It
automatically sets -dSAFER. To override this, option -dNOSAFER should be set:

ps2pdf -dNOSAFER zz.ps
--
Configure bugmail: http://bugs.ghostscript.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
Loading...