saveAs java function, wont work!
I´m trying to create a java-instruction, that, when I press a button, save the current PDF-form under a nwe name. The name of the PDF will be fetched from a field within the PDF-form.
BUT - I can´t get the "saveAs" function to work!
I´m using the Adobe Acrobat Pro DC.
I want to use the java-command because I need to be able to name the new file from a field in the form.
I´ve been trying a couple of different syntax:
this.saveAs();
this.saveAs("file1.pdf");
event.target.saveAs();
event.target.saveAs("teat.pdf");
...
I am lead to belive that it is a problem with security, a saveAs or save function might be able to change data on the computer without the users controll. BUT - the command exists - how do I set it up to work?!
The form will later be mail to different recipients, where I need the same function to work. SO - I can´t place a script in the Java-folder since it won follow the document to the new user?!
