GetImagePageCount

Image handling, Miscellaneous functions

Description

Returns the number of pages in the specified image file. Most images consist of 1 page, but TIFF images may contain multiple pages.

Syntax

Delphi

function TPDFlib.GetImagePageCount(Const FileName: WideString): Integer;

ActiveX

Function PDFlib::GetImagePageCount(FileName As String) As Long

DLL

int DLGetImagePageCount(int InstanceID, wchar_t * FileName);

Parameters

FileNameThe name of the image file to analyse.

Return values

0The image file is invalid or does not exist
Non-zeroThe number of pages in the specified image