Changed the index of the PDDocument ArrayList