views:

273

answers:

1

I have a writeable pdf form created in acrobat pro. Now, i added a button which has to change a fields value, save the pdf and close it.

I decided to do this as following:

var fieldX = this.getField("xxxxField");
fieldX.value = 1;
app.execMenuItem("Save");
this.closeDoc(true);

But this doesn't save the pdf.

I don't want to have a confirmation dialog. I saw the saveAs function in the API but how to get the real-path incl. filename of the current editing document? Or do you have any other approaches?

thank you.

A: 

I didn't find another way to acheive this! So this will closed as invalid ticket, by answering it myself.

codedevour