Quantcast
Channel: Adobe Community : Unanswered Discussions - Acrobat
Viewing all articles
Browse latest Browse all 73766

exportDataObject...any way to make it work?

$
0
0

I have reviewed the discussions contained in this forum WRT this doc method.  I have also reviewed the documentation. 

 

I have this function:  AttachDataObject(ThePDFDoc).

 

I have included it in this statement:

 

app.trustedFunction(AttachDataObject);

 

Toward the end of the above function I have the following lines enclosed in a try:catch block:

 

ThePDFDoc.createDataObject(yada yada);

ThePDFDoc.exportDataObject({cName: "SomeName.csv", cDIPath: "/Macintosh HD/WPCPrint Files", nLaunch: 0});

 

When I run this in the debugger, the error that I get back is "Range Error: invalid argument value"

 

The documentation says that I should get back a "not allowed" error.

 

Is there any way, any workaround, anything at all to keep the "choose file" dialog from coming up?  This is supposed to be in an automated work flow and the fewer human interruptions we can engineer into the workflow, the better.

 

TIA!

 

John


Viewing all articles
Browse latest Browse all 73766

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>