Quantcast
Channel: Ghostscript.NET
Viewing all articles
Browse latest Browse all 393

New Post: An error occured when call to 'gsapi_init_with_args' is made: -100

$
0
0
i use the dll convert the ps file to pdf ,follow is my code
     //   GhostscriptVersionInfo gv = new GhostscriptVersionInfo(@"C:\SharePrinter\gsdll32.dll");
        GhostscriptVersionInfo gv = GhostscriptVersionInfo.GetLastInstalledVersion();
        GhostscriptProcessor processor = new GhostscriptProcessor(gv, true);
        List<string> switches = new List<string>();
        switches.Add("-empty");
        switches.Add("-dQUIET");
        switches.Add("-dSAFER");
        switches.Add("-dBATCH");
        switches.Add("-dNOPAUSE");
        switches.Add("-dEPSCrop");
        switches.Add("-sDEVICE=pdfwrite");
        switches.Add("-sOutputFile=" + txtFilename);
        switches.Add("-f");
        switches.Add(psFilename);
        processor.StartProcessing(switches.ToArray(), null);
i get An error occured when call to 'gsapi_init_with_args' is made: -100

Viewing all articles
Browse latest Browse all 393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>