You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@poi.apache.org by "mr.jonze" <mr...@gmail.com> on 2006/05/25 19:50:51 UTC
How to count the number of pages in a Word document
Hey!
I'm working in an aplication and i need to get the number of pages in a
certain Word document. Is there any available method in the Jakarta API?
Thanks.
Re: How to count the number of pages in a Word document
Posted by Rainer Klute <kl...@apache.org>.
Am Donnerstag, den 25.05.2006, 14:50 -0300 schrieb mr.jonze:
> I'm working in an aplication and i need to get the number of pages in
> a
> certain Word document. Is there any available method in the Jakarta
> API?
You could give HPSF a try and use
org.apache.poi.hpsf.SummaryInformation.getPageCount().
Best regards
Rainer Klute
Rainer Klute IT-Consulting GmbH
Dipl.-Inform.
Rainer Klute E-Mail: klute@rainer-klute.de
Körner Grund 24 Telefon: +49 172 2324824
D-44143 Dortmund Telefax: +49 231 5349423
Public key fingerprint: E4E4386515EE0BED5C162FBB5343461584B5A42E