Class ViewOptions

    • Constructor Detail

      • ViewOptions

        public ViewOptions()
    • Method Detail

      • rotatePage

        public final void rotatePage(int pageNumber,
                                     Rotation rotation)

        Applies clockwise rotation to the page.

        pageNumber - The page number.
        rotation - The rotation value.
        IllegalArgumentException - Thrown when pageNumber is less or equal to zero.
        IllegalArgumentException - Thrown when rotation for the page with number pageNumber was already added.
      • setWatermark

        public final void setWatermark(Watermark value)

        The text watermark applied to each page.

        In case both ViewOptions.Watermark and getPageRotations() are specified than watermark will be applied to the rotated pages.