form fields need recalculation after pages are inserted or prior to viewing, printing
Posted on 2011-02-11
I have a two-page PDF (sample.pdf) that has a different form field (field01, field02) on each page that contains the formula:
event.value = "Page " + (event.target.page + 1) + " of " + this.numPages;
This lets each page calculate its own position within the document. This works fine until I insert a cover page. The revised document continues to show "Page 1 of 2" and "Page 2 of 2" until I bring up the console and manually call this.calculateNow(). Then the fields recalc and show "Page 2 of 3" and "Page 3 of 3" like I want. I want to change sample.pdf so that it recalculates after pages are added / deleted / moved or before it is viewed or printed. What event can I change so that sample.pdf is an easily insertable component of packets that I create?