Adobe Acrobat Pro - Looking to enable a hidden page spawned to the CURRENT page using Javascript
Hello, I am a bit stuck as I am also new a Javascript novice.
I have been using this script for an application to enable an applicant to add a specific set a hidden page template (ResidencePage) to the doc at a certain point.
var a = this.getTemplate("ResidencePage");
a.spawn(6, false, false);
That adds it after page 6. But, later in the doc, I want to add this function again for a different hidden page template page.
However, using this function earlier, changes the page order and screws things up for the later pages.
Is there a way I can change the javascript formula to spawn the page to whatever the current page the user is on (as the page number may change from the earlier action)?
