com.aspose.pdf.facades

Class IPdfFileEditor.ContentsResizeValue

  • Enclosing interface:
    IPdfFileEditor


    public static class IPdfFileEditor.ContentsResizeValue
    extends Object

    Value of margin or content size specified in percents of default space units. This class is used in ContentsResizeParameters.

    • Method Detail

      • setPercentValue

        public void setPercentValue(double value)

        Sets value in percents of page size.

        Parameters:
        value - double value
      • setUnitValue

        public void setUnitValue(double value)

        Sets value in default space units.

        Parameters:
        value - double value
      • getValue

        public double getValue()

        Gets specified value. Use Unit property to get value units.

        Returns:
        double value
      • isPercent

        public boolean isPercent()

        Gets true if value is expressed in percents; False if value is expressed in default units.

        Returns:
        boolean value
      • percents

        public static IPdfFileEditor.ContentsResizeValue percents(double value)

        Initializes value in percents.

        Parameters:
        value - Value in percents.
        Returns:
        New value instance.
      • units

        public static IPdfFileEditor.ContentsResizeValue units(double value)

        Initializes value in default space units.

        Parameters:
        value - Value in percents.
        Returns:
        New value instance.