I have a common bookmark list within multiple PDFs. I wish to have a number of Print this section links in this bookmark list and have each link execute a javascript that will print all the PDFs in a particulary directory. The directory will be different for each Print this section link.
I already have the following code that prints a list of PDFs from an Array but I would like to just specify a directory instead and have just the PDFs in that directory printed.
Many thanks in advance
Tony
________________________________________________________________________________
I already have the following code that prints a list of PDFs from an Array but I would like to just specify a directory instead and have just the PDFs in that directory printed.
Code:
var FileList = new Array(3);
FileList[0] = "Boiler controls/Feedtanks/p401_08.pdf"
FileList[1] = "Boiler controls/Feedtanks/p401_05.pdf"
FileList[2] = "Boiler controls/Feedtanks/p006_03.pdf"
for(i=0; i<FileList.length; i++)
{
var doc = app.openDoc(FileList[i], this);
doc.print(false);
doc.closeDoc();
}
Tony
________________________________________________________________________________