Professional Web Applications Themes

Auto Linker with keyword search - Adobe Acrobat Macintosh

Hello- I'm in need of MAC equivallent to this helpful plugin: <http://www.kapsware.com/alrline.php> Basically this amazing plugin allows the user to create a csv file with a searchable keyword, a command and a hyperlink. So if I used a keyword such as 223344, a command link of MAKEURL and a hyperlink of [url]www.whatever.com[/url]. This plugin would find the keyword and add the link to it. Very helpful when you have a pdf with 200 keywords that need to be linked. If anyone can point me the right direction, I would greatly appreciate it! Thanks!...

  1. #1

    Default Auto Linker with keyword search

    Hello- I'm in need of MAC equivallent to this helpful plugin:

    <http://www.kapsware.com/alrline.php>

    Basically this amazing plugin allows the user to create a csv file with a searchable keyword, a command and a hyperlink. So if I used a keyword such as 223344, a command link of MAKEURL and a hyperlink of [url]www.whatever.com[/url]. This plugin would find the keyword and add the link to it. Very helpful when you have a pdf with 200 keywords that need to be linked.

    If anyone can point me the right direction, I would greatly appreciate it! Thanks!
    workdasheddotcom@adobeforums.com Guest

  2. #2

    Default Re: Auto Linker with keyword search

    You can do this via JavaScript to a limited extent.

    Rocky

    //Code Start
    /* A search dialogue that adds hyperlinks to the search word */

    //Add a menu item named "Make Link" under the "Tools" menu
    app.addMenuItem({ cName: "Make Link", cParent: "Tools", nPos: 0, cExec: "sonicLink()"});

    function sonicLink()
    {



    var wordFind = app.response({
    cQuestion:"Enter the word you wish to search for",
    cTitle:"Quick Search"
    });

    var makeLink = app.response({
    cQuestion: "Enter the URI or URL that you wish to use to link to with double quotes (i.e ''http://www.adobe.com'')",
    cTitle: "Make Link"
    });

    if(wordFind != null)
    {

    search.query(wordFind, "ActiveDoc")





    };





    // demo code:
    // AddLinks
    // make every word entered from the dialog box into a link to the designated URL or URI site

    // var warp="this.getURL(" //Acrobat 6.x ONLY

    var warp="app.launchURL(" //Acrobat 7.x ONLY
    var speed=",false);"
    var engage = warp+makeLink+speed
    var p=this.pageNum;
    var numWords = this.getPageNumWords(p);
    for (var i=0; i<numWords; i++) { var ckWord = this.getPageNthWord(p, i, true); if ( ckWord == wordFind) { 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.toString()
    r = r.split(",");
    l = this.addLink(p, [r[4], r[5], r[2], r[3]]);
    l.borderColor = color.red
    l.borderWidth = 1

    l.setAction(engage)

    m = (new Matrix2D).fromRotated(this,p);
    };
    };
    app.alert ("Acrobat is done making links in the current doent",3)
    };

    //Code End
    Rocket_Jay_Squirrel@adobeforums.com Guest

Similar Threads

  1. Help with Keyword search
    By Eric Fortier in forum MySQL
    Replies: 2
    Last Post: February 18th, 03:34 PM
  2. Keyword search on 5 fields
    By ToniM in forum FileMaker
    Replies: 0
    Last Post: August 5th, 01:37 AM
  3. Site Keyword Search Required!!!!!
    By David Lozzi in forum ASP Components
    Replies: 8
    Last Post: July 28th, 10:50 AM
  4. Replies: 1
    Last Post: July 17th, 04:22 AM
  5. Can a keyword search launch movie/go to marker?
    By Yenny webforumsuser@macromedia.com in forum Macromedia Director Basics
    Replies: 0
    Last Post: July 10th, 05:00 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139