1 person found this helpful
PDFs are not HTML documents. HTML has no concept of a physical page and PDF only knows a page canvas.
To get the page number one uses the following code:
To set the page number one uses:
this.pageNum = 0; // goto first page
To goto the next page:
this.pageNum = this.pageNum++ // increment the page number and goto that page
To goto the last page:
this.pageNum = this.numPages--; // decrement the total number of pages
To goto the previous page:
this.pageNum = this.pageNum--; // decrement the page number
Thanks for the advice!
I have already managed to do the above navigation methods quite successfully.
I have also since posting this message found the answer via a web document:
It appears that if i tell it to go to previous view it has the same effect as a back button.
Thanks for the speedy response regardless!
With PDFs it is preveious files and not pages like on the web.