9 Replies Latest reply on Sep 28, 2011 1:31 AM by try67

    page number

    sindhuxyz

      Hi,

       

      I want to display alert on page 3rd of document. How can I detect page number and add script to 3rd page?

       

      Any advise?

       

      Thanks

        • 1. Re: page number
          George_Johnson MVP & Adobe Community Professional

          If you want it to happen when the page is opened, use the Open Page event of that page. For example, you'd open the Pages navigation panel, select the page, right-click, select Properties, Actions tab, and set up a JavaScript action for the Page Open trigger.

          • 2. Re: page number
            sindhuxyz Level 1

            Can I do it by programming: Delecting page number and add script to event?

             

            Thanks

            • 3. Re: page number
              try67 MVP & Adobe Community Professional

              Yes. The current page number is this.pageNum and you can use the

              setPageAction() method to set the Open or Close action of a specific page.

              • 4. Re: page number
                alienA2 Level 1

                Sorry for hijacking the thread...

                 

                Can this method also do something like this...

                 

                If text(page number) = a real number

                then

                make a page number to it

                 

                eg.

                If page 6 on pdf is really page 6

                then set that page to page 6

                • 5. Re: page number
                  try67 MVP & Adobe Community Professional

                  I don't follow you... How can the page number not be number, or are you

                  talking about the page label?

                  • 6. Re: page number
                    alienA2 Level 1

                    I am looking for a way to do the following.

                     

                    Manually, most production personnel at Magazine companies do double checks on their sequence of their page numbering in the PDF file to ensure that the order is correct eg. 1(Front cover), 2 (Inside Front cover), 3, 4, 5, 6, 7, 8.

                     

                    So. I am looking for a way for the computer to simply count for me the order of the page numbers. AND IF there is any pages which are out of the order (e.g. 1,2,4,3,5,6), then let the user know.

                    • 7. Re: page number
                      try67 MVP & Adobe Community Professional

                      Do you mean that you want to check if the page number printed on the page

                      corresponds to its actual position in the file?

                      • 8. Re: page number
                        alienA2 Level 1

                        Yeah

                         

                        Also...taking into count that sometimes the Front cover and inside front cover is sometimes not given a page number, and the pages following the Inside Front cover will go as follows OFC, IFC, 1,2,3... and so on and so forth.

                        • 9. Re: page number
                          try67 MVP & Adobe Community Professional

                          That can be problematic. First of all, the file must be OCRed.

                          Secondly, in order to be able to identify the page number, it must be

                          either:

                          - Always in the same location on the page

                          - Following or proceeding a certain phrase

                          - Always word number X on the page