Spawning pages with page numbers "page 1 of 1"


i'm using calculation script define "page 1 of 2" in form. script follows.

 

//set page number number 1

 

this.pagenum = 1;

 

//use page of page format

 

event.value = "page " + (event.target.page+1)+" of " + (this.numpages);

 

this works fine, however, when start spawning pages numbers mixed up. example, if spawn 1 page, "page 1 of 1" on page 1 changes "page 1 of 2." on page two, reads "page 0 of two." can't seem "page n of n" work spawned pages. suggestions help.

 

thank you

the first line of script not necessary, second one.

and did set parameter rename fields on spawned pages true?



More discussions in JavaScript


adobe

Comments

Popular posts from this blog

Thread: Firefox print dialog doesn't remember settings

Error 400 - Photoshop services are not available

After Effects error:creating resource file on Windows