It looks like there is no such page.
Most probably, the problem is here: instead of
for (int page = 1; page <= reader2.NumberOfPages; page++) {}
you need
for (int page = 0; page < reader2.NumberOfPages; page++) {}
Remember: in most cases indexing of elements is zero-based.
Next time use the Debugger; you will be able to dig out the problem in no time, with some minimal experience.
—SA