←Select platform

GetTotalPages(string) Method

Summary
Gets the number of pages in a disk file image.
Syntax
C#
VB
Objective-C
C++
public int GetTotalPages( 
   string fileName 
) 
Public Overloads Function GetTotalPages( _ 
   ByVal fileName As String _ 
) As Integer 
- (NSInteger)totalPagesInFile:(NSString *)file error:(NSError **)error 
public: 
int GetTotalPages(  
   String^ fileName 
)  

Parameters

fileName
A String containing the name of the image file to query.

Return Value

Number of pages in the specified file.

Remarks

GetInformation and GetFormat use GetInformation internally. So, if more information about the image is required, it is recommended to call GetInformation directly and obtain the data once.

Example

For an example, refer to Load(string fileName, int pageNumber).

Requirements

Target Platforms

Help Version 21.0.2021.7.2
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.

Leadtools.Codecs Assembly
Products | Support | Contact Us | Intellectual Property Notices
© 1991-2021 LEAD Technologies, Inc. All Rights Reserved.