Add hyperlink by script

Hi,
Is it possible to add hyperlinks by javascript, so that they can be assigned later in the document? Let me explain my thoughts:
This screen shot shows a list of different docs (001 to 005) and the URL for the first document. I would like to make a hyperlink to all of them more automatically. Because the file is saved as 54K0504001.indd, I think it can be done.
What I should need:
1. a pop up with a question:"how many hyperlinks to make"
2. depending on the answer, creating the new hyperlinks in the panel with the full URL (if the answer is 2, I should get 2 hyperlinks, http://www.dekamer.be/FLWB/PDF/54/0504/54K0504001.pdf and http://www.dekamer.be/FLWB/PDF/54/0504/54K0504002.pdf

We make parliamentary documents in Indesign (2014.2) and publish them in pdf format (www.dekamer.be). In this case (0504) we have a serie of 5 seperate docs. Each doc has refferences to the previous ones on his first page (so doc 005 has refferences to doc 004, 003 ,002 and 001), but no hyperlink (URL) are made. The "lorem ipsum" is the dummy text for "report, amendement ..." but is of no importance, just the 001, ... are.
What I was thinking about, is having the hyperlinks (URL) "ready for use" in the hyperlinks panel, so that when we publish the document we can speed up the whole operation of creating new urls. When the exact URL is already in the panel, we just select the number 001 and assign it to the corresponding url (maybe named 001 too) in the panel and so on untill the last 00x.
The destination is always pdf.  All hyperlinks start with http://www.dekamer.be/FLWB/PDF/54/ .  Per doc the number stays the same (0504), only the last part 001 changes....
I add a screen shot of the first page from another doc.
What the script (a java, no VB) should do is give me the possiblity to "prepare" the URLs so that they are ready in the dropdown menu of the hyperlink panel. The only thing is, we don't know in advance how many URLs we need. I thought a pop up would be the most easy way to solve that problem ("how many URLS have to be made? I the 0504 case I need 5 URLS named from 1 to 5). In the case below 23. I hope this explains it a bit better.

Similar Messages

  • Add hyperlinks to pdf with script

    Hello,
    We have some pdf's in which we would like to add hyperlinks to a bunch of specific words. We would like to do this with a script.
    Just, I have no clue on how to do this with Adobe Acrobat. For the Word documents I can use VBA...
    Could somebody help me?
    Thanks!

    To develop with Acrobat you will need the Acrobat SDK. Forum here: Acrobat SDK

  • Can you add Hyperlinks in Adobe LiveCycle Designer

    Hi,
    Does anyone know if you are able to add hyperlinks to the form which would allow me to jump to another separate pdf file?
    Thanks in advance,
    Trev C.

    Hi,
    Paul has some solutions for this.
    The following tread has two solutions:
    (1) set up invisible objects (like textfields) throughout the form and then script setFocus to those fields.
    (2) If using LC 8.1 you can add hyperlinks.
    http://forums.adobe.com/message/1915856#1915856
    There are some good posts to the forum; try searching specifically the LC Designer ES forum for "hyperlink".
    Sorry, just reread your question. In relation to opening other PDF files from within a form, you are going to come up against a security error. This will require you to have a JavaScript (.js file) in the JavaScript folder within the Acrobat programme folder. This .js file will also have to be deployed to all users' computers.
    The last post in this thread has a solution: http://forums.adobe.com/message/1359932#1359932
    I am not sure if this would suit your requirements, but another solution is to create a Portfolio with the required PDF files inside the portfolio. Then it is easy to create a link between the files using the "Link Tool".
    Good luck,
    Niall

  • Add hyperlink recompose document

    Hi,
    I receive documents from a third party company that uses specific hyphenation plug-in of their own.
    I have a script that adds hyperlinks using :
         - linkDestination = myDocument.hyperlinkURLDestinations.add
         - linkSource = myDocument.hyperlinkTextSources.add
         - then myDocument.hyperlinks.add(linkSource, linkDestination, {name : hyperLinkName});
    It causes the recomposition of the text with different hyphenation as I do not (and shall not) have the specific hyphenation plug-in.
    Is there a way to create hyperlinks without the document being recomposed (in fact no text or style has changed, there is no need to recompose) ?
    Regards,
    Lionel
    PS : I use indesign CS5.5

    Yeah, much to my dismay I saw this happen on otherwise complete documents: adding a simple XML or hyperlink markup -- which should have been fully transparent to the actual text -- suddenly made the text re-compose.
    A possible solution for Lionel is to create rectangles on top of the text, and assign the hyperlinks to these instead. These rectangles could be created on a layer of their own, so they can easily be removed if the text gets edited.
    A small drawback is that you can measure bottom, left, and right of text -- but not the top! However, you can sort of fake it: make the rectangle one leading amount high and move it down by about a 1/3th of its height (eyeballing result).

  • How to add hyperlinks in Import Manager

    Dear MDM-gurus!
    I really tried hard to find the solution, but couldn't find it here or in OSS.
    We already have a repository with more than 50.000 items.
    What I'd like to do is to add hyperlinks to PDF-files in the internet to each item.
    For this we got an excel-file from the supplier with the supplier part number in one column, the PDF-link in another column and the .
    In Data Manager I was able to add links manually or also with importing entries of the excel-file. Importing from excel takes a LOT of time. I don' t know why:
    -  Fields to import: Hyperlinks
    -  Key fields: Supplier part number.
    --> Action: Update all single matches.
    How can I import hyperlinks in Import Manager, make the mapping and then update the records faster? E.g. I could not find the field "URL <Hyperlink> [Qual]" in Import Manager
    Thanks for your help and best regards,
    Henning

    Resolved!
    I accidently oversaw the URL fields in Import Manager in table catalog items.

  • Office 2013 VL and app-v 5 SP2 on RDS server - package add fails with script error

    We have used the MS Office Depolyment Tool for click-to-run to download the latest Office 365 version, and flatten it into an app-v 5 package - not a problem.
    When we try to add the package to our client machine (Server 2008R2 running the app-v 5 SP2 client software), it fails with an message that a script has failed and not returned a 0 code.  We have not added any scripting to this automatically created
    package, so it seems that the app-v client does not like the "official" package.  Any hints and tips gratefully accepted, thanks
    App-v client has scripting enabled.
    The powershell command line we are using is:
    PS C:\windows\system32> Set-ExecutionPolicy Unrestricted
    PS C:\windows\system32> Add-AppvClientPackage -path file://hostname/app-v/o365-noaccess/ProPlusVolume_en-us_zh-cn_x86.appv -DynamicDeploymentConfiguration \
    \hostname\app-v\O365-NoAccess\ProPlusVolume_en-us_zh-cn_x86_DeploymentConfig.xml
    with a result of:
    Add-AppvClientPackage : Embedded Script process exited with an error code indicating failure (return code other than 0). Please ensure that Embedded
    Script process can complete successfully and exits with 0.
    Operation attempted: Configure AppV Package.
    AppV Error Code: 100000000C.
    Please consult AppV Client Event Log for more details.
    At line:1 char:1
    + Add-AppvClientPackage -path
    file://hostname/app-v/o365-noaccess/ProPlusVolum ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    ~~~
        + CategoryInfo          : InvalidResult: (:) [Add-AppvClientPackage], ClientException
        + FullyQualifiedErrorId : ConfigurePackageError,Microsoft.AppV.AppvClientPowerShell.AddAppvPackage
    and these are the error messages we see in the debug app-v client logs:
    Script Launcher successfully waited for script with command line: '"C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root\..\Scripts\Integrator.exe" /I /Msi /License /AppV PackageGUID=D24C3BDD-8FAD-44d3-998C-933F8F053682
    PackageRoot="C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root" MsiName=SPPRedist.msi,SPPRedist64.msi PidKey=xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,xxxxx-xxxxx-xxxxx-xxxxx-xxxxx,xxxxx-xxxxx-xxxxx-xxxxx-xxxxx
    PRIDName=ProPlusVolume'.
    and...
    Package {d24c3bdd-8fad-44d3-998c-933f8f053682} version {cd9725ce-4503-4932-863b-4fcda3f9551d} failed configuration in folder 'C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D' with error 0x79100E10-0xC.
    and...
    machine script for event AddPackage with command line: '"C:\ProgramData\App-V\D24C3BDD-8FAD-44D3-998C-933F8F053682\CD9725CE-4503-4932-863B-4FCDA3F9551D\Root\..\Scripts\Integrator.exe"'
    exited with failure error code: The extended attributes are inconsistent.. Because Rollback is set to true in the script definition, the current AppV Client operation was rolled back.
    We believe this last error message is the kicker, but can't debug any further.

    Just to validate the problem, I started again.
    I have just downloaded the latest ODT from MS, and then downloaded the latest Office 2013 packaged - volume license.  Then created the app-v package - all went perfectly, no error messages.  Uploaded the package to the app-v 5 server and published
    it.  I have made NO changes to any of the files.
    I have just built a brand new Windows Server 2008R2 Datacentre VM, patched it to the hilt, and installed the RDS role, powershell 3 and appv 5.0 SP2 client for RDS.
    I then use powershell as above:
              scripting unrestricted
              app v client scripting enabled
             app v server added
              global and user update enabled
             add-appvclient package  "url of office package.appv"
                 and received exactly the same error message.  
    It is not complaining that scripting is not allowed, it is complaining that the script is invalid.
    Help!!!!

  • Add Hyperlink no longer works - any ideas?

    Using Mail 2.1. Until recently, I could always select the text of an email I am composing, then hit Edit, Add Hyperlink and link it to a website. Now the Add Hyperlink opion is greyed out in the Edit menu. I've used it dozens of times before. I'm not sure why it is greyed out now. Any ideas?

    Have you tried restarting your router?
    AC

  • How can I add hyperlink to the object in iCloud pages ?

    Hi, there
    I want to add hyperlink to the object(image) in icloud pages.
    But it looks no such function on  icloud(any "add link" botton)
    I know that how to add hyperlint to the object in pages v5.2.
    1. place object
    2. prepare text box and add hyperlink to the text(invisible color)
    3. overlay object and textbox
    But, in icloud pages, I coundln't do above method.
    Pls give me some advice.
    Thanks.

    The feature to add images in tables is gone, ike about another 90 features that exists in Pages 09.

  • "Add Hyperlink" not working in Mail

    Edit/Add Hyperlink used to work just fine. Recently it stopped working. It appears to have done its thing by changing a selected word, URL or e-mail address to blue with an underscore. I even get the little glove when I roll the cursor over it. But in compose/saved/sent or received versions, the link is dead. If I simply type an e-mail address in the text body, it converts to a working link when sent. If I select the address, copy it and input it into add hyperlink, then click OK, the address link sends dead. If I copy and paste a working hyperlink or URL link from a website or another e-mail, it sends a live link. This last item does the same thing if I try to place a link in a saved signature. "Add..." doesn't work, while pasting a sent working link into the signature file does. Is there a corrupted file somewhere? Do I need to reinstall Mail somehow? Help!

    I appreciate the help David. I keep my settings on rich text because I send a lot of photos and graphics. So if I understand you correctly, I should be able to "add hyperlinks." I ran a test where I sent myself the word "test" with a hyperlink to "www.apple.com" and then pasted the URL "www.apple.com" below that. The sent e-mail had "test" in underscored blue, and the cursor changes to the little glove like it is a live link, but there is no action to the link. (No action to the pasted URL either-- pasted e-mail addresses do turn underscored blue and launch new e-mail windows.) Here is the raw Source of my test:
    --Apple-Mail-66--153024802
    Content-Transfer-Encoding: 7bit
    Content-Type: text/plain;
    charset=US-ASCII;
    format=flowed
    test
    www.apple.com
    --Apple-Mail-66--153024802
    Content-Transfer-Encoding: 7bit
    Content-Type: text/html;
    charset=US-ASCII
    <HTML><BODY style="word-wrap: break-word; -khtml-nbsp-mode: space; -khtml-line-break: after-white-space; ">test
    www.apple.com</BODY></HTML>
    --Apple-Mail-66--153024802--
    iMac   Mac OS X (10.4.7)   20" 1.25GHz 2GB SDRAM
    I don't know code, so I have no idea what I'm looking at here.
    Cheers--Dean

  • Add Hyperlink in PDF report

    hi All,
    I would like to add hyperlinks to my pdf reports.
    I have a image column in my report which is hyperlink.
    Can i do that in pdf reports.
    Thanks

    hi
    thanks for you reply.
    But my problem is somewhat different.
    What i meant was i have a column in the database with the image hyperlink. ie the column is something like this
    http://myitem/myimage.
    i want to display this hyperlink in my pdf report so that when the customer clicks on that hyperlink it displays the image.
    This was my first priority.
    But i am also considering what you suggested ie i display an generic image which says link to image And when the users clicks on that it displays the image of the item.
    But the image is unique for that item and i have to specify the hyperlink programatically for each item on the report.
    How do i specify the hyperlink for each item programaticaly.
    thanks in advance

  • I want to add hyperlink in the illustrator file and want the output in the PDF

    I want to add hyperlinks in the illustrator file and want the output in the PDF.
    I tried to add the multiple hyperlinks on the text and images in the illustrator by using the attribute panel but the links are not working in the published PDF.
    Is there is any other method to create a hyperlink in the illustrator?
    Can anybody help me out in this
    Thanks

    Interesting, Carlos.
    There's another method by JET: Re: hyperlinks in Ai

  • Add Hyperlink in Mail as Word or Phrase Instead of Long Link Address

    I've been trying to figure out how to insert a hyperlink in an email message as a short word or phrase instead of having to Add it as the actual address. I've been using the Add Hyperlink command for some time. But it seems like it only remains a live link if you paste it as the actual html address -- which sometimes takes more than one line of text!
    Is there any way to paste link, add it, but have it show up as a short phrase? (You know, like "Sweatshirt" instead of http://www.eddiebauer.com/mensclothing/sweatshirts/45&65&39495843 etc. etc. etc.
    Thanks!

    Thanks a lot! I've been trying to do it backwards from that -- pasting the link into the Add Hyperlink Dialogue Box, and then trying to change the it there or after it's pasted.
    This will relieve my frustration! Thanks again.

  • Mail Keyboard Shortcut for Add Hyperlink...

    I added Control Option H as a new shortcut for Add Hyperlink in the Mail pull down menu
    It showed up in the Keyboard Shortcuts list and also shows correctly in the pull down menu after I quit and re-opened Mail; however when I try the shortcut, nothing happens.
    Could it be that I have to take into account pulling down the Edit menu first, to get to the Add Hyperlink command?
    And it only works after I create a New Message.
    How do I do all this?
    Thanks....David

    I'm not sure why this keyboard shortcut isn't recognized. In the meantime, you might try a different one.
    +These examples worked for me:+
    Option + Control + Up Arrow (⌥⌃↑)
    Using a function key, F1, F2, F3, etc.
    Using a function key with a modifier, e.g., Option + F2 (⌥F2).
    Good luck!

  • Add hyperlink in interaction

    Hi,
    Is there a way to add a hyperlink in interaction?
    I tried a href... maybe I didn't write it at the right place...
    Can someone help me?
    Thanks,
    Caroline

    Thanks a lot! I've been trying to do it backwards from that -- pasting the link into the Add Hyperlink Dialogue Box, and then trying to change the it there or after it's pasted.
    This will relieve my frustration! Thanks again.

  • Add Hyperlink in InCopy CS2

    Is there a way to add an hyperlink in InCopy CS2?

    Thanks a lot! I've been trying to do it backwards from that -- pasting the link into the Add Hyperlink Dialogue Box, and then trying to change the it there or after it's pasted.
    This will relieve my frustration! Thanks again.

Maybe you are looking for