com.aspose.pdf

Interfaces

Classes

Enums

Exceptions

com.aspose.pdf

Class Metered



  • public class Metered
    extends Object

    Provides methods to set metered key.


    In this example, an attempt will be made to set metered public and private key
      The component jar file:
      
            Metered matered = new Metered();
            matered.setMeteredKey("PublicKey", "PrivateKey");
      
    • Constructor Detail

      • Metered

        public Metered()

        Initializes a new instance of this class.

    • Method Detail

      • setMeteredKey

        public void setMeteredKey(String publicKey,
                                  String privateKey)

        Sets metered public and private key

        Parameters:
        publicKey - public key
        privateKey - private key
      • getConsumptionQuantity

        public static double getConsumptionQuantity()
                                             throws Exception

        Gets consumption file size

        Returns:
        consumption quantity
        Throws:
        Exception - if Metered API problem.
      • getConsumptionCredit

        public static double getConsumptionCredit()
                                           throws Exception

        Gets consumption credit

        Returns:
        consumption quantity
        Throws:
        Exception - if Metered API problem.