Fast PDF to Word Documents Conversion


/ Published in: C#
Save to your folder(s)

Convert PDF files to Word Documents (DOC, DOCX) in .NET. Very Fast and Accurate Document Processing – Easily Manipulate Text, Tables & Images with Aspose.Pdf for .NET.


Copy this code and paste it in your HTML
  1. Converting PDF to DOC
  2. =====================
  3.  
  4. The following code snippet shows the process of converting PDF file into DOC.
  5.  
  6. C#
  7. ==
  8.  
  9. // Open the source PDF document
  10. Document pdfDocument = new Document("input.pdf");
  11.  
  12. // Save the file into a Microsoft document format
  13. pdfDocument.Save("D://pdftest//TableHeightIssue.doc", SaveFormat.Doc);
  14.  
  15.  
  16. VB.NET
  17. ======
  18.  
  19. ' Open the source PDF document
  20. Dim pdfDocument As Document = New Document("input.pdf")
  21.  
  22. ' Save the file into a Microsoft document format
  23. pdfDocument.Save("D://pdftest//TableHeightIssue.doc", SaveFormat.Doc)
  24.  
  25.  
  26. Converting PDF to DOCX
  27. ======================
  28.  
  29. C#
  30. ==
  31.  
  32. // Open pdf document
  33. Document pdfDocument = new Document("source.pdf");
  34. // Instantiate DocSaveOptions object
  35. DocSaveOptions saveOptions = new DocSaveOptions();
  36. // Specify the output format as DOCX
  37. saveOptions.Format = DocSaveOptions.DocFormat.DocX;
  38. // Save document in docx format
  39. pdfDocument.Save("output.docx", saveOptions);
  40.  
  41.  
  42. VB.NET
  43. ======
  44.  
  45. ' Open pdf document
  46. Dim pdfDocument As Document = New Document("source.pdf")
  47. ' Instantiate DocSaveOptions object
  48. Dim saveOptions As DocSaveOptions = New DocSaveOptions()
  49. ' Specify the output format as DOCX
  50. saveOptions.Format = DocSaveOptions.DocFormat.DocX
  51. ' Save document in DOCX format
  52. pdfDocument.Save("output.docx", saveOptions)

URL: http://goo.gl/OGshz4

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.