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 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2013
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Drop Down Box linking to layers in a PDF

    May somebody help this novice with how to go about installing such functionality.

    I have a number of different options in my drop down box and would like each option to link to different layer - as each layer represents a different form (or page if it is easier to have to set the file up that way).

    1 option = 1 link. I thought this would be straight forward but alas, I am perplexed!!!!

    I have Acrobat 9 and next to Nil programming experience. My right brain just does not want to oblige me... I have spent a day so far trying to work it out myself, to no avail...

    I welcome any feedback or solutions.

    Thank you kindly for your bother.

  • #2
    Senior Coder
    Join Date
    Jan 2011
    Location
    Missouri
    Posts
    3,771
    Thanks
    23
    Thanked 550 Times in 549 Posts
    link to different layer
    Don't know what a layer is in a PDF, but here's how to link to a page.
    Code:
    <!DOCTYPE html>
    <html>
    <head>
    </head>
    <body>
    <select onchange="location = this.options[this.selectedIndex].value;">
    	<option></option>
    	<option value="http://www.example.com/myfile.pdf#page=1">Goto page 1</option>
    	<option value="http://www.example.com/myfile.pdf#page=2">Goto page 2</option>
    	<option value="http://www.example.com/myfile.pdf#page=3">Goto page 3</option>
    </select>
    </body>
    </html>
    Evolution - The non-random survival of random variants.


  •  

    Tags for this Thread

    Posting Permissions

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