Example #1
0
        public bool GetStream(int idx, out CGPDFStream result)
        {
            IntPtr ptr;
            var    r = CGPDFArrayGetStream(handle, (IntPtr)idx, out ptr);

            if (!r)
            {
                result = null;
                return(false);
            }
            result = new CGPDFStream(ptr);
            return(true);
        }
Example #2
0
        public bool GetStream(string key, out CGPDFStream result)
        {
            if (key == null)
            {
                throw new ArgumentNullException("key");
            }
            IntPtr ptr;
            var    r = CGPDFDictionaryGetStream(handle, key, out ptr);

            if (!r)
            {
                result = null;
                return(false);
            }
            result = new CGPDFStream(ptr);
            return(true);
        }
Example #3
0
		public bool GetStream (string key, out CGPDFStream result)
		{
			if (key == null)
				throw new ArgumentNullException ("key");
			IntPtr ptr;
			var r = CGPDFDictionaryGetStream (handle, key, out ptr); 
			if (!r){
				result = null;
				return false;
			}
			result = new CGPDFStream (ptr);
			return true;
		}
Example #4
0
 public bool GetStream(int idx, out CGPDFStream result)
 {
     IntPtr ptr;
     var r = CGPDFArrayGetStream (handle, (IntPtr) idx, out ptr);
     if (!r){
         result = null;
         return false;
     }
     result = new CGPDFStream (ptr);
     return true;
 }