Represents a base Ghostscript standard input output handler.
예제 #1
0
        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;
 }
예제 #3
0
 public void Process(GhostscriptStdIO stdIO_callback)
 {
     this.Process(GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL | GhostscriptLicense.AFPL, GhostscriptLicense.GPL), 
                  true,
                  stdIO_callback); 
 }
예제 #4
0
        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);
 }
예제 #6
0
        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);
            }
        }
예제 #7
0
 public void Process(GhostscriptStdIO stdIO_callback)
 {
     this.Process(GhostscriptVersionInfo.GetLastInstalledVersion(GhostscriptLicense.GPL | GhostscriptLicense.AFPL, GhostscriptLicense.GPL),
                  true,
                  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);
 }