This content has been marked as final.
Show 2 replies
-
1. Re: Is there anyway to remove a spawned template once it has been created?
George_Johnson Jun 26, 2014 4:23 PM (in response to jajawheels)You can delete a page that was added as a result of spawning a template using the doc.deletePages JavaScript method. But if you only want to allow a template to be spawned once, there are better ways to approach the problem. As script can check to find out how many pages are currently in the document and not spawn if it's already been done. It's easier to not do something if not needed rather than undo.
-
2. Re: Is there anyway to remove a spawned template once it has been created?
jajawheels Jun 27, 2014 9:07 AM (in response to George_Johnson)Thanks George. I was able to insert a simple if/else into the script to achieve this.
What would the method be for deleting a page if I wanted a button on the page to have an action which would delete the second page of the pdf?


