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 TQuickPDF0813.GetImagePageCountFromString(const Source: string): Integer;
ActiveX
Function QuickPDF0813.PDFLibrary::GetImagePageCountFromString(
Source As String) As Long
DLL
int QuickPDFGetImagePageCountFromString(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 |