Re: Using Pipes with GS 9.50 and -dSAFER
Robin Watts <[email protected]> Tue, 29 Oct 2019 18:51:42 +0000
| Newsgroups | gmane.comp.printing.ghostscript.devel |
|---|---|
| Message-ID | <[email protected]> |
On 29/10/2019 18:21, Sheri Steeves wrote: > We have existing code using the command line arguments and gs_init_args > with Ghostscript to convert a PDF or a PostScript into a Windows bitmap. > > With the latest version, GS 9.50, this code fails and I’m pretty sure > I’m hitting issues with the new file path restrictions. > > The error messages are as follows: > > GPL Ghostscript 9.50: **** Could not open the file 0000083C . > > Error: /invalidfileaccess in --showpage— > > I tried adding the appropriate paths hardcoded as a test (gsargv[i++] = > "--permit-file-all=C:\\Test;C:\\Users\\User\\AppData\\Local\\Temp";) but > still got the same error messages. So you're specifying the OutputFile as: -sOutputFile=%handle%%p I'd therefore suggest: --permit-file-all=%handle%%p to match that? Give that a whirl, and let us know what you get. Robin