code: public static void rotatePages(ImageInputStream imageInput, ImageOutputStream imageOutput, int degree)
              throws IOException {
          rotatePage(imageInput, imageOutput, degree, -1);
      }
docs: Rotates all pages of a TIFF file by changing TIFF.TAG_ORIENTATION.
  <p>
  NOTICE: TIFF.TAG_ORIENTATION is an advice how the image is meant do be
  displayed. Other metadata, such as width and height, relate to the image
  as how it is stored. The ImageIO TIFF plugin does not handle orientation.
  Use {@link TIFFUtilities#applyOrientation(BufferedImage, int)} for
  applying TIFF.TAG_ORIENTATION.
  </p>
  
  @param imageInput
  @param imageOutput
  @param degree      Rotation amount, supports 90�, 180� and 270�.
  @throws IOException