hello,
I have some files (drawing flags, e.g. germany.ps) and a file (tools.ps), containing some helper functions (e.g. hex2dez, converting hex values to
rgb values).
These helper functions are included/imported in the flag files with "(tools.ps) run".
Both files are in the same directory.
Viewing such files with gv was possible some years ago (gs v. 9.24?),
now with current ghostscript(v. 9.52) I get an error message "/ivalidfileaccess in --run--" [1].
I tried parameters -dNOSAFE, -P with no effect.
What can I do?
On Wednesday, August 26, 2020 at 10:58:08 AM UTC-5, wolli wrote:
hello,
I have some files (drawing flags, e.g. germany.ps) and a file (tools.ps), containing some helper functions (e.g. hex2dez, converting hex values to rgb values).
These helper functions are included/imported in the flag files with "(tools.ps) run".
Both files are in the same directory.
Viewing such files with gv was possible some years ago (gs v. 9.24?),
now with current ghostscript(v. 9.52) I get an error message "/ivalidfileaccess in --run--" [1].
I tried parameters -dNOSAFE, -P with no effect.
What can I do?
Check spelling. "-dNOSAFER"
On Wednesday, August 26, 2020 at 12:14:37 PM UTC-5, luser droog wrote:
On Wednesday, August 26, 2020 at 10:58:08 AM UTC-5, wolli wrote:
hello,
I have some files (drawing flags, e.g. germany.ps) and a file (tools.ps), >>> containing some helper functions (e.g. hex2dez, converting hex values to >>> rgb values).
These helper functions are included/imported in the flag files with
"(tools.ps) run".
Both files are in the same directory.
Viewing such files with gv was possible some years ago (gs v. 9.24?),
now with current ghostscript(v. 9.52) I get an error message
"/ivalidfileaccess in --run--" [1].
I tried parameters -dNOSAFE, -P with no effect.
What can I do?
Check spelling. "-dNOSAFER"
Another option would be to pre-process the files with a tool like psinc
from Bill Casselman.
https://github.com/luser-dr00g/ibis.ps/blob/master/psinc
It will replace any lines matching ^(.*)[ ]*run with the file contents, recursively for each included file.
even -dNOSAFER not working. (I forget the last letter)
Let me ask my question more precisely: Is there any possibility (a
parameter or any other thing) to view (with gv) directly, without intermediate tools, a file importing another with (file.ps) run? As it
was possible before (gs v. 5.24)?
even -dNOSAFER not working. (I forget the last letter)
I know Cassleman's perl script psinc.
Let me ask my question more precisely: Is there any possibility (a
parameter or any other thing) to view (with gv) directly, without intermediate tools, a file importing another with (file.ps) run? As it
was possible before (gs v. 5.24)?
Can you open gv and go to State->Ghostscript Options and un-select
"SAFER" there? (For me it's in the upper right hand corner next to
QUIET.) You should be able to save the new setting for it to take
effect on the next run.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 295 |
Nodes: | 16 (2 / 14) |
Uptime: | 08:30:41 |
Calls: | 6,642 |
Calls today: | 2 |
Files: | 12,190 |
Messages: | 5,326,211 |