com.groupdocs.viewer.options

Class Size



  • public class Size
    extends Object

    Watermark size.

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static Size FULL_SIZE
      The maximum size of watermark text that fits page.
      static Size HALF_SIZE
      The half of the maximum size of watermark text that fits page.
      static Size ONE_THIRD
      The one third of the maximum size of watermark text that fits page.
    • Constructor Summary

      Constructors 
      Constructor and Description
      Size(byte relativeSize)
      Initializes new instance of Size class.
    • Field Detail

      • FULL_SIZE

        public static final Size FULL_SIZE

        The maximum size of watermark text that fits page.

      • HALF_SIZE

        public static final Size HALF_SIZE

        The half of the maximum size of watermark text that fits page.

      • ONE_THIRD

        public static final Size ONE_THIRD

        The one third of the maximum size of watermark text that fits page.

    • Constructor Detail

      • Size

        public Size(byte relativeSize)
             throws IllegalArgumentException

        Initializes new instance of Size class.

        Parameters:
        relativeSize - The size in percents in relation to page size.
        Throws:
        IllegalArgumentException - Thrown when relativeSize is zero or higher than 100.
    • Method Detail

      • getRelativeSize

        public final byte getRelativeSize()

        The watermark text size in percentages in relation to page width. Valid values are between 1 and 100.