Hi all,
I want to change this PDF to XML Spreadsheet .
The code is
AcroAVDoc adoc = new AcroAVDoc();
AcroPDDoc pdoc = new AcroPDDoc();
string path = "";
adoc.Open(folderPath + @"\" + Pathnew1.Split('\\')[8].Split('.')[0] + ".pdf", "");
pdoc = (AcroPDDoc)adoc.GetPDDoc();
object js = pdoc.GetJSObject();
//js = Acropddoc.GetJSObject();
Type T = js.GetType();
//string vFile = pdoc.GetFileName();
// total number of pages
double nPages = (double)T.InvokeMember(
"numPages",
BindingFlags.GetProperty |
BindingFlags.Public |
BindingFlags.Instance,
null, js, null);
path = Pathnew1.Split('\\')[8].Split('.')[0];
object[] saveAsParam = { path + ".xml", "com.adobe.acrobat.spreadsheet" };
T.InvokeMember(
"SaveAs",
BindingFlags.InvokeMethod |
BindingFlags.Public |
BindingFlags.Instance,
null, js, saveAsParam);//I am getting error on this line "{"Exception has been thrown by the target of an invocation."}"{And in Adobe reader JavaScript debuuger is opened.}And Shows the error {
Version 10.0
Acrobat SOAP 10.0
NotAllowedError: Security settings prevent access to this property or method.
Doc.saveAs:0:
}
}
Thnks in Advance
Pawan