If we have docx file, which could have one page of content or two pages of content, is there anyway to figure out the docx has one page or two pages programmatically?
Thanks
Hi Yong,
Thanks for your inquiry. You can simply use following line to get number of pages in Word document:
int pages = doc.getPageCount();
Best regards,