Posts

Showing posts with the label using itext sharp read a pdf document and create word document

Read the pdf file and convert it into a .doc file

private void button3_Click(object sender, EventArgs e)         {             //path you want to store PDF             string pdfPath = string.Format(@"E:\{0}.pdf", DateTime.Now.ToString("yyyy-MM-dd hhmmss"));             using (FileStream msReport = new FileStream(pdfPath, FileMode.Create))             {                 //step 1                 using (Document pdfDoc = new Document(PageSize.A4, 10f, 10f, 140f, 30f))                 {                     // step 2                     PdfWriter pdfWriter = PdfWriter.GetInstance(pdfDoc, msReport);                     //ope...