2 Replies Latest reply on Jan 10, 2016 2:44 PM by Test Screen Name

    Hi, Any body help me how to create buttons from folder level using acrobat javascript?

    poornac66589638

      Here is my code, I don't now how to get doc object from folder level

      I have tried this

      I am using Acrobat pro 11.

      d=app.activeDocs;

      doc=typeof(d[0]);

      But its not giving doc object,

       

      var f = doc.addField("myButton", "button", 0, [300, 350, 450, 400]);

      f.strokeColor = doc.appcolor.blue;

      f.borderStyle = doc.app.border.b;

      f.buttonSetCaption("Click Here");

      f.setAction("MouseUp", "app.alert(‘Hello’);" );

       

      Please any one help me.

      Thanks in advance.