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?
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.
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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?
Copy link to clipboard
Copied
This tutorial is quite old, but still relevant: Planet PDF - A Lesson in Templates for Adobe Acrobat
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);
???
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.
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);
Copy link to clipboard
Copied
Use: pageNum+1
Copy link to clipboard
Copied
THANK YOU ever so much Try67. I really appreciate it very much. Adam
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.
Copy link to clipboard
Copied
… and how old is Reader X???