iTextSharp.text.pdf.codec.JBIG2SegmentReader.NumberOfPages C# (CSharp) Method

NumberOfPages() public method

public NumberOfPages ( ) : int
return int
        public int NumberOfPages() {
            return pages.Count;
        }

Usage Example

Example #1
0
        /***
         * Gets the number of pages in a JBIG2 image.
         * @param ra    a random acces file array containing a JBIG2 image
         * @return  the number of pages
         */
        public static int GetNumberOfPages(RandomAccessFileOrArray ra)
        {
            JBIG2SegmentReader sr = new JBIG2SegmentReader(ra);

            sr.Read();
            return(sr.NumberOfPages());
        }
All Usage Examples Of iTextSharp.text.pdf.codec.JBIG2SegmentReader::NumberOfPages