Participating Frequently
March 8, 2022
Answered
Acrobat DC - Adding a Page in Middle of Multipage Document with Button Click
- March 8, 2022
- 7 replies
- 8545 views
Hello,
We have created a 16 page PDF with fields on each page for the user to fill out (attached).
On page 6 we have a button called Add Circuit Breaker Page. This button has the following JavaScript attached to create a duplicate of the Circuit Breaker Test Report page in the PDF.
var a = this.getTemplate("Circuit Breaker");
a.spawn();
this.calculateNow()

We need the new added page to appear as page 7 in the multipage PDF. Instead, the new page is added at the end of the PDF as page 17 - which we do not want. Is there a way for us to make the button click on page 6 to add the new page on page 7 instead of the end of the document?
Thanks for your help,
Brian
