Enum CompressionLevel

    • Enum Constant Detail

      • HIGH

        public static final CompressionLevel HIGH
        Reduces the file size of pdf by reducing resolution of the coloured and grayscale images above 100 dpi to 72 dpi (dots per inch). This option uses JPEG medium quality compression. Output pdf will not contain hidden layers, document structure, metadata, javascript, user properties and print settings.
      • MEDIUM

        public static final CompressionLevel MEDIUM
        Reduces the file size of pdf by reducing resolution of the coloured and grayscale images above 200 dpi to 144 dpi (dots per inch). This option uses JP2K medium quality compression.
      • LOW

        public static final CompressionLevel LOW
        Reduces the file size of pdf by reducing resolution of the coloured and grayscale images above 250 dpi to 200 dpi (dots per inch). This option uses JP2K high quality compression.
    • Method Detail

      • values

        public static CompressionLevel[] 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 (CompressionLevel c : CompressionLevel.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CompressionLevel 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
      • getCompressionLevel

        public String getCompressionLevel()
        Returns the string representation of this CompressionLevel
        Returns:
        String representation of this CompressionLevel