GetImagePageCountFromString
Image handling, Miscellaneous functions
Version history
This function was introduced in Quick PDF Library version 7.19.
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 TDebenuPDFLibrary1811.GetImagePageCountFromString(
const Source: AnsiString): Integer;
ActiveX
This function is not available in the ActiveX edition
DLL
int DPLGetImagePageCountFromString(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 |
