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

Detecting Reader Plugins

j_shell
Registered: Nov 16 2007
Posts: 25

I have a PDF form created in Acrobat 8 (not LiveCycle). The form has a submit button that generates an email and attaches an XFDF file. Everything works fine in Reader 7 & 8. However, I tested it on one machine with Reader 6 and it did not work. I received an error message telling me I must open the file in a browser window. When I do this, it submits the file to my email, but it comes as a POSTDATA file.
 
After some checking, I discovered that the SendMail plugin is not installed on the machine. I'm guessing this is the cause of my problems?? If so, is there a way to check for this plugin and, if it is missing, alert the user? If this is not the problem, any thought on what is?
 
Thank you,
Justin

My Product Information:
Acrobat Pro 8.0999999999999996447286321199499070644378662109375, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The JavaScript "App" object has a property called "plugIns", which is an array of all the currently installed plug-ins.

Test for your plug-in with this function

function TestForPlugIn(){for(var i=0;i i++){if( app.plugIns[i].name == "SendMail")return true;}return false;}
Replace "&lt" with the lessthan symbol. Place this function in a document script and call it whenever you want to test for the "SendMail" plug-in.

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