コード例 #1
0
ファイル: Attachment.cs プロジェクト: GNOME/pdfmod
		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;
		}
コード例 #2
0
ファイル: Attachment.cs プロジェクト: alvinc-git/pdfmod
        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);
        }