code: public void setRunDirection(int runDirection) {
          if (runDirection < PdfWriter.RUN_DIRECTION_DEFAULT || runDirection > PdfWriter.RUN_DIRECTION_RTL)
              throw new RuntimeException("Invalid run direction: " + runDirection);
          this.runDirection = runDirection;
      }
docs: Sets the run direction.
  
  @param runDirection the run direction