You are using the wrong value for parameter cConvID. The correct value is "com.adobe.acrobat.plain-text".
It would appear that the string "com.adobe.Acrobat.plain-text" is not a supported "cConvID". You can use:
for ( var i = 0; i < app.fromPDFConverters.length; i++)
I try this code above and I 've got message on saveas:
NotAllowedError: Security settings prevent access to this property or method.
sequence? Typed in Console? JSObject?
I have installed Acrobat 7.0 professional.In VB.NET 2005 i have this code:
Dim AcroXApp As Acrobat.AcroApp
Dim AcroXAVDoc As Acrobat.AcroAVDoc
Dim AcroXPDDoc As Acrobat.AcroPDDoc
Dim Filename As String
Filename = "c:\test.pdf"
AcroXApp = CreateObject("AcroExch.App")
AcroXAVDoc = CreateObject("AcroExch.AVDoc")
AcroXPDDoc = AcroXAVDoc.GetPDDoc
Dim jsObj As Object
jsObj = AcroXPDDoc.GetJSObject
> jsObj.SaveAs("C:\Test.txt", "com.adobe.acrobat.plain-text")
You can't create a file on the root directory. Read the note about safe path in the description of the method SaveAs.
Thank you Bernd Alheit!
Now it's working.
The above code is working fine. while exporting in Adobe pro it generating xml along with good tag name. But by programatically it is generating without proper tag name. is there any way to achieve formatted xml along with tag name. kindly suggest me any method. Thanks in advance.