Revu Specifics => Revu Forms => Topic started by: n1ck90 on March 03, 2021, 05:13:44 AM

Title: Add new page by spawning from template
Post by: n1ck90 on March 03, 2021, 05:13:44 AM
I have a form with a button that when clicked I would like a new page to be added to the end of the document. After reading a few forum posts and reviewing the "JavaScript for Acrobat API Reference" document, it seems that the following line of code would do the trick for Acrobat:
this.getTemplate("temp1").spawn();
where "temp1" is the name of a template I have set up in Bluebeam. However, this does not seem to work in Bluebeam, at least not for me. Has anyone got this working in Bluebeam? Perhaps you could advise where I am going wrong. Alternatively, does anyone know of another way to add a new page to a document upon the click of a form button?
Thanks!
Title: Re: Add new page by spawning from template
Post by: jasontran on November 03, 2021, 05:38:55 PM
Did you ever figure this out?  I have the same issue.  It would spawn a page, but the page is not really valid and crashes Revu.