Is it possible to use an array to print page templates from a popup menu? (using Adobe Acrobat Pro X)
I have a form that has 3 standard pages(fillable) with several templates arranged into three categories (instructions). I would like for the user to be able to print only the instructional pages needed by selecting them from a menu button. Is it possible to place the templates into an array by category that can be selected from a menu for printing?
var cChoice = app.popUpMenu( "Category A", "Category B", "Category C);
if (cChoice !=null){
switch (cChoice) {
case "Category A":
var a = new Array("Template_Page1", "Template_Page2", "Template_Page3", "Template_Page4","Template_Page5");
for (i = 0; i < a.length; i++){
a.spawn(this.numPages, false, false);}
//print Category A templates
break;
case "Category B":
var a = new Array("TemplateB_Page1", "TemplateB_Page2", "TemplateB_Page3");
for (i = 0; i < a.length; i++){
a.spawn(this.numPages, false, false);}
//print Category A templates
break;
case "Category B":
var a = new Array("TemplateC_Page1", "TemplateC_Page2", "TemplateC_Page3");
for (i = 0; i < a.length; i++){
a.spawn(this.numPages, false, false);}
//print Category A templates
break;
}
}
