XDoc.PDF
Features
Tech Specs
How-to C#
How-to VB.NET
Pricing
Convert PDF to Word (.docx)
Work with Other SDKs
Convert PDF to Microsoft Word (.docx)
  |  
Home ›› XDoc.PDF ›› C# PDF: Convert PDF to Word (.docx)

C#.NET PDF SDK - Convert PDF to Word in C#.NET


Online C#.NET Tutorial for Converting PDF to Word (.doc/ .docx) Document with .NET XDoc.PDF Library in C#.NET Class




Best C#.NET PDF to Microsoft Office Word converter SDK for exporting PDF to Word in Visual Studio .NET


Support .NET WinForms, ASP.NET MVC in IIS, ASP.NET Ajax, Azure cloud service, DNN (DotNetNuke), SharePoint


Evaluation Library for converting PDF to Word in both .NET WinForms and ASP.NET application using C# programming language


Free .NET conversion control easy to be embedded to any .NET framework on Windows 32bit and 64bit without registration key


Quick to remove watermark and save PDF text, image, table, hyperlink and bookmark to Word without losing format


Powerful components for batch converting PDF documents in C#.NET program


Convert PDF to multiple MS Word formats such as .doc and .docx


Create editable Word file online without email


Password protected PDF file can be printed to Word for mail merge


C# source code is available for copying and using in .NET Class


RasterEdge Visual C# .NET PDF to Word (DOC/DOCX) converter library control (XDoc.PDF) is a mature and effective PDF document converting utility. Using this PDF to Word converting library control, .NET developers can quickly convert PDF document to Word file using Visual C# code. This C#.NET PDF to Word(DOC/DOCX) conversion library can help developers convert multi-page PDF document to multi-page Word file or convert each PDF document page to separate Word file.


The most outstanding feature of this PDF to Word converting toolkit is its industry-leading converting accuracy. The Word file, converted by RasterEdge PDF to Word converter toolkit, preserves the structure & layout of target PDF document, keeps the elements (like images, tables and chats) of original PDF file and maintains the original text style (including font, size, color, links and boldness).


Why do we need this PDF to Word converting library? In the daily-life applications, you often need to use and edit PDF document content for certain purpose. But without licensed third-party software, you can hardly edit PDF document. Under this situation, you need to convert PDF document to some easily editable files like Word document.


RasterEdge XDoc.PDF empowers your C#.NET application with advanced PDF to Word conversion functionality. Microsoft Office Word 2003, 2007 and later versions are compatible with this product.




C#.NET DLLs and Demo Code: Convert PDF to Word Document in C#.NET Project



Add necessary references:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XImage.Raster.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.XDoc.Word.dll


Use corresponding namespaces;


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.PDF;


Note: When you get the error "Could not load file or assembly 'RasterEdge.Imaging.Basic' or any other assembly or one of its dependencies. An attempt to load a program with an incorrect format", please check your configure as follows:

       

       If you are using x64 libraries/dlls, Right click the project -> Properties -> Build -> Platform target: x64.

       

       If using x86, the platform target should be x86.


This is a C# programming example for converting PDF to Word (.docx) file.




// Load a PDF document.
String inputFilePath = Program.RootPath + "\\" + "1.pdf";
PDFDocument doc = new PDFDocument(inputFilePath);

// Convert and output to a DOCX file.
String outputFilePath2 = inputFilePath + ".docx";
doc.ConvertToDocument(DocumentType.DOCX, outputFilePath2);





public override void ConvertToDocument(DocumentType targetType, String filePath)

Description:
     Convert to DOCX/TIFF and save it on the disk.

Parameters:



public override void ConvertToDocument(DocumentType targetType, Stream stream)

Description:
     Convert to DOCX/TIFF and save it into stream.

Parameters:



public override void ConvertToDocument(DocumentType targetType, float zoomValue, String filePath)

Description:
     Convert to DOCX/TIFF with specified zoom value and save it on the disk.

Parameters:



public override void ConvertToDocument(DocumentType targetType, float zoomValue, Stream desStream)

Description:
     Convert to DOCX/TIFF with specified zoom value and save it into stream.

Parameters:



public override void ConvertToDocument(DocumentType targetType, int resolution, String filePath)

Description:
     Convert to DOCX/TIFF with specified resolution and save it on the disk.

Parameters:



public override void ConvertToDocument(DocumentType targetType, int resolution, Stream desStream)

Description:
     Convert to DOCX/TIFF with specified resolution and save it into stream.

Parameters:



public override void ConvertToDocument(DocumentType targetType, ImageCompress compression, String filePath)

Description:
     Convert to DOCX/TIFF with specified compression method and save it on the disk.

Parameters:



public override void ConvertToDocument(DocumentType targetType, ImageCompress compression, Stream desStream)

Description:
     Convert to DOCX/TIFF with specified resolution and save it into stream.

Parameters:



public override void ConvertToDocument(DocumentType targetType, string filePath, ImageOutputOption options)

Description:
     Convert to DOCX/TIFF with specified settings through options and save it on the disk.

Parameters:



public override void ConvertToDocument(DocumentType targetType, Stream desStream, ImageOutputOption options)

Description:
     Convert to DOCX/TIFF with specified resolution and save it into stream.

Parameters: