These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Spawn Templates

nishab
Registered: Feb 11 2009
Posts: 4

We have been using the following javascript to spawn duplicates from a template in adobe 7.

var response=app.response("How many pages");
for(var i=0;i

My Product Information:
Acrobat Pro 8.1, Windows
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Do you have any more information other than it's not working? Any errors? Does the template page have any form fields?

If you do not already have the Acrobat JavaScript reference, you should get it and look at the documentation for this method. There is some information that will be helpful to you.

You can use JavaScript to add the number to the pages you want, either by adding form fields and setting their values, or using text annotations (comments). You will probably want to flatten the pages too, which you can do via JavaScript.

George
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Have you checked a current version of the Acrobat JS API Reference. The "spawnPageFromTemplate()" method has an "X" in the quickbar box for version or depreciated. It is suggested that template object spawn method. It has been being depreciated since version 5, and is now not supported.

George Kaiser