Create Single Page TIFF Files

Q:  How can I create a single page TIFF file?

A:  You can create easily a single page TIFF file from multipage TIFF files with DeleteTiffImagemethod. You can delete specified page with this method. This method is in the BITIFF.OCX. You can also use the SplitTiffFilemethod. See the Split a Multipage TIFF File section.

 

Code example:

       Dim BITiffobj As Object

       Dim bSuccess As Boolean

       Dim filename As String

       filename = “c:\test.tif”

       Set BITiffobj = CreateObject("BITIFF.BITiffCtrl.1")

       bSuccess = BITiffobj.DeleteTiffImage(fileName, 2, True)

       Set BITiffobj = Nothing