These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

exportDataObject Help

kenjoly
Registered: Jun 5 2008
Posts: 4

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?

My Product Information:
Acrobat Pro 8.1.2, Windows
Lindy
Registered: Jul 17 2007
Posts: 30
If you put the code in a folder level script, you can call it and pass the path.
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();
});
//