Return to Snippet

Revision: 70850
at August 3, 2016 18:12 by usmansarfraz


Initial Code
Converting PDF to DOC
=====================

The following code snippet shows the process of converting PDF file into DOC.

C#
==

// Open the source PDF document
Document pdfDocument = new Document("input.pdf");

// Save the file into a Microsoft document format
pdfDocument.Save("D://pdftest//TableHeightIssue.doc", SaveFormat.Doc);

 
VB.NET
======

' Open the source PDF document
Dim pdfDocument As Document = New Document("input.pdf")

' Save the file into a Microsoft document format
pdfDocument.Save("D://pdftest//TableHeightIssue.doc", SaveFormat.Doc)


Converting PDF to DOCX
======================

C#
==

// Open pdf document
Document pdfDocument = new Document("source.pdf");
// Instantiate DocSaveOptions object
DocSaveOptions saveOptions = new DocSaveOptions();
// Specify the output format as DOCX
saveOptions.Format = DocSaveOptions.DocFormat.DocX;
// Save document in docx format
pdfDocument.Save("output.docx", saveOptions);


VB.NET
======

' Open pdf document
Dim pdfDocument As Document = New Document("source.pdf")
' Instantiate DocSaveOptions object
Dim saveOptions As DocSaveOptions = New DocSaveOptions()
' Specify the output format as DOCX
saveOptions.Format = DocSaveOptions.DocFormat.DocX
' Save document in DOCX format
pdfDocument.Save("output.docx", saveOptions)

Initial URL
http://goo.gl/OGshz4

Initial Description
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.

Initial Title
Fast PDF to Word Documents Conversion

Initial Tags

                                

Initial Language
C#