private void ReadFile_Click(object sender, RoutedEventArgs e) { string path = ""; Microsoft.Win32.OpenFileDialog ofd = new Microsoft.Win32.OpenFileDialog(); ofd.InitialDirectory = @"D:\FullText"; ofd.DefaultExt = ".pdf"; ofd.Filter = "pdf file|*.pdf"; if (ofd.ShowDialog() == true) { path = ofd.FileName; } var result = IETitle.GetTitle(path, ""); this.title.Text = result.Title; }
private HandleResult GetTitle(string path, string realtitle) { return(IETitle.GetTitle(path, realtitle)); }