AuScGen.PDFOperation.PDFReader.GetNumberOfPages C# (CSharp) Method

GetNumberOfPages() public method

public GetNumberOfPages ( string sourcePdfPath ) : int
sourcePdfPath string
return int
        public int GetNumberOfPages(string sourcePdfPath)
        {
            PdfReader reader = null;         

            try
            {
                reader = new PdfReader(sourcePdfPath);
                return reader.NumberOfPages;
            }
            catch (Exception ex)
            {
                throw;
            }
        }