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

Not answered so I'll try another tack re distributing

SmiffySan
Registered: Nov 4 2011
Posts: 11
Answered

I guess my last question was unanswerable so I’m looking to solve my problem another way.
 
Is there a way I can save a form using the data in a text box? i.e. I have a text box that is populated with a number, say ‘1234567’. Is there a script that allows me to set up a button that uses that data to save the form and call it ‘1234567’?
 
Thanks.

A poor overworked muppet

My Product Information:
LiveCycle Designer, Windows
gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
Have you looked at How to save a PDF with Acrobat JavaScript by Thom Parker.

George Kaiser

SmiffySan
Registered: Nov 4 2011
Posts: 11
Hi George,

That was the first place I looked, but I couldn't see the wood for the trees. I already use the 'Save' and 'save as' buttons with no issues. My problem is simply using the input to a text box and saving the PDF as that file name. I couldn't see that anywhere.

Thanks for asking though, it's appreciated.


A poor overworked muppet

gkaiseril
Online
Expert
Registered: Feb 23 2006
Posts: 4307
You can use JS ot compute the field name used in the script. The file name is just a character string that can be a quoated string, a variable that is a string, or a combination of a quoted sting and varialbe.

George Kaiser

SmiffySan
Registered: Nov 4 2011
Posts: 11
To my poor uneducated thought processes, that's like trying to divide blue by 11. I still cannot get the save as button to collect the inputed variable from the text field.

Many thanks

A poor overworked muppet

Sir Limey
Registered: Jul 25 2011
Posts: 3
How about a quick sample George?

Sir Limey

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
The answer is No. A PDF file cannot be automatically saved to a new name from a button on the PDF. The tutorial mentioned above is about using a privileged automation script to save a file to a new name, not a script on a PDF.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script