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.
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.
Well done! Our congratulations, with help of the PDF Focus .Net library we've created an editable Word document Zoo.doc (2.54 Mb).