These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

page capture in the pdf

Arulselvann
Registered: May 21 2007
Posts: 4

How to capture the page no in the pdf using java script ,can you send me the script coding

My Product Information:
Reader 7.0.0, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
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:

[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