The current page number is a single parameter of the document object. It's accessed with:
this.pageNum;
However, all field and annotation objects also have a page attribute. For Example
this.getField("MyField").page;
Of course this code applies only to AcroForm PDFs, not LiveCycle forms. If you want more specific information you need to provide more information on what it is you are trying to do, in which Acrobat forms technology. You should also read the Acrobat JavaScript documentation at:
this.pageNum;
However, all field and annotation objects also have a page attribute. For Example
this.getField("MyField").page;
Of course this code applies only to AcroForm PDFs, not LiveCycle forms. If you want more specific information you need to provide more information on what it is you are trying to do, in which Acrobat forms technology. You should also read the Acrobat JavaScript documentation at:
[url=http://www.adobe.com/devnet/acrobat/]http://www.adobe.com/devnet/acrobat/[/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script