FYI: We're upgrading our website look and feel over the next 30 days. This page will be done soon!
Empower yourself with Image Conversion Tools from Softinterface.
 

'Convert Image to PDF' COM/ActiveX Interface

Using 'ConvertITP as an ActiveX Component

 

For COM+ (i.e. with IIS) users click here.

One very important note is that ConvertITP.EXE is both an executable application AND an ActiveX component.  That is, the file, ConvertITP.EXE, can be ran as a stand alone application, and, can be referenced as a component within your development environment.

In development environments such as VBA you may use something similar to the lines of code below to create an instance of the 'Convert Image to PDF' application object:

    Dim oConvertImageToPDFObject as Object

    Set oConvertImageToPDFObject = CreateObject("ConvertITP.clsConvertImageToPDF")

    Call oConvertImageToPDFObject.DoCommandLine("/JE:\Jobs\Test.SII")

Directly below is some VBS (Visual Basic Script). You could put the following 2 lines in a text file, call it Test.VBS and give it a go:

   Set converter = WScript.CreateObject("ConvertITP.clsConvertImageToPDF")
   Call converter.DoCommandLine("
/JE:\Jobs\Test.SII")

For Visual Basic users, simply make a reference to the ConvertITP.EXE file in the Tools\References menu item. Once done you will have access to the ConvertITP component. Here is some sample code illustrating its usage:

To download click the following links:


Private Sub Command1_Click()
  Dim citp As ConvertITP.clsConvertImageToPDF

 

  Set citp = New ConvertITP.clsConvertImageToPDF

  citp.Key = "" ' Assign Key To the 'Final Key', given upon purchase/registration.

 

  ' Run by the command line.  See 'Convert Image to PDF' documentation for a full listing of

  ' switches and options.

 

  ' Convert TestImage.BMP to Output.PDF, specify bitmap input by using /F0.

  '    Verbose output with /V. Remove /V to make it completely silent.

  lRetVal = citp.DoCommandLine("/sE:\delme\TestImage.BMP /TE:\delme\Output.PDF /F0 /V")

 

'  Example of specifying a 'Conversion Job File'

'  lRetVal = citp.DoCommandLine("/j""E:\delme\cj.sii""")

 

' DoCommandLine() Return Values

'  0 = Success

' -1 = Shareware expired

' -2 = Command line String Emtpy or invalid

' -3 = Missing required command line argument(s)

 

  If (lRetVal = 0) Then

    MsgBox ("Success!")

  Else

    MsgBox ("Failure.")

  End If

 

  Set citp = Nothing

End Sub

As you can see from the code above, the ActiveX simply wraps the command line feature. So, to learn what you can do with the ActiveX, please refer to the 'Using the Command Line' section of the 'Convert Image To PDF' user manual.  Also, you will have to change the path information in the DoCommandLine() method for your particular set of files you are comparing.

 

METHODS

     DoCommandLine()
     DESCRIPTION:

      This function emulates doing the command line, but through the COM interface.

      RETURN VALUES:
         0 = Success
        -1 = Shareware expired
        -2 = Command line String empty or invalid
        -3 = Missing required command line argument(s)