Error trying to set parameters in GetAnnots() from Excel VBA
Hi,
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.
This is the code i wrote for the javascript object:
''Access JSO object
Dim JSO As Object
Set JSO = AcroPDDoc.GetJSObject
JSO.console.Show ''show javascript console
''get total number of annotations
JSO.syncAnnotScan
''get list of annotations in document
Dim Annotations() As Object
Annotations = JSO.GetAnnots(nSortBy:=ANSB_Page, bReverse:=True)
Did anybody have the same issue?
Thanks
