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

Print from IE browser

Sophia
Registered: Jun 29 2007
Posts: 2

Hello! I am trying to batch print a set of pdf's from IE browser. I included the acropdf object (from Adobe 7) in the .asp and wrote a function PrintPDF (below) to 'silent' print the files. I dynamically build another function with repeated calls to PrintPDF(), but only the first file prints, unless I uncomment the alert() statement. Does anyone know why? Having the user acknowledge each print job kinda defeats the purpose of batch printing.
 
In this example, only file1.pdf prints, the others are ignored:
 
function PrintPDF(pdfUrl)
{
PDF.SRC=pdfUrl;
PDF.PrintAll();
// alert(pdfUrl);
}
 
function BatchPrintPDF()
{
PrintPDF('\\\\myserver\\mypath\\file1.pdf');
PrintPDF('\\\\myserver\\mypath\\file2.pdf');
PrintPDF('\\\\myserver\\mypath\\file3.pdf');
}
 
Thanks for your help!
Sophia

My Product Information:
Reader 7.0.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Must be a timing problem. Try putting something else in place of the Alert that will cause a delay.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script