How can get coordinates of PDEElement?
This is my code add a Rectangle to PDEElement:
AVRect rect;
PDEElementGetBBox (pdeElement, &bbox);
AVPageViewRectToDevice (pageView, &bbox, &rect);
sprintf(jsScript, "var a = this.addAnnot({page:%d,type:'Square'}); a.name='%s';a.rect=[%d,%d,%d,%d]; ",i,"P"+j, rect.left ,rect.top , rect.right, rect.bottom); AFExecuteThisScript (myPDDoc , jsScript, NULL);
Position of Rectangle in Result not correct.
How can get coordinates of PDEElement?
Thanks all.
