counts the number of pages in a given PDF file
Input:
- Uri of PDF file via Intent.putDataAndType() (should point to a file located on the SD card)
Output:
- number of pages via Intent.getExtras().getInt("PAGES") (the number is zero if a problem occurred)
- Uri of PDF file via Intent.putDataAndType() (Uri of PDF file, mirrored for convenience)