Chinese Simplified (简体中文)

GetNumberOfPagesInImageFile Method of the Engine Object

This method returns the number of pages in an image file.



HRESULT GetNumberOfPagesInImageFile(
  BSTR                    ImageFilePath,
  IImagePasswordCallback* PasswordCallback,
  int*                    Result


int GetNumberOfPagesInImageFile(
  string                 ImageFilePath,
  IImagePasswordCallback PasswordCallback

Visual Basic .NET

Function GetNumberOfPagesInImageFile( _
  ImageFilePath As String, _
  [PasswordCallback As IImagePasswordCallback = Nothing] _
) As Integer


[in] This variable contains the full path to the image file.
[in] This variable refers to the interface of the user-implemented object of the type ImagePasswordCallback which is used to handle possible password requests for accessing images in PDF format. This parameter is optional and may be 0 in which case password-protected files cannot be processed.
[out, retval] A pointer to int variable that receives the return value of this method.

Return values

This method has no specific return values. It returns the standard return values of ABBYY FineReader Engine functions.

See also



24.03.2023 8:51:52

Usage of Cookies. In order to optimize the website functionality and improve your online experience ABBYY uses cookies. You agree to the usage of cookies when you continue using this site. Further details can be found in our Privacy Notice.