code: public void nextColumn() throws DocumentException {
          currentColumn = (currentColumn + 1) % columnDefs.size();
          top = nextY;
          if (currentColumn == 0) {
              newPage();
          }
      }
docs: Moves the text insertion point to the beginning of the next column, issuing a page break if
  needed.
  @throws DocumentException on error