public static int GetDocumentPagesCount(string fileName)
{
int NoOfPages = 0;
if (File.Exists(fileName))
{
PdfReader reader = new PdfReader(fileName);
NoOfPages = reader.NumberOfPages;
}
return NoOfPages;
}
{
int NoOfPages = 0;
if (File.Exists(fileName))
{
PdfReader reader = new PdfReader(fileName);
NoOfPages = reader.NumberOfPages;
}
return NoOfPages;
}
No comments:
Post a Comment