Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    Regular Coder
    Join Date
    Jul 2002
    Posts
    362
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Check if workstation has pdf

    I am trying to use JavaScript to check if Windows workstation has PDF working on it. My attempt below doesnt show anything:

    Code:
    if (execCommand("assoc | findstr pdf");
    {
        document.write('<a href=mypdf.pdf>pdf</a>');
    }
    else
    {
        alert('Cant bring up PDF');
    }
    Please advise.

  • #2
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    Why not just put somewhere on the page that the linked document requires Acrobat Reader, then give an Acrobat Reader download link. That's what I do on my site.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!

  • #3
    Regular Coder
    Join Date
    Jul 2002
    Posts
    362
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thanks,

    This is an intranet site and doesnt connect to internet.

    Also, the problem is the pdf software is not working on some workstations.

    I was hoping I could detect that with client side scripting.

  • #4
    $object->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Jun 2003
    Posts
    3,100
    Thanks
    2
    Thanked 23 Times in 23 Posts
    You would need to be able to scan the person's hard drive to see if Acrobat Reader was installed. As far as I know, that's not possible.

    Since this is an intranet with no access to the internet, perhaps you could just change the page's message to tell them to call tech support if they are unable to read the file.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    SNAP to it!


  •  

    Posting Permissions

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