I am using acrobat XI to write some script. What I would like to do is 1) get the current processed pdf file name and 2) just simply output a text file
var textValue = "test";
var doc = this.createDataObject({cName: "test.txt", cValue: textValue});
this.exportDataObject({cName: "test.txt", nLaunch:0});
This is working , but I would like to provided a fixed path , I tried saveAs but it seems only for pdf , exportAsText not working as well.
Are there any way to fix it? thanks