Image Viewer CP ActiveX Control

Image2PDF

 

Convert image to PDF file. If the image is multipage TIFF images, it will converted multipage PDF file.

Public Function Image2PDF( _
  ByVal strInputFile As String , _
  ByVal strOutputFile As String, _
) As Integer

 

Parameter
strInputFile
the input image file.

strOutputFile
the output pdf file name.


Return Value

Return 1 - Successful
Return 0 - Failed


Example

   

Visual Basic Syntax
ImageViewer1.Image2PDF "c:\test.tif" ,"c:\new.pdf"