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

Need examples of using Doc.saveAs

Jesus
Registered: Mar 27 2007
Posts: 54

I need some functional exapmples of using the function Doc.SaveAs.
 
I need to save a copy of a fillable form usin a button with JavaScript. I understand that using Doc.saveAs function is the way to do it. But I have not figure it out yet how to code it.
 
Please need help!!!! Thanks

My Product Information:
Acrobat Pro 8, Windows
pdftrainer
Expert
Registered: Dec 14 2005
Posts: 180
app.execMenuItem("SaveAs");

works in both LiveCycle and Acrobat forms.

A certified expert on Adobe Acrobat, Carl Young is an Adobe Acrobat and LiveCycle Designer trainer and consultant based in Phoenix. He is the producer of the [link=http://www.pdfconference.com/]PDF Conference[/link].

Jesus
Registered: Mar 27 2007
Posts: 54
Hi Carl!

yes it worked! Can I pass parameters like tha path, file name, file type, etc? and make it transparent to the user. I dont want the saveas dialog show up. How?

Thanks!
JohnR
Registered: Apr 25 2007
Posts: 13
Hi

I just wanted to find out whether that line would work in Reader 5.0/Acrobat 5.0

I've enabled user rights in Acrobat Pro 8.0, and my client's have Reader 5.0/Acrobat 5.0, but when they click on the save as button they get this message:

Acrobat EScript Built-in Functions Version 5.0
Acrobat Annotations / Collaboration Built-in Functions Version 5.0

uncaught exception:Field Save:Mouse Up:1: App.execMenuItem Security settings prevent access to this property or method.

Any suggestions?

Thanks so much
aajay
Registered: Jul 2 2009
Posts: 2
so what is the right answer
try67
Online
Expert
Registered: Oct 30 2008
Posts: 2399
According to the reference file, execMenuItem("SaveAs") in versions up to 7 can only be called during batch, console or menu events.

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

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
jesus wrote:
Hi Carl!yes it worked! Can I pass parameters like tha path, file name, file type, etc? and make it transparent to the user. I dont want the saveas dialog show up. How?

Thanks!
Here is a similar case:
Maybe helpful for you.

http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=17558

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs