/** Gets the number of pages the TIFF document has. * @param s the file source * @return the number of pages */ public static int GetNumberOfPages(RandomAccessFileOrArray s) { return(TIFFDirectory.GetNumDirectories(s)); }