Code Samples - Neevia docCreator

Example 11: Merge 3 TIFF files into a single PDF - ASP.NET

Add a reference in your Visual Studio project to docCreator library.
To do this:
        a. On the Project menu, click Add Reference;
        b. On the COM tab, locate Neevia docCreator COM interface and then click Select;
        c. Click OK in the Add References dialog box to accept your selections.
Visual Basic Copy 
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
   <SCRIPT runat="server" language="VB">

     Sub Page_Load(Source As Object, e As EventArgs)

       Dim DC As Object : DC = CreateObject("Neevia.docCreator")

       DC.mergeMultipleTIFF("d:\file1.tif+d:\file2.tif+d:\file3.tif", "d:\out.tif")
       DC.convertImage("d:\out.tif", "d:\out.pdf")
       DC.fileDelete("d:\out.tif")

       DC = Nothing

       Response.Write("Done converting!!!")

     End Sub

   </SCRIPT>

C# Copy 
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
   <SCRIPT runat="server" language="C#">

     void Page_Load(object Source, EventArgs e)
     {

      Neevia.docCreator DC = new Neevia.docCreator();
      
      DC.mergeMultipleTIFF(@"d:\file1.tif+d:\file2.tif+d:\file3.tif", @"d:\out.tif");
      DC.convertImage(@"d:\out.tif", @"d:\out.pdf");
      DC.fileDelete(@"d:\out.tif");

      DC = null;

      Response.Write("Done converting!!!");

     }

   </SCRIPT>