LATEST
NEWS - 22nd September 2006Now with updated
examples for ASP.NET C#, VB, Coldfusion, PHP, VC++ as well as ASP.
Download the evaluation trial
here

What is TIFF Page Counter COM Component ?
TIFF Page Counter COM Component is for ASP, Cold
Fusion, VB, .NET, PHP, VC and other languages.
The com component will quickly tell you how many pages are in a TIFF file,
ideal for web sites that serve TIFF content.
Example .asp, vb, .NET, VC++, PHP & ColdFusion code included
simple ASP example of usage:-
Set Obj = Server.CreateObject("TIFFPAGECOUNTCOM.CTIFFPageCount.1")
dim pages
pages = Obj.GetPages("C:\yourtiff.TIF" )
simple VC++ example of usage:-
TIFFPAGECOUNTCOMLib::ICTIFFPageCountPtr *pc = NULL;
struct __declspec(uuid("{636CD4EF-6AFB-4707-98D0-8D2A26FA2241}")) IClass;
pc = new TIFFPAGECOUNTCOMLib::ICTIFFPageCountPtr( __uuidof(IClass) );
long pages = (*pc)->GetGetPages((char *)(_bstr_t)"C:\\yourtiff.TIF");
simple VB example of usage:-
Dim obj As TIFFPAGECOUNTCOMLib.CTIFFPageCount
Set obj = New TIFFPAGECOUNTCOMLib.CTIFFPageCount
dim pages
pages = obj.GetPages("C:\yourtiff.TIF")
simple ASP .NET using C# example of usage:-
TiffPageCountCom.CTIFFPageCount pc = new TiffPageCountCom.CTIFFPageCount();
int pages = pc.get_GetPages("C:\\yourtiff.TIF");
simple ColdFusion example of usage:-
<cfobject action = "Create" type = "COM" class = "TIFFPAGECOUNTCOM.CTIFFPageCount"
name = "Obj">
<cfoutput>Filename: #filename# : #Obj.GetPages( "C:\yourtiff.TIF" )#
Pages.</cfoutput>
simple PHP example of usage:-
$Obj = new COM("TIFFPAGECOUNTCOM.CTIFFPageCount");
$pages = $Obj->GetPages("C:\\yourtiff.TIF");