Open GoogleCodeExporter opened 9 years ago
Apparently the page you try to access does not exist in the document.
The PDF#pages method returns an array of Page objects, so they are indexed from
number 0.
If you want to reference the first page of the document, you can do either
pdf.pages.first or pdf.pages[0]. Then if you want to access the second page,
you have to do pdf.pages[1], and so on. pdf.pages[2] is actually referencing
the third page.
If your document actually does have at least three pages, then this is a bug. I
would like to get a look at the PDF file if this is the case.
Regards,
Guillaume
Original comment by guilla...@security-labs.org
on 4 Nov 2011 at 2:30
Original issue reported on code.google.com by
condor...@gmail.com
on 26 Oct 2011 at 12:30