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

this.SaveAs Acrobat X Standard

jmchambers
Registered: Sep 16 2011
Posts: 1

All -- I am new to this and have created the following below. The idea is to perform a saveas and save the file to another location and new name under a menu item. I had this working in Acro 8 standard but I just received a new machine with 10 and now it is no longer functioning. Any help would be appreciated.
  
app.addMenuItem({ cName: "New SaveAs", cParent: "File", nPos: 25, cExec: "SveAs(1)"});
   
function SveAs(ARG)
{
this.saveAs("/C/Users/ChambJa1/Desktop/12345/1.pdf");

}

My Product Information:
Acrobat Standard 10.1, Windows
try67
Expert
Registered: Oct 30 2008
Posts: 2398
You have to run it from a trusted context.
Read this: http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

cdentistry
Registered: Sep 16 2011
Posts: 1
By trusted function I presume you mean from the path:C:\Program Files\Adobe\Acrobat 10.0\Acrobat\Javascripts\xxx.pdf

Once I save the script to this path how do I trigger the pdf doc to save? Do I go to File menu and then save?

Please advise?

Thanks,

Sanjit SINGH
dentistry [at] cdentistry [dot] ca
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307

George Kaiser