Determining the number of pages in an image file

Developers can use the GetNumberOfImagesInFile method to retrieve the number of pages in any supported multipage file format.