Vasavi244971977sns
Community Beginner
Vasavi244971977sns
Community Beginner
Activity
‎Oct 20, 2022
11:31 PM
1 Upvote
The below logic should help you update the bounding box . I am using quadpoints array and popupuating another array of x-cordinates and y-coordinates. After which bounding box is being updated with xmin,ymin and xmax,ymax. Assuming annot is the object that you have shared.... var xcarray : Array<number> = []; var ycarray : Array<number> = []; var arrlength = event.data.target.selector.quadPoints.length; var qpoints = event.data.target.selector.quadPoints; for (var i =0 ; i< arrlength ; i++) { if (i % 2 ==0) { xcarray.push(qpoints[i]); } else { ycarray.push(qpoints[i]); } } var xmin = Math.min.apply(Math, xcarray); var ymin = Math.min.apply(Math, ycarray); var xmax = Math.max.apply(null,xcarray); var ymax = Math.max.apply(null,ycarray); annot.target.selector.boundingBox[0] = xmin; annot.target.selector.boundingBox[1] = ymin; annot.target.selector.boundingBox[2] = xmax; annot.target.selector.boundingBox[3] = ymax; annotationManager.updateAnnotation(annot); Please see if this helps Thanks Vasavi
... View more
‎Oct 19, 2022
05:08 AM
WIll I be able to downloadthe sdk files main.js/viewer.js and keep them locally and run the adobe embed Api. Please let know how to go about this. Thanks Vasavi
... View more
‎Oct 19, 2022
05:01 AM
I was able to find a workaround for this issue. First thing this is an itermittent issue. code: 'FAIL', message: 'Annotation selector is not valid for given we get the above error when the bounding box coordibates are incorrect. But the quad points have the right corrdinates. So the fix was to correct the bounding box coordinates based on the quad points. In my scenario I took the xmin, ymin and xmax,ymax from the quad points and updated the bouning box, Then the UpdateAnnotation api started working perfectly! Hope this helps
... View more
‎Oct 13, 2022
08:08 PM
But I dont see the solution to this issue. Can you please let know the solution. Error: code: 'FAIL', message: 'Annotation selector is not valid for given Not quite sure what is wrong with the selector, bounding box, quad points all seem to be correct. Comments alone am not able to update when I select lines partially using textselection as I get the above error. This is a bit of emergency and would highly appreciate your quick response. Thanks Vasavi
... View more
‎Oct 13, 2022
06:56 AM
We are experiencing the same problem while updating annotation comment. Any updates on this ?
... View more
‎May 27, 2022
01:20 AM
this solution does not work on annotated text, works only on normal text selection.. any help to get the selected text from annotation ?
... View more