PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)
Moderators:PDF-XChange Support, Daniel - PDF-XChange, Chris - PDF-XChange, Sean - PDF-XChange, Vasyl - PDF-XChange, Ivan - Tracker Software, Stefan - PDF-XChange
It creates the annotation but not the highlighting. The numbers are valid and the same as returned by the getPageNthWordQuads function above. So obviously the issue is the incorrect format of myQuads. Can you help me with that?
I think that in Javascript you need to use parentheses, rather than square-brackets as in your code, to initialize an array. That might be the problem... ?
I also note that you don't have the 'var' keyword in front of the declaration of the array. Might or might not be a problem, I'm not sure how tolerant JS is of these things.
Sorry that is the problem in Viewer ActiveX. This is already fixed and fix will be available in new build.
To bypass this problem, for now, you can use next code