7 Replies Latest reply on Nov 1, 2016 8:04 AM by Laubender

    How to create list of objects onpage


      Hello, I need list of object on page sorted by order on page (I need to know order of images and others graphics objects), I have this script but the order of objects in document will not change order in the list:


      for (var y = 0, il = myDoc1.pages.length; y < il; y++) {

      myPageItems = myDoc1.pages.item(y);

      var pis = myPageItems.pageItems.everyItem().getElements();


      for example expect two objects onpage - circle and line, line is in front of circle in list I'll got "line, circle", when I change order and circle is in front of line the list of objects is the same ("line, circle").


      Than you in advance for help how this could be done.