I am hoping someone can help me with this. I am creating a script that searches for course codes and then creates a link to the registration page for each code found on a pdf document. The links are dynamic so I am passing the links in a string variable to the getURL method as follows.
if ( ckWord == CourseCode[k])
var urlstring = URLArray[k].toString();
var q = this.getPageNthWordQuads(p, i);
// Convert quads in default user space to rotated
// User space used by Links.
m = (new Matrix2D).fromRotated(this,p);
mInv = m.invert()
r = mInv.transform(q)
r = r.split(",");
l = addLink(p, [r, r, r, r]);
l.borderColor = color.red;
l.borderWidth = 1;
My problem is that the url is showing up with the local path in front of it. For example, it appears as f:\\|C:\...\http:\\wwww... etc. If I type the url into the getURL method it works just fine. Can someone please help guide me in passing dynamic links.