2 Replies Latest reply on Sep 15, 2010 7:54 AM by Muthuraj Durairaj

    Creating popup menus using bookmarks in acrobat pdf

    Muthuraj Durairaj

      Hi All,

       

      I have a requirment to create a button called "Index" in a pdf.

       

      When I click on that button it should show the popup menu and if I click any of the menuitem in that, it should take me to that particular page. I saw some of the interactive pdf's available on the web and they have this facility. I tried to incorporate this into my pdf, it shows the popup menu item correctly but not taking me to that particular page and throughs an error message.

       

      itemIndex is not defined
      3:AcroForm:Index:Annot1:MouseUp:Action1

       

      Below is the code I tried for your reference.

       

      My question: Is there any way to populate this popup menu with the action to go to particular page, from the available bookmarks of a pdf?

       

      Please help me. Thanks in advance.

       

       

      var itemInedex = app.popUpMenu("Executive summary", "Why backups?", "Defining the data status (consistency)", "New disk technologies", "Understanding disaster recovery and restart and recovery", "Drawbacks with backups", "Backup in mainframe", "Schematic presentation", "For more information")
      switch (itemIndex) {
       case "Executive summary":
       this.pageNum = 0
       break
       case "Why backups?":
       this.pageNum = 3
       break
       case "Defining the data status (consistency)":
       this.pageNum = 4
       break
       case "New disk technologies":
       this.pageNum = 5
       break
       case "Understanding disaster recovery and restart and recovery":
       this.pageNum = 6
       break
       case "Drawbacks with backups":
       this.pageNum = 7
       break
       case "Backup in mainframe":
       this.pageNum = 8
       break
       case "Schematic presentation":
       this.pageNum = 9
       break
       case "For more information":
       this.pageNum = 10
       break
      }
      


      Regards,

      Muthuraj. D