PDF Vision .Net - component to convert images to PDF
version 1.2 (May 5th, 2008)
JPG to PDF, JPEG to PDF, TIF to PDF, TIFF to PDF, PNG to PDF, GIF to PDF, ICO to PDF, WMF to PDF, JPE to PDF, JFIF to PDF, BMP to PDF, EMF to PDF
  HelpContent | About PDF Vision .Net| Methods and properties | Samples of using in C#, VB.Net, ASP.Net| License | Pricing | Support and Contanst


Using PdfVision.dll in VB.Net and C#

Examples for using DLL in:

 C#
 VB.Net



C# sample - download (529 Bytes)

 

1. Place the files "PdfVision.dll" into your bin directory.

2. In VisualStudio.net manually add a reference to the file PdfVision.dll via "Add reference" for the current project
.

 

3. C# code sample:


using System;
namespace ExamplePdfVision
{
   class Class1
   {
   
      static void Main(string[] args)
      {
                 
         //create object (instance) of rtf2pdf converter
         SautinSoft.PdfVision i = new SautinSoft.PdfVision();
         //set converter options (not required)
         i.PageStyle.PageSize.Letter();
         i.ImageStyle.Height = 200;
         i.ImageStyle.Width = 200;
         i.ImageStyle.IntervalImage = 15;
         i.ImageStyle.Across = false;
         //convert file
         i.ConvertFolder("d:\\","d:\\1.pdf");
         System.Diagnostics.Process.Start("d:\\1.pdf");
        }
   }
}
             

             

             
 
 

VB.Net sample - download (232 Bytes)

1. Place the file "PdfVision.dll" into your bin directory.

2. In VisualStudio.net manually add a reference to the file PdfVision.dll via "Add reference" for the current project
.

 

3. VB.Net code sample:
Module Module1
Sub Main()
Dim i As New sautinsoft.PdfVision()
i.ConvertFile("D:\1.jpg", "D:\1.pdf")
End Sub
End Module