Spawning page
Hi,
I have a 9-page PDF with page 7 as a template, I have created a button on page 7 template page for spawning new pages, and here is the script I am using ("Task Card" is the template):
this.getTemplate("Task Card").
spawn(this.numPages-2,true,false);
I want the newly generated page to be placed right after the previously generated page, I wonder is there a better way to script it than simply "this.numPages-2"? And ideally, no matter on which page (all the generated pages have the page spawning buttons) I click the button to generate a new page, and the page will all be added at the end of the whole list of the spawned pages. Thanks a lot.
Regards,
