6 Replies Latest reply on Dec 17, 2013 9:58 PM by BEGINNER_X

    Check continuous Page Number in Document

    BEGINNER_X Level 3

      Hi ALL,


      Is it possble to check the continuous page number in the active document.


      Problem is due to using multiple "Number and Sections options" in the F12 pages panel.


      No error: alert("Pass")


      if any error in folio sequence: alert("Fail")


      Could anyone please help for my request.


      Currently override all master page items by using the following script



       function main() {
          var doc = app.activeDocument,
              i, l, page, j;
          for (i = 0; i<  doc.pages.length; ++) {
              page = doc.pages[i];
              if (page.appliedMaster !== null) {
                  for (j = 0; j< page.appliedMaster.pageItems.length; j++) {
                      try {
                      } catch(e) {}


      Thanks in advance