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.
2 Antworten
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.
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?