To execute this method from a form button requires using a folder-level
script. Is this script also installed on the computers of the other users?
Not enitrely sure how i would go about this - but no it is not installed on the other users computers
any help in this would be great.
How did you implement this script so far?
added the code to it which I have popped below:
/* Save files with a timestamp filename */
/* this script does not overwrite existing files - unique names are created */
/* EverMap LLC, 2009 */
var result = false;
var otherDoc = app.openDoc(pathname);
if (otherDoc != null)
result = true;
result = false;
// create a unique filename for output file
var i = 1;
var baseName = pathName.slice(0, pathName.length - 4);
var testName = pathName;
while (DoesFileExists(testName) == true)
testName = baseName + " " + i + ".pdf";
var i = this.path.search(/[^:/]+\.pdf$/);
var fname = this.path.slice(i, this.path.length - 4);
// replace /c/data/ with a desired folder path where to store extracted files
var folder = "/c/Click2Sign/ForConversion/";
// now add time stamp data to the filename
var t = new Date();
fname += " - " + t.toLocaleString();
var outputname = fname.replace(/[,\\/\?*<>]/g," ");
outputname = outputname.replace(/[:]/g,"-");
var outputpath = folder + outputname + ".pdf";
Which version of Acrobat do you have?
its adobe pro x 10.1.3
The saveAs method doesn't work in that version when called from a form
button. It has to be called from a trusted context, like a folder-level
How do I set that up have no idea about this stuff.