Nicomsoft OCR: Developer's Guide


Img_GetPageCount


Syntax

C++:int Img_GetPageCount(HIMG ImgObj)
C#:int Img_GetPageCount(int ImgObj)
Visual Basic:Function Img_GetPageCount(ByVal ImgObj As Integer) As Integer
Java:int Img_GetPageCount(HIMG ImgObj)
Delphi:function Img_GetPageCount(ImgObj:HIMG):integer


Description

Retrieves the number of pages in a multi-page image. Only the PDF, TIFF, and GIF formats support multiple pages. For any other format, 1 will be returned.


Parameters

ImgObj [IN] – the Image object.


Return value

If success, the number of pages; otherwise, an error code.


Remarks

None.


Example

See the sample code for the Svr_Create function.