Exemplo n.º 1
0
		public unsafe bool SaveToCallback(Poppler.AttachmentSaveFunc save_func) {
			PopplerSharp.AttachmentSaveFuncWrapper save_func_wrapper = new PopplerSharp.AttachmentSaveFuncWrapper (save_func);
			IntPtr error = IntPtr.Zero;
			bool raw_ret = poppler_attachment_save_to_callback(Handle, save_func_wrapper.NativeDelegate, IntPtr.Zero, out error);
			bool ret = raw_ret;
			if (error != IntPtr.Zero) throw new GLib.GException (error);
			return ret;
		}
Exemplo n.º 2
0
        public unsafe bool SaveToCallback(Poppler.AttachmentSaveFunc save_func)
        {
            PopplerSharp.AttachmentSaveFuncWrapper save_func_wrapper = new PopplerSharp.AttachmentSaveFuncWrapper(save_func);
            IntPtr error   = IntPtr.Zero;
            bool   raw_ret = poppler_attachment_save_to_callback(Handle, save_func_wrapper.NativeDelegate, IntPtr.Zero, out error);
            bool   ret     = raw_ret;

            if (error != IntPtr.Zero)
            {
                throw new GLib.GException(error);
            }
            return(ret);
        }