com.groupdocs.viewer.options

Class ViewOptions

    • Constructor Detail

      • ViewOptions

        public ViewOptions()
    • Method Detail

      • rotatePage

        public final void rotatePage(int pageNumber,
                      Rotation rotation)

        Applies clockwise rotation to the page.

        Parameters:
        pageNumber - The page number.
        rotation - The rotation value.
        Throws:
        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.