Beispiel #1
0
        private void button2_Click(object sender, EventArgs e)
        {
            txtLog.Clear();

            string filename = "..\\RozprawaDoktorskaSzominski.pdf"; //@"C:\testDoc\docpublish.pdf";

            using (PdfTextSharpChecker pdf = new PdfTextSharpChecker(filename))
            {
                string logText = pdf.CheckPDF(Convert.ToInt32(numBegin.Value), Convert.ToInt32(numEnd.Value));
                txtLog.Text = logText;
            }


            // string filename = @"C:\testDoc\docpublish.pdf";

            /*   using (OpenFileDialog dlg = new OpenFileDialog())
             * {
             *     if (dlg.ShowDialog(this) == DialogResult.OK)
             *     {
             *         PdfTextSharpChecker pdf = new PdfTextSharpChecker(dlg.FileName);
             *
             *         string logText = pdf.CheckPDF(Convert.ToInt32(numBegin.Value), Convert.ToInt32(numEnd.Value));
             *         txtLog.Text = logText;
             *     }
             * }*/
        }
Beispiel #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            string filename = "..\\RozprawaDoktorskaSzominski.pdf"; //@"C:\testDoc\docpublish.pdf";

            using (PdfTextSharpChecker pdf = new PdfTextSharpChecker(filename))
            {
                string logText = pdf.CheckPDF();
                txtLog.Text = logText;
            }
        }