Internally, pages are numbered 1 to N, where N is the value returned
pdfGetNumPages function, even if this doesn't
match up with the document page numbering. For example, if a document
has pages i-vii and 1-100, the PDF file will contain pages 1-107.
This function returns -1 if no PDF file is open.