0 Replies Latest reply on Mar 13, 2009 2:36 AM by (Gr_B)

    Matrix2D question

      Hi! I found the following sample for adding links for matching word:<br /><br />function addlinks()<br />{<br />    var p=this.pageNum;<br />    var numWords = this.getPageNumWords(p);<br />    for (var i=0; i<numWords; i++)<br />    {<br />        var ckWord = this.getPageNthWord(p, i, true);<br />        if ( ckWord == "Adobe")<br />        {<br />         var q = this.getPageNthWordQuads(p, i);<br />            // convert quads in Default User Space to Rotated<br />         // User Space used by Links.<br />            <br />            m = (new Matrix2D).fromRotated(this,p);<br />            mInv = m.invert();<br />            r = mInv.transform(q);<br />            //r = m.transform(q);<br />         r = r.toString();<br />            r = r.split(",");<br />         l = addLink(p, [r[4], r[5], r[2], r[3]] );<br />            l.borderColor = ["RGB", 0, 0, 0.4];<br />         l.borderWidth = 2;<br />            l.setAction("this.getURL('http://www.adobe.com/products/acrobat', false);");<br />        }<br />    }<br />}<br /><br />How to change lower Y coordinate to make link box smaller?