GetNumberOfPagesInImageFile Method of the Engine Object

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

Syntax

C++

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

C#

int GetNumberOfPagesInImageFile(
  string                 ImageFilePath,
  IImagePasswordCallback PasswordCallback
);
    

Visual Basic .NET

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

Parameters

ImageFilePath
[in] This variable contains the full path to the image file.
PasswordCallback
[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.
Result
[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

Engine

IImagePasswordCallback

17.09.2024 15:14:40

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.