my Evironment is Windows10 64bit ,VS2015 ,GhostScript9.27, Language is C# And i using GhostScript.net to invoke GhostScript
here is my code
string inputFile = "D:\\112.pdf";
string outputFile = "D:\\output.pdf";
GhostscriptProcessor ghostscript = new GhostscriptProcessor();
List<string> switches = new List<string>();
switches.Add("-o");
switches.Add(outputFile);
switches.Add("-dNoOutputFonts");
switches.Add("-sDEVICE=pdfwrite");
switches.Add(inputFile);
ghostscript.Process(switches.ToArray());
and i try the script by the windows CMD Window
"gswin64.exe -o D:\output.pdf -dNoOutputFonts -sDEVICE=pdfwrite D:\112.pdf"
it works,
but when i run it in C# by GhostScript.net , it always give error
"An error occured when call to 'gsapi_init_with_args' is made: -100"
did anybody knows? thanks a lot for your help