Ghostscript.NET.Interpreter.GhostscriptInterpreter.RunFile C# (CSharp) Method

RunFile() public method

Runs a PostScript file.
public RunFile ( string path ) : void
path string
return void
        public void RunFile(string path)
        {
            if (!File.Exists(path))
            {
                throw new FileNotFoundException("Couldn't find input file.", path);
            }

            int exit_code;

            // GSAPI: tell a Ghostscript to run a file
            int rc_run = _gs.gsapi_run_file(_gs_instance, path, 0, out exit_code);

            if (ierrors.IsFatal(rc_run))
            {
                throw new GhostscriptAPICallException("gsapi_run_file", rc_run);
            }
        }