GetImagePageCountFromString

Image handling, Miscellaneous functions

Description

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

Syntax

Delphi

function TPDFlib.GetImagePageCountFromString(Const Source: AnsiString): Integer;

ActiveX

Function PDFlib::GetImagePageCountFromString(Source As String) As Long

DLL

int DLGetImagePageCountFromString(int InstanceID, char * Source);

Parameters

SourceA string containing the image data. In the ActiveX version of the library this string must contain 16-bit characters, only the lower 8-bits of each character will be used.

Return values

0The image data is invalid
Non-zeroThe number of pages in the image