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

Acropdf: close AcroRd32.exe

teox80
Registered: Feb 6 2008
Posts: 2

Hi,
I use this code to print a pdf file:

function OpenAndPrintPDF(pdfUrl)
{
PDF.LoadFile(pdfUrl);
PDF.SRC=pdfUrl;
PDF.PrintAll();
}

and it works.
Now I have two PDF and i want to print them on two different printers, so I create two page like above and i make a vbscript to change the default printer on body onload event. The script works well and changes the default printer, but the acropdf object prints always on the first printer.
I see Acro32rd.exe stays on task manager also when I close the page, perhaps the problem is here.
Can anyone help me? Can I close Acro32rd.exe process? Is there any method?
Thank you.

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Read the Acrobat Interapplication Communication Reference and the guide. There are functions you can access through HTML JavaScript to do some of this. Look at the ActiveX interface for the browser.

Get it from here:
http://www.adobe.com/devnet/acrobat/

Click on the Documents Tab

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