Copy link to clipboard
Copied
Hi, I have one pages PDF form & i want to make 100 duplicates with unique field names. looks like bellow button code will work but i want to do it in once click. also after making 100 pages, i want to delete the buttons. anybody can help me to do it ??. thanks..
this.spawnPageFromTemplate("GMFT");
This method has been deprecated. Here's how you should do it (assuming there's only one Template in your file):
var t = this.templates;
var T = t[0];
var XO = T.spawn(this.numPages, true, false);
for (var i=0; i<=99; i++) T.spawn(this.numPages, true, false, XO);
And then you can remove the field like this:
this.removeField("SpawnPages");
Copy link to clipboard
Copied
You can hide the button.
Copy link to clipboard
Copied
ok so to create 100 copies, i have to press that button 100 times ??
Copy link to clipboard
Copied
This method has been deprecated. Here's how you should do it (assuming there's only one Template in your file):
var t = this.templates;
var T = t[0];
var XO = T.spawn(this.numPages, true, false);
for (var i=0; i<=99; i++) T.spawn(this.numPages, true, false, XO);
And then you can remove the field like this:
this.removeField("SpawnPages");