Skip to main content
Participant
July 18, 2018
Question

How do I build a button that creates a new blank page with Acrobat XI

  • July 18, 2018
  • 1 reply
  • 1001 views

How do I build a button that creates a new page with the same format but the data is blank? i.e. I used the JavaScript command "var.a=this.getTemplates("Second Page");a.spawn();" and it creates the new page, but it copies over all the data from that page into the new page....I want the new page to be blank (with the same formatting)...what do I need to change to the code?

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
July 18, 2018

You need to specify the bRename parameter of the spawn method as true, and then you need to reset all the fields on the newly created page. Either that or use a (hidden) Template page with empty fields and spawn the new pages from it.

Participant
July 18, 2018

Thanks! Do you have the bRename parameter of the spawn as true code? Thanks!

try67
Community Expert
Community Expert
July 18, 2018

Correct.