Reordering Pages in a File on Disk

 

Use ReorderTiffFile from the BiTiff DLL or OCX for reordering pages.

 

[C++]

 

/* Reordering pages in a TIFF file*/

 

BOOL bRet;

 

// 1. parameter: Path and name of the image file to reorder

 

bRet = ReorderTiffFile(“C:\\Images\\Test.tif”);

 

if (!bRet)

{

            // Error

}

 

 

[VB]

 

‘ Reordering pages in a TIFF file

 

Dim BITiffobj As Object

Dim bRet As Boolean

 

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

 

‘ 1. parameter: Path and name of the image file to reorder

 

bRet = BITiffobj.ReorderTiffFile(“C:\Images\Test.tif”)

Set BITiffobj = Nothing

 

If Not bRet Then

            ‘ Error

End If

 

[C#]

 

/* Reordering pages in a TIFF file*/

 

bool bRet;

 

// 1. parameter: Path and name of the image file to reorder

 

bRet = BiTiff.ReorderTiffFile(“C:\\Images\\Test.tif”);

 

if (!bRet)

{

            // Error

}