5 Replies Latest reply on Jun 12, 2012 2:02 PM by valeri_dzia

    active page number

    valeri_dzia

      Hello

       

      I have an html as a viewer of PDF file:

       

      <html>

      ....

      <body>

      ...

      <object name="ThePDF" id="ThePDF" data="test.pdf" width="800px" height="600px"></object>

      ....

      <:BODY>

      </html>

       

      In my html I add the button to display the number of the current page

       

      I put a little javascript code in my PDF via Acrobat,

       

      var pgNum = this.numPages;

      app.alert(pgNum),

       

      but he always shows 0

       

      how can I show the numer of page which is activated?

       

      Thanks