public static void Process(GhostscriptJpegDeviceType deviceType, string[] inputFiles, string outputPath, GhostscriptStdIO stdIO_callback) { GhostscriptJpegDevice dev = new GhostscriptJpegDevice(deviceType); dev.InputFiles.AddRange(inputFiles); dev.OutputPath = outputPath; dev.Process(stdIO_callback); }
public GhostscriptException(string message, int code, GhostscriptStdIO stdIOhandler = null) : base(message) { _code = code; _GhostScriptOutput = stdIOhandler?.GetOutput() ?? string.Empty; }
public void Process(GhostscriptStdIO stdIO_callback) { this.Process(GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL | GhostscriptLicense.AFPL, GhostscriptLicense.GPL), true, stdIO_callback); }
public void Process(GhostscriptVersionInfo ghostscriptVersion, bool fromMemory, GhostscriptStdIO stdIO_callback) { if (ghostscriptVersion == null) { throw new ArgumentNullException("ghostscriptVersion"); } using (GhostscriptProcessor processor = new GhostscriptProcessor(ghostscriptVersion, fromMemory)) { processor.StartProcessing(this.GetSwitches(), stdIO_callback); } }
public static void Process(GhostscriptPngDeviceType pngDeviceType, string[] inputFiles, string outputPath, GhostscriptStdIO stdIO_callback) { GhostscriptPngDevice dev = new GhostscriptPngDevice(pngDeviceType); dev.InputFiles.AddRange(inputFiles); dev.OutputPath = outputPath; dev.Process(stdIO_callback); }
public GhostscriptAPICallException(string function, int code, GhostscriptStdIO stdIOhandler) : base($"An error occured when call to '{function}' is made: {code}", code, stdIOhandler) { }
public void Process(GhostscriptStdIO stdIO_callback) { this.Process(GhostscriptVersionInfo.GetLastInstalledVersion(), true, stdIO_callback); }