Posts

Showing posts with the label Converting a pdf document to a word document

Convert a pdf document to a txt file word document,

private void button1_Click(object sender, EventArgs e)         {             OpenFileDialog dlg = new OpenFileDialog();             string filepath;             dlg.Filter = "PDF Files(*.PDF)|*.PDF|All Files (*.*)|*.*";             if (dlg.ShowDialog() == DialogResult.OK)             {                 filepath = dlg.FileName.ToString();                 string strtext = string.Empty;                 try                 {                     PdfReader reader = new PdfReader(filepath);                     for (int page = 1; page <= reader.NumberOfPag...