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

Page Number In A Text Box?

itzrandy
Registered: Aug 25 2007
Posts: 9
Answered

I realize there is probably a simple solution, but I simply can't find it. Maybe I'm not using the right terminology to search. Here's what I need to do. I need to have a named field text box that shows the current page number. I also need to know how to get the page number to show as the +1 code (not page 0 to start). Once I have that, then I need to have another field that takes that page field and multiplies it by 5. (i.e "footage" = "pNum" * 5). Once I get this set up, then I need to spawn this one document out over 1000 pages.

Since I know this will raise questions .... it's for a form known as an "x-sheet" which we use to track read cartoons (track read = phonetically write every sound that is produced at every frame) there are 16 frames per foot and 5 feet per page (hence the multiply page number by 5). I can't use the header/footer route as each show has a differing place that the page number and footage number shows up at.

What am I missing here? Is there a simple javascript that can be entered into a text field calculation to simply show the page number? As you can tell, I'm not an Acrobat programmer, I'm simply trying to move out of the stone age and stop hand writing out a thousand pages of phonetically spelled cartoon lines.

Any help would surely be appreciated!

Randy

My Product Information:
Acrobat Pro 9.3.1, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2399
http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=26236

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

itzrandy
Registered: Aug 25 2007
Posts: 9
I actually found this post a while later and tried it with no luck. Then I went into the code, added some spaces and made a few other typographical changes (don't ask me what, it was late) and then it suddenly worked.

So, then I simply copied the same code into another text box, changed the field name in the code and added * 5 to get my need to multiply by 5 and walla, there I had it. Seems a bit sloppy and I'm sure there's probably a better way to do this, but it works. So thanks for pointing me in that direction!