public static int getNumberOfPages ( RandomAccessFileOrArray s ) { try { return TIFFDirectory . getNumDirectories ( s ) ; } catch ( Exception e ) { throw new ExceptionConverter ( e ) ; } }
Gets the number of pages the TIFF document has .