Hi Team,
The attached document contains a page, I need to get the page count of the document I’ve followed the below code, but did not get any response.
Document doc= new Document("PageNoError.docx");
int pgCount=doc.getPageCount();
System.out.println("pgCount: "+pgCount);
System.exit(0);
Document: PageNoError.docx (39.4 KB)
Regards,
Mahi