Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Add new page by spawning from template  (Read 2426 times)

n1ck90

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
Add new page by spawning from template
« 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!
Logged

jasontran

  • Newbie
  • *
  • Karma: +0/-0
  • Posts: 1
Re: Add new page by spawning from template
« Reply #1 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.
Logged