Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Spawn PDF form template

Participant ,
Aug 18, 2019 Aug 18, 2019

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");

TOPICS
Acrobat SDK and JavaScript , Windows
1.0K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Aug 19, 2019 Aug 19, 2019

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");

Translate
Community Expert ,
Aug 18, 2019 Aug 18, 2019

You can hide the button.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Aug 19, 2019 Aug 19, 2019

ok so to create 100 copies, i have to press that button 100 times ??

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Aug 19, 2019 Aug 19, 2019
LATEST

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");

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines