How to C#: Converter
Use Convert SDK for C#
Convert to Microsoft Word (.docx)
  |  
Home ›› XDoc.Converter ›› C# Converter: Convert to Word

C# Convert: PDF to Word: How to Convert Adobe PDF to Microsoft Word (.docx) File


High Quality PDF to Word Conversion SDK Library for .NET






Easy to install XDoc.Converter for .NET into Visual Studio (2005+) .NET application


Empower C# users to easily convert PDF document to Word document


Support fast Word and PDF conversion with original document page size remained


Microsoft Office Word 2003 (.doc) and 2007 (.docx) versions are available


Provide free C# demo code for converting to MS Word from PDF file




C#: PDF to MS Word Conversion Demo



After integrating XDoc.Converter for .NET SDK into your C# .NET project, you may directly use the following sample code to have a quick evaluation of PDF to MS Word conversion functionality.


Add necessary references to your C# project:


  RasterEdge.Imaging.Basic.dll


  RasterEdge.Imaging.Basic.Codec.dll


  RasterEdge.Imaging.DICOM.dll


  RasterEdge.Imaging.Font.dll


  RasterEdge.Imaging.Drawing.dll


  RasterEdge.Imaging.JBIG2.dll


  RasterEdge.Imaging.JPEG2000.dll


  RasterEdge.Imaging.Processing.dll


  RasterEdge.XDoc.Converter.dll


  RasterEdge.XDoc.Excel.dll


  RasterEdge.XDoc.Office.Inner.Common.dll


  RasterEdge.XDoc.Office.Inner.Office03.dll


  RasterEdge.XDoc.PDF.dll


  RasterEdge.XDoc.PowerPoint.dll


  RasterEdge.XDoc.TIFF.dll


  RasterEdge.XDoc.Word.dll


  RasterEdge.XImage.AdvancedCleanup.Core.dll


  RasterEdge.XImage.OCR.dll


  RasterEdge.XImage.OCR.Tesseract.dll


  RasterEdge.XImage.Raster.Core.dll


  RasterEdge.XImage.Raster.dll


Use the namespaces


  using RasterEdge.Imaging.Basic;


  using RasterEdge.XDoc.Converter;



// Used to register all DLL assemblies.
WorkRegistry.Reset();

// Define input and output files path.
String inputFilePath = @"***.pdf";
String outputFilePath = @"***.docx";

// Convert PDF to Word.
ConvertResult result = DocumentConverter.ToDocument(inputFilePath, outputFilePath, FileType.DOC_MSDOCX);

// ...





C#: Advanced PDF to Word Conversion Options



For PDF to Word document conversion, C# programmers are able to set and customzie some options.


UseDefaultPageSize: Determine whether your PDF to Word conversion will use the page size defined in input file. Default: true.


FitToPageMode: Determine whether to resize the input image size to fit the page size in output Word file. Default: FitToPageMode.None.


PageWidth: Set the target Word document page width in inch, which be only available if UseDefaultPageSize is set to false. Default: 8.27F.


PageHeight: Set the target Word document page height in inch, which be only available if UseDefaultPageSize is set to false. Default: 11.7F.