Page Numbers with Spawn Pages
Hello,
I have a 1 page PDF form which I have set to be a template. I have added in page numbers up in the top right of the header (page 1 of n). I have also added a button that when pressed will execute the following code:
var t = this.getTemplate("Template");
t.spawn(event.target.page + 1, true, false);
The problem is when the button to duplicate the pages is pressed the page numbering remains "Page 1 of 1" on both of the pages.
Is there some code I can add to the button that will tell the page numbering to update after I have added the button is pressed and the new page added?
Cheers,
Seb.
