Esempio n. 1
0
        public CGPDFScanner(CGPDFContentStream cs, CGPDFOperatorTable table, object userInfo)
        {
            if (cs is null)
            {
                throw new ArgumentNullException(nameof(cs));
            }
            if (table is null)
            {
                throw new ArgumentNullException(nameof(table));
            }

            info = userInfo;
            gch  = GCHandle.Alloc(this);
            InitializeHandle(CGPDFScannerCreate(cs.Handle, table.Handle, GCHandle.ToIntPtr(gch)));
        }
Esempio n. 2
0
        public CGPDFScanner(CGPDFContentStream cs, CGPDFOperatorTable table, object userInfo)
        {
            if (cs == null)
            {
                throw new ArgumentNullException("cs");
            }
            if (table == null)
            {
                throw new ArgumentNullException("table");
            }

            info   = userInfo;
            gch    = GCHandle.Alloc(this);
            Handle = CGPDFScannerCreate(cs.Handle, table.Handle, GCHandle.ToIntPtr(gch));
        }
        public CGPDFContentStream(CGPDFStream stream, NSDictionary streamResources = null, CGPDFContentStream parent = null)
        {
            if (stream == null)
            {
                throw new ArgumentNullException("stream");
            }

            var dh = streamResources == null ? IntPtr.Zero : streamResources.Handle;
            var ph = parent == null ? IntPtr.Zero : parent.Handle;

            Handle = CGPDFContentStreamCreateWithStream(stream.Handle, dh, ph);
        }