My previous article, Convert PDF to HTML in C#, showed how to convert a PDF file to HTML in your .NET applications using Aspose.PDF for .NET API. Today, I am going to demonstrate another interesting feature of the API to convert PDF files to Word DOC and DOCX. Earlier versions of Microsoft Word saved documents in binary format with .doc extension. With the release of Office 2007, Microsoft adopted the Office Open XML (OOXML) that is based on a combination of XML and binary files combined together as ZIP archives. Word now uses .docx as the default extension for saving documents.
Convert PDF to Word DOC in C#
Aspose.PDF for .NET lets you read and convert PDF files to Word documents in your .NET applications with simple lines of code. The API can be used in WinForms, ASP.NET, web services or any .NET based application. The following code sample shows how to convert PDF to Word DOC using C#.
Convert PDF to Word DOCX in C#
Converting PDF to DOCX is similar to PDF to DOC conversion as shown earlier. The API has the DocSaveOptions class that allows you to set other options in addition to setting the document format to DOCX. The following code sample shows how to convert a PDF to Word DOCX in C#.
Want to know more about the powerful conversion features of Aspose.PDF for .NET? You can head-on to the API documentation section, Conversion of PDF to other formats, to know about a variety of conversion features that the API supports. Download your free copy of Aspose.PDF for .NET and you can get started in no time by following the API documentation. If you have any queries, feel free to post to Aspose.PDF forum. We’ll be glad to assist you with your queries and inquiries.
Learn more about Aspose.PDF for .NET
You can learn more about the API and leverage its capabilities in .NET applications.