using Aspose.Pdf;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace pdf2word
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }
        string path;
        private void button1_Click(object sender, EventArgs e)
        {
            openFileDialog1.ShowDialog();
            path = openFileDialog1.FileName;
            // Open the source PDF document
            Document pdfDocument = new Document(path);

            DocSaveOptions saveOptions = new DocSaveOptions();
            // Specify the output format as DOCX
            saveOptions.Format = DocSaveOptions.DocFormat.DocX;

            // Save the file into a Microsoft document format
            pdfDocument.Save(path.Split(‘.’)[0], saveOptions);
            MessageBox.Show(“process complated”);

        }
    }
}