Page 2 was requested but document has only 2 pages.

Unable to find the cause for it. Wat might be the cause for this error.