Copy link to clipboard
Copied
Anyone have a javascript code that will attach an email as normal (via the email button) and add the subject line as the filename? I would like this to be a button on the toolbar. I'm using acrobat 9. Thanks!
Find the application's JavaScripts folder (probably something like: C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Javascripts), create a .js file in it, and place the following code in that file:
app.addToolButton({ cName: "CustomSendEmail", cLabel: "Attach to Email", cTooltext: "Attach to Email",
cExec: "this.mailDoc({cSubject: this.documentFileName});", cEnable: "event.rc = (event.target != null);"});
Restart the application and the button should appear in your toolbar.
Copy link to clipboard
Copied
Find the application's JavaScripts folder (probably something like: C:\Program Files (x86)\Adobe\Acrobat 9.0\Acrobat\Javascripts), create a .js file in it, and place the following code in that file:
app.addToolButton({ cName: "CustomSendEmail", cLabel: "Attach to Email", cTooltext: "Attach to Email",
cExec: "this.mailDoc({cSubject: this.documentFileName});", cEnable: "event.rc = (event.target != null);"});
Restart the application and the button should appear in your toolbar.
Copy link to clipboard
Copied
YES! Thank you! Worked perfect!