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

Spawn PDF form template

Explorer ,
Aug 18, 2019 Aug 18, 2019

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

TOPICS
Acrobat SDK and JavaScript , Windows

Views

341

Likes

Translate

Translate

Report

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

Likes

Translate

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

Copy link to clipboard

Copied

You can hide the button.

Likes

Translate

Translate

Report

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
Explorer ,
Aug 19, 2019 Aug 19, 2019

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

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