Is there any way to determine if a link is a book mark or hyperlink in java script

Is there any way to determine if a link is a book mark or hyperlink in java script
Sub Problem:
I am making an array of quads of all the hyperlinks in a document. I would like to automatically skip over all the bookmarks in the starting pages of a document and just get the links of the hyperlinks.
Now I have to manually set the pages that contain bookmarks so they are not included in the array.
Is there any way to determine if a link is a book mark or hyperlink in java script?
It would help automate the conversion I need below
John
Main Problem:
I have been working on converting a set of pdf files with 1000’s of hyperlinks like www.site.com\folder1\file1.pdf#page=10
To jump to a local copy of the files with a relative type link
../folder1/file1.pdf and then go to the proper page.
I have found that it can be done manually by changing the hyperlink to a javascript
var otherDoc = app.openDoc('../folder1/file1.pdf', this);otherDoc.pageNum = 10 - 1;
and setting each destination file with a disclose()=true;
Based on the help so far that java script cannot access the hyperlink value in a link
See: http://forums.adobe.com/thread/1039908?tstart=60
I have resorted to the following plan using acrobat javascript, an external keyboard macro recorder and excel in combination to get around the problem
Four folder level acrobat javascripts with “buttons”
One to get all the link quads in an array, in the pdf and report the total number
The second creates a form field in the far corner of the first page and moves there.
The third jumps to each link found by creating a form field just to the left of the link and zooms in so it can be selected by a “mouse click” from the keyboard macro recorder 
The forth deletes the form field
The keyboard macro recorder runs javascript 2 and then 3 then clicks on the link just to the right of the middle of the screen and uses keys to get to the advanced editing to get to edit the hyperlink .
The hyperlink is then copied to excel where it is converted using string functions to the needed javascript text to be copied back.
To the acrobat file into a java script (after deleting the hyperlink)
Rinse/lather/repeat
I have been able to convert about 150 links an hour.
Better then hand typing, but not like having java access to the links.
I am looking to improve the solution

thanks for your help.
I may have been confusing a "acrobat bookmark" and a bookmark in a word file that is converted to a pdf and ends up being a
link of the type:
"Go to a page in this document"
which I do not want in my array vs
a link of the action type:
"Open a web link"
Which I do want
John
My code, note how I have to skip pages with "Go to a page in this document" links depending on the document, I would like to use the same code for each document and skip over the "Go to a page in this document" links :
global.ilinkindex = 1; 
global.aLinkquads = [ [0, 1, 1, 0, 0],
       [0, 0, 0, 0, 0] ];
function GetLinkArray()
global.ilinkindex = 1;
var iTotalLinks=0;
// for ( var p = 0; p < this.numPages - 8 ; p++)                   // end before bookmarks for each page of the file x.pdf
//  for ( var p = 0; p < this.numPages; p++)                     // for each page of the file
for ( var p = 23; p < this.numPages; p++)                     // start after bookmarks for each page of the file y.pdf
  var cropbox = this.getPageBox("Crop", p);
  var alinksonpage = this.getLinks(p, cropbox);            // get array of links on page
  for ( var ll = 0; ll < alinksonpage.length; ll++)
   var linkquads = alinksonpage[ll].rect;     // get link Quads
   linkquads[4] = p;          // add page number to link Quads array
    global.aLinkquads[global.ilinkindex] = linkquads; // add quads to global link Quads array
    global.ilinkindex++;
iTotalLinks = global.aLinkquads.length - 1;
global.ilinkindex = 1;
app.alert("Number of Links in Document is " + iTotalLinks );

Similar Messages

  • I bought an iphone 5 online, its with o2 but when I went to o2 to get a sim card it did not connect according to the shop assistant, is there any way to determine if its stolen and if so is there anything i can do? HELP

    i bought an iphone 5 online, its with o2 but when I went to o2 to get a sim card it did not connect according to the shop assistant, is there any way to determine if its stolen and if so is there anything i can do? HELP

    it is dinner time but 72oz steak....whew dont know about that!  2 " of snow yesterday 60 degrees today.... gotta love the texas panhandle!

  • (Applescript) Is there any way to determine masters/versions

    Hi All,
    with Applescript,
    Is there any way to determine a 'image version' is masters or versions(generated by adjust/editing) ?

    I need to say this first - you have to really get that you never really see a master in Aperture, everything is a version. Just because it happens to be the first version or have no adjustments doesn't make it some how special. The only special thing about any version is that if it is the last/only version and you get rid of it the master goes away as well (reference counting)
    You should however be able to determine if any particular version happens to have any adjustments or no adjustments, or specific adjustments.
    RB

  • Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email? So that the user can print it out.

    Is there any way to embed the pdf file in the book created in iBooks Author to make it available to be downloaded or sent to email?
    I'm making the book for children and there is one chapter providing coloring pages. So I wish to attach pdf files that allow users to download it at the end of chapter so that  they can print it out. Been searching through discussion, I've found some advice about taking screen snapshot page-by-page > then send the pics from photo album to email. However, I'm wondering if there's a way that make the process easier.

    Warehouse that PDF on your own server, then link to it from your book.
    Ken

  • Is there any way to determine what device text messages are sent from? Do free text messaging apps relate to the apple ID, or the iPod?

    My son had a friend give him his apple ID username and password, and downloaded a texting app. Now, some text messages were sent, and they are both denying it.  Is there any way to know if the text messages came from my son's iPod? The app and texts are deleted, so I can't look at a history to see who typed them.

    I could not find anything one the developer's upport page. Contact the developer and ask
    http://pinger.zendesk.com/categories/2067-need-help-with-textfree

  • Is there any way to get the appStore link for my application

    Hi everyone , i am developing an app which has a feature of sharing its appstore link with the friends through mail,so that they can see my appplication in appstore and buy it directly on click of a button. For that i need to use the app store link of my application for sending it . is there any way to get that and using it dynamically in my app immediately after releasing it.

    Your best bet would be to create a web page of your own for the app. Design that page so that it uses 'META REFRESH' to redirect the visitor straight to the App Store link.
    That way you can hard-wire your own web page address into your app.
    This has the advantage that it can work well even before you've noticed that your app has arrived on the App Store. Create a real web page, describing the app and telling people to search for it in the App Store by name - then replace it with the auto-redirect page when you've discovered your application's App Store address.

  • Is there any way to change default layouts when making a book?

    I'd like to move thing around on the page. Is there any way?
    I'd also like to make a whole picture that is in the ratio of 2x3 print that way, but the program crops the ends to fill the space. Is there some way? (If I just add white to the top and bottom of the file will it print some kind of very light white there?
    MacBook pro   Mac OS X (10.4.8)  

    I have noticed this too, i.e. the captured background is BMP, and the capture images are PNG. For example, my command line terminal window backgrounds are 4070.57K versus about 32K to 65K when I convert them to PNG files. Our demonstration files can be enormous because of the BMP backgrounds. It would definitely be advantageous to have a recording setting for PNG versus BMP for the backgrounds in Captivate.

  • Is there any way to use Internet Explorer on a Mac? I have one insurance company that I do business with that you must use internet explorer

    Is  there any way to use Internet Explorer on a Mac Book Pro? I have one company that I do business with that only uses Internet Explorer

    Internet Explorer is not available for Mac.
    But you can make Safari pretend to be Internet Explorer in some cases.
        Safari > Preference > Advanced
        Checkmark the box for "Show Develop menu in menu bar".
        "Develop" menu will appear in the Safari menu bar.
        Click Develop, move mouse down to "User Agent".
        Select Internet Explorer from popup on the rightside.
        After using Internet Explorer, revert back to Safari, doing the same routine.

  • Is there any way to know that status of DEFINE variable?

    Hi,
    I have a list of scripts that is executed to create my baseline database. At the beginning of the script execution, we have a SET DEFINE OFF and at the end we put SET DEFINE ON. During one of the scripts, we deliberately SET DEFINE ON and we forgot to SET DEFINE OFF at the end of the script. Consequently, the following scripts started failing without error notification because they contained '&' in the INSERT query. I have the following queries:
    1. Is there any way to know the status of the DEFINE variable at the beginning of the script?
    2. Since the oracle gives a user interrupted error, the script execution process does not terminate with error. Instead, it continues executing the next scripts. Is there a general way to capture such errors and terminate the script execution. We already have WHENEVER SQLERROR and WHENEVER OSERROR in our script execution process.
    Regards
    Kunal

    Hi, Kunai,
    Welcome to the forum!
    953495 wrote:
    Hi,
    I have a list of scripts that is executed to create my baseline database. At the beginning of the script execution, we have a SET DEFINE OFF and at the end we put SET DEFINE ON. During one of the scripts, we deliberately SET DEFINE ON and we forgot to SET DEFINE OFF at the end of the script. Consequently, the following scripts started failing without error notification because they contained '&' in the INSERT query. I have the following queries:
    1. Is there any way to know the status of the DEFINE variable at the beginning of the script?Whether it's at the beginning of a script, later in the script, or not in a script at all, the SQL*Plus command
    SHOW DEFINEtells you if DEFINE is ON or OFF.
    If DEFINE is ON, it will produce something like:
    define "&" (hex 26)If DEFINE is OFF, it will produce
    define OFF
    2. Since the oracle gives a user interrupted error, the script execution process does not terminate with error. Instead, it continues executing the next scripts. Is there a general way to capture such errors and terminate the script execution. We already have WHENEVER SQLERROR and WHENEVER OSERROR in our script execution process.Do you really need to capture those errors? Why not just prevent them? It sounds like you want to make sure DEFINE is OFF at a certain point. To do that, just say
    SET  DEFINE  OFFRegardless of whether DEFINE was ON or OFF before you issue that command, you can be sure it will be OFF after that.
    I hope this answers your question.
    If not, post a complete test script (or set of scripts) that people can run to re-create the problem and test their ideas.
    Point out where the scripts you post are not doing what you want, and describe, with specific examples, what you want it to do in those places.

  • Is there any way to send an album without all the photos attaching and the file being huge? and the file being huge?

    Is there any way to send just a link to an album? (vs attaching everything and having a huge file?) Thanks!

    No.
    File -> Export and send them to a Folder on the desktop. Then do what you will with them from there.
    There is nothing to be gained by installing Picasa if you're using iPhoto.
    Regards
    TD

  • Is there any way to turn off the "Determining Gapless Playback"

    Every time I open Itunes the "Determining Gapless Playback routines starts. I always let this finish and after a while it appears to stop and I only have the Apple logo at the top of Itunes. However, if I close Itunes and restart it the "deteriminig Gapless Playback" routine starts all over again. Isn't there any way to turn off this annoying new feature....

    You could try a reboot:  Press and hold BOTH the power and home buttons at the SAME time for at least 10 seconds (ignore the red slider to shut down) until the Apple Logo appears, then let go of both buttons and your iPad should restart.  If that doesn't get rid of the volume control box on your screen, it's time to make an appointment with the Genius Bar at your Apple Store, and they can send your iPad off for service.

  • Is there a way to determine exactly where a breakpoint occurs?

    Hello everyone:  I am having trouble getting my head around this problem I am having, so I'm hoping someone here has run into something like this and has a tip for me.
    I have a PXI-7354 that I am using to control a rotary stage which has an 8000 lpr encoder, and a 10:1 reduction gear, so I have 80,000 lpr effectively.
    I am using the 7354 to generate a Breakpoint Pulse every 100 encoder counts, so I should be getting 800 pulses per revolution.  (I use the breakpoint pulses to trigger a second device and aPXIe-5122 data acquisition card to synchronize the production and acquisition of a data record.)
    However, and here's the problem:
    When I rotate 1 revolution, I see 799 pulses
    When I rotate 2 revolutions, I see 1598 pulses
    When I rotate 3 revolutions, I see 2397 pulses
    etc. 
    I am losing 1 pulse per revolution. I haven't figured this out yet, as I am using periodic breakpoints with a whole number of breakpoints as a period.
    THe problem is that I "count" the number of breakpoint pulses that I get in order to derive the angular position where the breakpoint occurs.  For instance, if I start at 0 degrees, and I have 0.45 degree spacing between breakpoints, after 10 pulses, I should be at 4.05 degrees.  After 100 pulses, I should be at  44.55 degrees.
    As I am missing one count per rev, however, my derived angular position is incorrect.
    I need a way to determine the actual position of each breakpoint.  The most obvious way to do this is to use the HS capture functionality of the board, and I could (further) share the breakpoint pulse with the HS Capture input on the motion card to do HS capture, but is there any way to do this internally on the 7354?
    Thanks for looking at this, any help is appreciated.
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI
    Solved!
    Go to Solution.

    Thanks for your response, Matt.
    I have already got the BP signal going to my external device via a UMI-7774, so this is not a problem.  The tricky part of this question is whether there is an easy way to "share" the BP information with the HS Capture INPUT line so that I can grab a HS position when the BPs are generated, so that I'd have a buffer of ACTUAL position, rather than relying on the BPs being in the correct location (and DERIVING the instantaneous position of the BPs by counting the BPs).  It seems that it is NOT possible to share the signal by routing the BP1 Out simultaneously to the external UMI 7774 pin AND to either the HS Capture INPUT OR to my data acquisition card.  I know that I can route my encoder signal and other things to my DAQ card, but this won't help me in this case.  Furthermore, I can only have 1 BP per axis, so it isn't possible to replicate that functionality on a second BP generator.
    I am working on setting up a third device to count the pulses generated by the 7354 when I exercise the stage through motion, so I'll have more data later today.
    I'll post here any findings.
    Thanks again,
    Wes
    Wes Ramm, Cyth UK
    CLD, CPLI

  • Is there a way to determine if an application is 32-bit or 64-bit?

    Is there a way to determine if an application is 32-bit or 64-bit? To be more specific, I want to be able to determine if a 32-bit application is being emulated under WOW64. I'm trying to use the Call Library Function and selecting IsWOW64Process from the Kernel32.dll, but I can't seem to get it to work. I think I may be setting it up wrong. I'm using a constructor node and invoke node for Process and after calling GetProcesses in the invoke node I'm sending that into a For Loop to inspect each process seperately. Inside the For Loop is where I'm trying to use the Call Library Function. From what I've read IsWOW64Process has a Handle as an input and a pointer to a boolean as an output. I may be incorrect in this as I've seen multiple varieties of this call on the internet. I've tried setting this up but I can't seem to get it to work. I'm looking for help on how to correctly use the Call Library Function or if anyone knows a better way to do this I'm open to suggestions. Thank you for any help. 
    Solved!
    Go to Solution.

    Hi klynn,
    I've got a link you might want to check out to make sure that your call function is correct.
    http://msdn.microsoft.com/en-us/library/ms684139%28v=vs.85%29.aspx
    I would also recommend that you check out DLL.VI example in example finder.
    Example Finder > Communicating with External Applications > Using External Code> Integrating DLLs > Call DLL.vi
    Hope this helps,
    Josh L.
    Applications Engineer
    National Instruments

  • Is there any way to create a HTTP_AAE Receiver without a path in NW PO 7.31

    Hi ,
    Does anyone know how to create a HTTP_AAE Receiver without a path??
    We are in a phase of migrating Interfaces from PI 7.1 to PO 7.31(Java Only).
    For one of the Interface in PI 7.1 there is a RFC Destination for vendor communication through HTTPS connectivity  :
    TargetHost: IP Address
    Post: value
    Path Prefix: Blank
    During migration  requirment is to keep the Path field BLANK of the Communication Channel,however since  PO has mandatory path field   a "/" is been provided, because of which data post fails.
    PI:  https://IP:9443
    PO:  https://IP:9443/  (Since Path Prefix is mandatory)
    As per my understanding The data is supposted to be posted directly to the IP (https://IP:9443) however it is getting posted to (https://IP:9443/) where the service is not available. For Reference attached relevant screenshots.
    Is there any way to  create a HTTP_AAE Receiver without a path. Need ardent support and suggestions
    regarding this.
    Regards
    Riju

    Hi,
    For Service auto- PO from PR, you need to activate Automatic Purchase order creation for Service requisitions in ML91 t.code.
    Note:
    For material :automatic PO creation from PR, follow the steps.
    1) Material Master purchasing view tick automatic PO check box
    2) Vendor Master purchasing view tick automatic PO check box.
    3) Maintain Source list for Vendor & Material.(ME01)
    4) Maintain Purchase Info Record.(ME11)
    5) Create a Purchase Requisition.(ME51)
    6) Use T.Code: ME59 & execute for PR for vendor, you will be able to create automatic PO.
    During creation of PR , select check box of Source Determination in the 1st screen of ME51
    Ensure that Purchase Info Record should be there.
    If you have more than one vendor then fixes only one vendor in source list.
    Regards,
    Biju K

  • Is there any way to see if a file has been saved to an external device, or to see a history of which external devics have been connected to an iMac in 10.6.7?

    I have a client that believes someone came into his house and took some digital files (photos, stored in iPhoto) off of his iMac (2.66GHz running v10.6.7)
    He usually just sleeps his computer while away and requires no password to login.  Is there any way to see if an external device or CD/DVD has been used to save files?  Is there any wya to see the history of a file and determine if it has been saved anywhere else?  I know this is a long shot, but I figure it is worth asking.

    Will it continue to say that the device is in lost mode if it has been restored?  My Find Iphone is saying that when the device is connected to the internet that it will be locked and that a message (that I typed in) will appear. It also says that I will be notified and that a sound will occur when it is connected. Now my iphone has been updated to the ios7, but I don't think his ipod was updated.

Maybe you are looking for