I guess what you mean is that it returns an array of size N, where N is equal to the number of pages?
Looking at the code, this looks like a bug:
```
pRuntime->PutArrayElement(
|
pJS_Annot ? v8::Local<v8::Value>(pJS_Annot->ToV8Object())
|
: v8::Local<v8::Value>());
```
It places each new element at index i, which is the current page index.
Can you file a bug report? I'm happy to fix it, seems like an easy fix.
Thanks,
Justin Pierce