Net.HTTP.Request is not working on Adobe Reader
Hi,
I made one JS file and placed in Reader's and Acrobat's javascript folder for posting the opened PDF document to server using below code.
app.addMenuItem({ cName: "Upload Data", nPos: "Close", cParent: "File", cExec: "runExtract()" });
var runExtract = app.trustedFunction(function() {
app.beginPriv();
try {
var params =
{
cVerb: "POST",
cURL: "http://domain/Service/upload.ashx",
aHeaders: [{ name: "fileName", value: this.documentFileName }],
oRequest: Collab.documentToStream(this)
};
var responseStream = Net.HTTP.request(params);
var response = SOAP.stringFromStream(responseStream);
}
catch (e) {
app.alert({ cMsg: e.message, cTitle: "Exception" });
}
app.endPriv();
});
And the above code is working good with Adobe Acrobat Pro, but not Adobe Reader.
I found the issue with Net.HTTP.request.
Suggest me solution to resolve the issue.
Thanks in advance.
Regards,
Chandra.
