Inheritance: GLib.Object
コード例 #1
0
ファイル: Document.cs プロジェクト: GNOME/pdfmod
		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;
		}
コード例 #2
0
ファイル: PdfDocument.cs プロジェクト: jacintos/papeles
 public void Load(string uri)
 {
     document = Document.NewFromFile (uri, Password);
 }