-3

How to get a number of pages of msword file in the android studio ?? I know the URI of that file. I don't want to open that file in my app. is it possible to know the number of pages of msword file? if yes how??

Phantômaxx
  • 37,901
  • 21
  • 84
  • 115
  • 1
    This has already been answered. [https://stackoverflow.com/questions/45510867/apache-poi-get-page-count-in-doc-document](https://stackoverflow.com/questions/45510867/apache-poi-get-page-count-in-doc-document) – Tom Alabaster Feb 16 '18 at 12:13

1 Answers1

0

You could try the Apache API for word Docs:

It has a method for getting the page count:

public int getPageCount()

It will return the page count or 0 if the SummaryInformation does not contain a page count.

Bhushan Uniyal
  • 5,575
  • 2
  • 22
  • 45