PRODUCTS | DOWNLOAD | PURCHASE | SUPPORT | BLOG | LIVE DEMOS | COMPANY Follow us on Google Plus SautinSoft on Facebook SautinSoft on Twitter
.Net Components Converts PDF, Word HTML5 with C#, VB .Net
 

 

How to convert PDF to Word in C# and VB.Net

 
 

If you are searching for a solution to convert PDF documents into Word-format in C#, stop the searching - you're in the right place! The PDF Focus .Net is only the one library designed for this purpose.

By creating the library, we've tried to cover all requirements from customers: only the .Net platform and nothing else, 32 and 64-bit support, Medium Trust level, converting of all types of PDF documents, works under Windows, Mac, Linux and a lot of other nuances.

So, here we'll show you in details how to convert a PDF document to Word-DOC in Visual Studio 2010.

You may watch all steps in video or take a tour on this page below:

Very simple example. For example, we've a two-page PDF document (412 Kb), version 1.5 - Zoo.pdf:

Sampe PDF document - zoo.pdf 1. Let's create an editable Word document from Zoo.pdf.

Step 1: Launch Visual Studio 2010. Click File->New Project->Visual C# Console Application. (video 1:08).

Type the application name and location, for example "pdf to word" and "c:\samples". (video 1:20).

Step 2: In the Solution Explorer right-click on "References" and select "Add Reference". Next add a reference to the "SautinSoft.PdfFocus.dll". (video 1:39).

Step 3: So, we've created an empty C# console application. Now type the C# code to convert our Zoo.pdf into Zoo.doc. (video 2:05).

C# code:


            SautinSoft.PdfFocus f = new SautinSoft.PdfFocus();

            f.Serial = "XXXXX";

            f.OpenPdf(@"d:\Zoo.pdf");



            if (f.PageCount > 0)

            {

                f.ToWord(@"d:\Zoo.doc");

            }

If you are developing in VB.Net all steps are very similar, except you will need to select Visual Basic Console Application in the step 1.

VB.Net code:


			Dim f As New SautinSoft.PdfFocus()

			f.Serial = "XXXXX"

			f.OpenPdf("d:\Zoo.pdf")



			If f.PageCount > 0 Then

				f.ToWord("d:\Zoo.doc")

			End If

Now build the application and launch it.
Resulted Word document - zoo.doc. Created from a pdf using c#.

Well done! Our congratulations, with help of the PDF Focus .Net library we've created an editable Word document Zoo.doc (2.54 Mb).

Try it for free now! Download the PDF Focus .Net, 6.5.6.13 (Jun 14th, 2017), 16.7 Mb.

 

 

Home | Contact | Privacy

Copyright © 2002 - 2017, SautinSoft (started from sautin.com). All rights reserved.