I installed Ghostscript version 9.27 (64bit) and ran this code and nothing seems to happen. It doesn't throw an exception but it doesn't produce a tiff file either. I tried installing the 32 bit version and than it works fine.
var inputFile = @"W:\Development\Good Files\0901_003.pdf";
var outputFile = @"C:\Temp\test.tif";
GhostscriptVersionInfo gv = GhostscriptVersionInfo.GetLastInstalledVersion();
using (GhostscriptProcessor processor = new GhostscriptProcessor(gv, true))
{
List<string> switches = new List<string>();
switches.Add("-dBATCH");
switches.Add("-dNOPAUSE");
switches.Add("-sDEVICE=tiffg4");
switches.Add(@"-sOutputFile=" + outputFile);
switches.Add(inputFile);
processor.StartProcessing(switches.ToArray(), null);
}
I installed Ghostscript version 9.27 (64bit) and ran this code and nothing seems to happen. It doesn't throw an exception but it doesn't produce a tiff file either. I tried installing the 32 bit version and than it works fine.