When we are calculating number of pages for attached documents, program is hanging. During debug, count of pages is giving error “Function evaluation timed out.” and some times gives large page count.
public static void PageCount(String FileIn)
{
Document doc = new Document(FileIn);
Console.WriteLine(doc.PageCount);
Console.ReadLine();
}
pagecount.zip (663.9 KB)