convert page indices from 1-based to 0-based to match pdfListView positions