Is there any way in Acrobat Pro 7 or 8 to use the "exportDataObject" function without a dialog box? I tried using a full file location but that didn't work.
I want it to automatically save a data file that has just been updated with new information. It is working fine, but the user has to actually save the file when a dialog box appears. I want to be able to do it without the last piece of user intervention. Is this possible?
All uses would need this folder level script added to their client.
This works in 8, have not tried it in 7.
Call exportFuncP, Pass sTitle as path\name, sParm is the launch parameter.
You may need to play with path specifications.
// EXPORT FILE ATTACTMENT -sParm is nLaunch, sTitle is full path
exportFuncP = app.trustedFunction(function (sTitle, sParm) {
app.beginPriv();
try {
event.target.exportDataObject({cName: sTitle, nLaunch: sParm});
} catch (err) {
app.alert("Error: " + err);
}
app.endPriv();
});
//