I am trying to export annotations from a pdf to excel using a macro.
The code is working except for the fact that if I try to assign parameters to GetAnnots() I receive an error message saying "Named argument not found".
If I don't assign any parameter to GetAnnots the code works but the comments are not in order by page.
''Access JSO object
Dim JSO As Object
Set JSO = AcroPDDoc.GetJSObject
''get total number of annotations
''get list of annotations in document
Dim Annotations() As Object
Annotations = JSO.GetAnnots(nSortBy:=ANSB_Page, bReverse:=True)
Did anybody have the same issue?
Hi @riccardom15921476 ,
This particular forum is for plugins and extensions hosted on the Adobe Exchange. Are you making a plugin of some sort?
Regardless, here's an older thread about GetAnnots() that might be helpful.
Hope this is helpful!
Thanks for your reply. No it is not a plugin, it is just an excel macro. Sorry I didn't know this area was only for plugins, I will try to post it on the groups you suggested. Unfortunately the previous post doesn't answer my question but thanks anyway for the tip!
Actually, this is an SDK issue.
The other technique for running JS from a VB program, is to put all the JS in a folder level function, then call that function.