Inheritance: GLib.Object
Ejemplo n.º 1
0
		public static unsafe Document NewFromFile(string uri, string password)
		{
			IntPtr native_uri = GLib.Marshaller.StringToPtrGStrdup (uri);
			IntPtr native_password = GLib.Marshaller.StringToPtrGStrdup (password);
			IntPtr error = IntPtr.Zero;
			Document result = new Document (poppler_document_new_from_file(native_uri, native_password, out error));
			GLib.Marshaller.Free (native_uri);
			GLib.Marshaller.Free (native_password);
			if (error != IntPtr.Zero) throw new GLib.GException (error);
			return result;
		}
Ejemplo n.º 2
0
 public void Load(string uri)
 {
     document = Document.NewFromFile (uri, Password);
 }