Esempio 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;
		}
Esempio n. 2
0
		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);
		}
Esempio n. 3
0
		static void ReadNative (IntPtr native, ref Poppler.AnnotCalloutLine target)
		{
			target = New (native);
		}
Esempio n. 4
0
		static void ReadNative (IntPtr native, ref Poppler.LinkMapping target)
		{
			target = New (native);
		}
Esempio n. 5
0
		static void ReadNative (IntPtr native, ref Poppler.Rectangle target)
		{
			target = New (native);
		}
Esempio n. 6
0
		static void ReadNative (IntPtr native, ref Poppler.FormFieldMapping target)
		{
			target = New (native);
		}
Esempio n. 7
0
		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);
		}
Esempio n. 9
0
		public LayersIter (Poppler.Document document) 
		{
			Raw = poppler_layers_iter_new(document == null ? IntPtr.Zero : document.Handle);
		}
Esempio n. 10
0
		static void ReadNative (IntPtr native, ref Poppler.Color target)
		{
			target = New (native);
		}
Esempio n. 11
0
		public IndexIter (Poppler.Document document) 
		{
			Raw = poppler_index_iter_new(document == null ? IntPtr.Zero : document.Handle);
		}