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; }
public PSFile (Poppler.Document document, string filename, int first_page, int n_pages) : base (IntPtr.Zero) { if (GetType () != typeof (PSFile)) { throw new InvalidOperationException ("Can't override this constructor."); } IntPtr native_filename = GLib.Marshaller.StringToPtrGStrdup (filename); Raw = poppler_ps_file_new(document == null ? IntPtr.Zero : document.Handle, native_filename, first_page, n_pages); GLib.Marshaller.Free (native_filename); }
static void ReadNative (IntPtr native, ref Poppler.AnnotCalloutLine target) { target = New (native); }
static void ReadNative (IntPtr native, ref Poppler.LinkMapping target) { target = New (native); }
static void ReadNative (IntPtr native, ref Poppler.Rectangle target) { target = New (native); }
static void ReadNative (IntPtr native, ref Poppler.FormFieldMapping target) { target = New (native); }
static void ReadNative (IntPtr native, ref Poppler.PageTransition target) { target = New (native); }
public AttachmentSaveFuncWrapper (Poppler.AttachmentSaveFunc managed) { this.managed = managed; if (managed != null) NativeDelegate = new AttachmentSaveFuncNative (NativeCallback); }
public LayersIter (Poppler.Document document) { Raw = poppler_layers_iter_new(document == null ? IntPtr.Zero : document.Handle); }
static void ReadNative (IntPtr native, ref Poppler.Color target) { target = New (native); }
public IndexIter (Poppler.Document document) { Raw = poppler_index_iter_new(document == null ? IntPtr.Zero : document.Handle); }