com.groupdocs.viewer.domain

Enum Transformation

    • Enum Constant Detail

      • Rotate

        public static final Transformation Rotate
        Rotate transformation.
      • Reorder

        public static final Transformation Reorder
        Reorder transformation.
      • AddPrintAction

        public static final Transformation AddPrintAction
        Indicates whether print action should be added to the PDF document or not. The print action is JavaScript action that opens print dialog when PDF document is opened. This transformation used only in GetPdfFile method in other methods it ignored.
    • Method Detail

      • values

        public static Transformation[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (Transformation c : Transformation.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static Transformation valueOf(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • fromValue

        public static Transformation fromValue(long value)
        Creates transformation object from value. Does not work with value of few combined transformations
        Parameters:
        value - the value
        Returns:
        the transformation
      • from

        public static int from(Transformation... transformations)
        Creates transformation object from value
        Parameters:
        transformations - the transformations
        Returns:
        the int
      • is

        public boolean is(int value)
        Check that transformations contains provided transformation
        Parameters:
        value - the value
        Returns:
        the boolean
      • equals

        public boolean equals(Transformation engineTypes)
        Checks is transformations are equals
        Parameters:
        engineTypes - the engine types
        Returns:
        the boolean
      • equals

        public boolean equals(int value)
        Checks is transformations are equals
        Parameters:
        value - the value
        Returns:
        the boolean
      • value

        public int value()
        Value int.
        Returns:
        the int