Acrobat User Community Forums

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

#1 2008-01-01 23:40:19

PhilHocker
Member
Registered: 2008-01-01
Posts: 0

File Name for Safe File button

Dear AUC,
Like several other postings, I want to put a "Save As" button in forms.  Users should be able to hit the button and have their completed form saved as a file, with the file name calculated with js using entries in the form.

Can you help?  Many thanks.

Phil


My Product Information:
Acrobat Pro 8.1 / Windows

Offline

 

#2 2008-01-02 10:20:43

pddesigner
Member

Registered: 2007-04-24
Posts: 64

Re: File Name for Safe File button

Add this JS to the mouse up event and name your file as mentioned.

app.execMenuItem("SaveAs");

Make sure you enable Reader extensions before saving the pdf.

Offline

 

#3 2008-01-02 14:32:34

PhilHocker
Member
Registered: 2008-01-01
Posts: 0

Re: File Name for Safe File button

Eugene, thanks for your answer.

Could you help me a bit further?
In your example, is
MenuItem("SaveAs") a command
that saves the file?

Where does the pre-computed
file name get used as an argument?

Could you give a more
extensive example?

Many thanks.  Happy New Year!

Phil.

Offline

 

#4 2008-04-11 00:51:26

alscott
Member
Registered: 2007-11-02
Posts: 71

Re: File Name for Safe File button

Yup- this 'saveas' works well  - but I too am trying to figure out how you can get the file name to be one of the field values. For example - you have a field whose contents you've input as "PENGUIN1", then with the 'SaveAs' the file is now called: "PENGUIN1.PDF"??
Yours confused,
A

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