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

Can you have an 'add new page' script?

New Here ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Hi,

Firstly Thank You for taking the time to read this...

...I have a form that I am creating in Acrobat Pro X, I am pretty new to Acrobat Forms but have managed to create quite an impressive form, however I need to be able to have an 'Add New Page' button on the bottom of the pages which would create a new page with a form template on it exactly the same as the previous page...

...is this possible in Acrobat Pro or would I have to use LiveCycle Form Designer?

If I have to use LiveCycle Form Designer can I import the forms I have created in Acrobat Pro and keep all the scripts in them or would I have to totally recreate the form again in Form Designer?

TOPICS
PDF forms

Views

658

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 ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Don't use LCD. It's pretty much a dead technology and the application is no longer bundled with Acrobat (your version, or maybe XI, is the last one that had it, I believe).

You can do it in a normal Acrobat form by using a Template object, which allows you to spawn copies of a page, and even lets you automatically rename the fields in it, so they are unique.

Votes

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
New Here ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Votes

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
New Here ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Votes

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
New Here ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Hi thank you for your reply.
How would I go about doing this please...is there a tutorial I could follow that you know of?

Votes

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 ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

This tutorial is quite old, but still relevant: Planet PDF - A Lesson in Templates for Adobe Acrobat

Votes

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
New Here ,
Apr 25, 2019 Apr 25, 2019

Copy link to clipboard

Copied

Thank you for your quick replies everyone, I think I have managed it, just need to work out how to script it so that it doesn't go to the end of the document.

How would I go about placing it after page 4, would this work:

var expTplt = getTemplate("tpltFormTemplate01");

expTplt.spawn(numPages-4,true,false);

???

Votes

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 ,
Apr 25, 2019 Apr 25, 2019

Copy link to clipboard

Copied

No, that will place it after the fourth page from the end of the file. Replace "numPages-4" with "3" (without the quotes) to achieve that.

Remember the page number is zero-based.

Votes

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
New Here ,
Apr 25, 2019 Apr 25, 2019

Copy link to clipboard

Copied

Hi try67,

Just one more quick question please:-

What would I put to add the page to the 'next page' (ie. the page after the one you're on), would it be "+1"

var expTplt = getTemplate("tpltFormTemplate01");

expTplt.spawn(+1,true,false);

Votes

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 ,
Apr 25, 2019 Apr 25, 2019

Copy link to clipboard

Copied

Use: pageNum+1

Votes

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
New Here ,
Apr 25, 2019 Apr 25, 2019

Copy link to clipboard

Copied

THANK YOU ever so much Try67. I really appreciate it very much. Adam

Votes

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 ,
Apr 24, 2019 Apr 24, 2019

Copy link to clipboard

Copied

Beware that spawning pages works in Acrobat Reader XI and DC only.

It works fine with Acrobat Pro and Acrobat Standard X, but not with Reader X and older versions.

Votes

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
Advocate ,
Apr 27, 2019 Apr 27, 2019

Copy link to clipboard

Copied

LATEST

… and how old is Reader X???

Votes

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