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

Submit XFDF data

MadMich
Registered: Aug 29 2007
Posts: 38
Answered

Is there anyway to submit raw XFDF data via an email like FDF can?
 
The reason for this question is the data will be extracted and scripted to populate another program and is not needed for acrobat thereafter.
 
I could script FDF data but it looks messy compared.

try67
Expert
Registered: Oct 30 2008
Posts: 2398
You can call exportAsXFDFStr and send the result in a plain email using mailMsg, can't you?

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

MadMich
Registered: Aug 29 2007
Posts: 38
Accepted Answer
Cheers fellas I hadn't thought of sending as a string:
Here is my final code:

var cMyMsg = "XFDF Text Below:\n\n";
cMyMsg += this.exportAsXFDFStr();

app.mailMsg({
bUI: true,
cTo: "myBoss [at] example [dot] com",
cSubject: "Translation", cMsg: cMyMsg
} );