DD. DD. - 4 years ago 465
Java Question

Number of pages in a word doc in java

Is there an easy way to count the number of pages is a Word document either .doc or .docx?


Answer Source

You could try the Apache API for word Docs:


It as a method for getting the page count:

public int getPageCount()

Returns: The page count or 0 if the SummaryInformation does not contain a page count.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download