Acrobat User Community Forums

You are not logged in.     Log in to your AUC account.     Don't have an account? Sign up today

#1 2007-11-20 16:25:50

j_shell
Member
From: madison
Registered: 2007-11-16
Posts: 5

Detecting Reader Plugins

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.1 / Windows

Offline

 

#2 2007-12-05 01:23:04

thomp
Member

Registered: 2007-04-23
Posts: 1005

Re: Detecting Reader Plugins

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

Code:

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.

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2005 Rickard Andersson

AcrobatUsers.com  >>  User Groups • News • Events • Articles • Blogs • How To • Resources • Member Log in