0

Is there any method to count total no of pages in a word or pdf file in android??

I'm uploading a word or pdf file from phone to app and want to get total no of pages in that file. If anyone know how to do this plz ans me in comment section.

31st Jul 2020, 7:07 AM
Aditya Ranjan Pandey
2 Answers
0
1. Count the number of characters (including spaces) in the uploaded file (PDF is a bit tricky but feasible, both require removing formatting) 2. Determine the size of your page in number of characters. 3. Divide the first by the second.
31st Jul 2020, 8:15 PM
Skipper
Skipper - avatar
0
What I'm doing is just uploading a word or pdf file from phone to app and I want to get total no of page in that file without opening it. Is it possible?
1st Aug 2020, 11:34 AM
Aditya Ranjan Pandey