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 LongDLL
int DLGetImagePageCountFromString(int InstanceID, char * Source);Parameters
| Source | A 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
| 0 | The image data is invalid |
|---|---|
| Non-zero | The number of pages in the image |