Hi Nick, I have searched some *.doc file in the internet, for example here is my test doc file: http://www.google.hu/url?sa=t&source=web&ct=res&cd=1&ved=0CBMQFjAA&url=http%3A%2F%2Fwww.tannedfeet.com%2FGeneral_Partnership_Agreement.doc&rct=j&q=General_Partnership_Agreement.doc+&ei=9HIFTJKgAqOJOO7LgYYF&usg=AFQjCNE1tqc4-TONsmOQxyOjbU_FsQD6rw&sig2=u1aYJsTu_fTLApsA5Puc0Q
I check the number of pages in word. The statistics page shows that the document contains 16 pages. How can I update the properties? Can I update it with apache poi? My problem is that I do not prepare the *.doc files. They have created by unknowns users... On 1 June 2010 22:38, Nick Burch <[email protected]> wrote: > On Tue, 1 Jun 2010, Mr Zappee wrote: > >> This code does not throw any exception, but it is not working very well, >> because getPageCount() always return to 1. I tried it to lots of *.doc >> files, but the value of getPageCount was always 1. >> > > I suspect that if you look in office, it'll show a pagecount of 1 too. HPSF > only shows you the information that the application saved there as a cache, > so you'll need to get office to update the properties before they'll hold > something useful for your documents > > Nick > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
--------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
