private void btnParse_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(filePath)) { //txtResult.Text = SpireParser.GetAllText(filePath); txtResult.Text = ITextSharpParser.ReadAllText(filePath); } }
private void btnPageText_Click(object sender, RoutedEventArgs e) { if (!string.IsNullOrEmpty(filePath)) { int page = Convert.ToInt32(txtPage.Text.Trim()); //txtResult.Text = SpireParser.GetAllText(filePath); txtResult.Text = ITextSharpParser.ReadPage(filePath, page); } }