Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Rename PDF and email with Adobe reader 9 script

Rename PDF and email with Adobe reader 9 script

Rename PDF and email with Adobe reader 9 script


I want to be able to rename a PDF document in specific format, then provide user option to email PDF as attachment

Problem is it does't work in Adobe Reader 9 , even with Enable menu items Javascript execution privileges

It does work however with Adobe Acrobat Professional 8.

The Debugger throws this error when executing in Adobe Reader 9

RaiseError: This operation is not permitted.
Doc.saveAs:16:Menu Send Document to FCL Client:Exec
===> This operation is not permitted.

I understand that Adobe Reader cannot save any modifications to the the document content, however I not modifying content here, just renaming the document.

in adobe reader there is an option for Save A Copy, is there a javascript equivalent to this command.


or any other options to achieve this?




        cExec: "SendDoc();",
              cParent: "Edit",
             cName: "Send Document"

function SendDoc() {

var dialogTitle = "Enter number";
var defaultAnswer = "";
var reply = app.response("Please enter 6digit number",
dialogTitle, defaultAnswer);

var myPath = "~~" + reply + "~~" + "Report_" + reply + ".pdf";

this.mailDoc(true, "edocuments@test.com", "cc test@test.com", "", myPath );



Also tried posting the question here: http://forums.adobe.com/thread/868891?tstart=0 but have had no real help


Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close