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??
Asked
Active
Viewed 216 times
-3
-
1This 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 Answers
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
-
can you share some link to learn basics about Apache API? I am a beginner. – Raushan Singh Feb 16 '18 at 12:32
-
-
-
here is exact sample project about apache POI https://github.com/SUPERCILEX/poi-android – Muhammad Bilal Aslam Feb 20 '18 at 11:23
-
If you want to work with Excel you can also concern with this link http://www.cuelogic.com/blog/creatingreading-an-excel-file-in-android/ – Muhammad Bilal Aslam Feb 20 '18 at 11:27