←Select platform

GetTotalPages(Stream) Method

Summary

Gets the number of pages in a stream.

Syntax
C#
VB
Objective-C
C++
Java
public int GetTotalPages( 
   Stream stream 
) 
Public Overloads Function GetTotalPages( _ 
   ByVal stream As Stream _ 
) As Integer 
- (NSInteger)totalPagesInStream:(LTLeadStream *)stream error:(NSError **)error 
public int getTotalPages(ILeadStream stream) 
public: 
int GetTotalPages(  
   Stream^ stream 
)  

Parameters

stream
A Stream containing the image data to query.

Return Value

Number of pages in the specified stream.

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(Stream stream, int pageNumber).

Requirements

Target Platforms

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

Leadtools.Codecs Assembly