Esempio n. 1
0
 private void btnParse_Click(object sender, RoutedEventArgs e)
 {
     if (!string.IsNullOrEmpty(filePath))
     {
         //txtResult.Text = SpireParser.GetAllText(filePath);
         txtResult.Text = ITextSharpParser.ReadAllText(filePath);
     }
 }
Esempio n. 2
0
        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);
            }
        }