If it is a dynamic PDF then the page number is not always obvious. You need to identify an object on the page first, then you can get the page number the object is on. For example if the main object for the help page is "Help1":
var oHelpPage = xfa.form.resolveNode("$..Help1"); var nPage = xfa.layout.absPage(oHelpPage); xfa.host.currentPage = nPage;
xfa.host.currentPage = 5; // To go to page 5
If it is a dynamic PDF then the page number is not always obvious. You need to identify an object on the page first, then you can get the page number the object is on. For example if the main object for the help page is "Help1":
var oHelpPage = xfa.form.resolveNode("$..Help1");
var nPage = xfa.layout.absPage(oHelpPage);
xfa.host.currentPage = nPage;
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script