public GhostscriptProcessor(byte[] gsDll)
        {
            if (gsDll == null)
            {
                throw new ArgumentNullException("gsDll", "Cannot be null.");
            }

            _gs = new GhostscriptLibrary(gsDll);
        }
        public GhostscriptProcessor(GhostscriptVersionInfo version, bool fromMemory)
        {
            if (version == null)
            {
                throw new ArgumentNullException("version", "Cannot be null.");
            }

            _gs = new GhostscriptLibrary(version, fromMemory);
        }
Example #3
0
        public GhostscriptProcessor(GhostscriptVersionInfo version, bool fromMemory)
        {
            if (version == null)
            {
                throw new ArgumentNullException("version");
            }

            _gs = new GhostscriptLibrary(version, fromMemory);
        }
Example #4
0
        public GhostscriptProcessor(byte[] library)
        {
            if (library == null)
            {
                throw new ArgumentNullException("library");
            }

            _gs = new GhostscriptLibrary(library);
        }
Example #5
0
 public GhostscriptProcessor(GhostscriptLibrary library, bool processorOwnsLibrary = false)
 {
     if (library == null)
     {
         throw new ArgumentNullException("library");
     }
     _processorOwnsLibrary = processorOwnsLibrary;
     _gs = library;
 }
        /// <summary>
        /// Initializes a new instance of the Ghostscript.NET.GhostscriptInterpreter class.
        /// </summary>
        /// <param name="library">Memory buffer representing native Ghostscript library.</param>
        public GhostscriptInterpreter(byte[] library)
        {
            if (library == null)
            {
                throw new ArgumentNullException("library");
            }

            // load ghostscript native library
            _gs = new GhostscriptLibrary(library);

            // initialize Ghostscript interpreter
            this.Initialize();
        }
Example #7
0
        /// <summary>
        /// Initializes a new instance of the Ghostscript.NET.GhostscriptInterpreter class.
        /// </summary>
        /// <param name="library">Memory buffer representing native Ghostscript library.</param>
        public GhostscriptInterpreter(byte[] library)
        {
            if (library == null)
            {
                throw new ArgumentNullException("library");
            }

            // load ghostscript native library
            _gs = new GhostscriptLibrary(library);

            // initialize Ghostscript interpreter
            this.Initialize();
        }
Example #8
0
        /// <summary>
        /// Initializes a new instance of the Ghostscript.NET.GhostscriptInterpreter class.
        /// </summary>
        /// <param name="version">GhostscriptVersionInfo instance that tells which Ghostscript library to use.</param>
        /// <param name="fromMemory">Tells if the Ghostscript should be loaded from the memory or directly from the disk.</param>
        public GhostscriptInterpreter(GhostscriptVersionInfo version, bool fromMemory)
        {
            if (version == null)
            {
                throw new ArgumentNullException("version");
            }

            // load ghostscript native library
            _gs = new GhostscriptLibrary(version, fromMemory);

            // initialize Ghostscript interpreter
            this.Initialize();
        }
        /// <summary>
        /// Initializes a new instance of the Ghostscript.NET.GhostscriptInterpreter class.
        /// </summary>
        /// <param name="version">GhostscriptVersionInfo instance that tells which Ghostscript library to use.</param>
        /// <param name="fromMemory">Tells if the Ghostscript should be loaded from the memory or directly from the disk.</param>
        public GhostscriptInterpreter(GhostscriptVersionInfo version, bool fromMemory)
        {
            if (version == null)
            {
                throw new ArgumentNullException("version");
            }

            // load ghostscript native library
            _gs = new GhostscriptLibrary(version, fromMemory);

            // initialize Ghostscript interpreter
            this.Initialize();
        }
        public GhostscriptProcessor(byte[] library)
        {
            if (library == null)
            {
                throw new ArgumentNullException("library");
            }

            _gs = new GhostscriptLibrary(library);
        }
 public GhostscriptProcessor(GhostscriptLibrary library, bool processorOwnsLibrary = false)
 {
     if (library == null)
     {
         throw new ArgumentNullException("library");
     }
     _processorOwnsLibrary = processorOwnsLibrary;
     _gs = library;
 }
Example #12
0
 public GhostscriptProcessor(byte[] gsDll)
 {
     _gs = new GhostscriptLibrary(gsDll);
 }
Example #13
0
 public GhostscriptProcessor(GhostscriptVersionInfo version, bool fromMemory)
 {
     _gs = new GhostscriptLibrary(version, fromMemory);
 }
Example #14
0
 public GhostscriptInterpreter(GhostscriptVersionInfo version, bool fromMemory)
 {
     _gs = new GhostscriptLibrary(version, fromMemory);
     this.Initialize();
 }
Example #15
0
 public GhostscriptInterpreter(byte[] gsDll)
 {
     _gs = new GhostscriptLibrary(gsDll);
     this.Initialize();
 }