PDF Focus .Net - 100 % managed .Net assembly to convert PDF documents into DOC, RTF, Text and extract Text from PDF.
version 1.3.3 (February 9th, 2009)

Content | About PDF Focus .Net| Methods and properties | Samples of using in C#, VB.Net, ASP.Net | Purchase | License | Support and Contacts

Using PDF Focus.Net version in VB.Net and C#

Here you can find and download samples of using PDF Focus .Net.

I'm looking sample for:

 C#
 VB.Net
 ASP.Net


C# sample


1. Place the file "SautinSoft.PdfFocus.dll" into your bin directory.

2. In Visual Studio manually add a reference to the file "SautinSoft.PdfFocus.dll" via "Add reference" for the current project
. 

3. C# code sample:

 SautinSoft.PdfFocus p = new SautinSoft.PdfFocus();
 string pdfFile = @"d:\Example.pdf";
 string docFile = @"d:\Example.doc";
 if (p.ConvertFile(pdfFile, docFile) == 0)
 {
      //show result
      System.Diagnostics.Process.Start(docFile);
 }
 else
 {
      System.Console.WriteLine(p.Exception.Message);
 }
             

VB.Net sample


1. Place the file "SautinSoft.PdfFocus.dll" into your bin directory.

2. In Visual Studio manually add a reference to the file "SautinSoft.PdfFocus.dll" via "Add reference" for the current project
.

3. VB.Net code sample:

 Dim p As New SautinSoft.PdfFocus()
 Dim pdfFile As String = "d:\Example.pdf"
 Dim docFile As String = "d:\Example.doc"
 If p.ConvertFile(pdfFile, docFile) = 0 Then
   'show result
    System.Diagnostics.Process.Start(docFile)
 Else
    System.Console.WriteLine(p.Exception.Message)
 End If
 
               
               

ASP.Net samples stored in folder:

"PDF Focus .Net Trial (....)\Code samples\PDF Focus .Net - ASP.Net\"

 

Here you will find a small tips how to use our PDF Focus .Net in ASP.Net.

1. Open a sample ASP.Net project:

  • For C#: folder "PdfFocus - Sample 1 C", launch the file "ASP.Net - C.sln"
  • For VB: folder "PdfFocus - Sample 1 VB.Net", launch the file "ASP.Net - VB.sln"

2. In Visual Studio, find window "Solution Explorer" and right click to "Bin" and select "Add Existing Item ...":

3. Select the file "SautinSoft.PdfFocus.dll", it located in the folder "PDF Focus .Net Trial (...)" and click "Add":

Enjoy!!! Now you can compile project and start solution by pressing F5.