code: public void resetPageCount() {
          pageN = 0;
          DocListener listener;
  		for (Iterator iterator = listeners.iterator(); iterator.hasNext();) {
              listener = (DocListener) iterator.next();
              listener.resetPageCount();
          }
      }
docs: Sets the page number to 0.