Enum PdfImageCompression

    • Enum Constant Detail

      • Auto

        public static final PdfImageCompression Auto

        Automatically selects the most appropriate compression for each image.

      • None

        public static final PdfImageCompression None

        Saves raw image bytes resulting in bigger PDF file sizes.

      • LzwBaselinePredictor

        public static final PdfImageCompression LzwBaselinePredictor

        Predictor selection is restricted to PNG Paeth predictor to speed-up the process. In practice performs surprisingly good. Better than LzwOptimizedPredictor.

      • LzwOptimizedPredictor

        public static final PdfImageCompression LzwOptimizedPredictor

        Predictor selection is more complicated and should result in smaller image sizes but taking more time.

      • Jpeg

        public static final PdfImageCompression Jpeg

        JPEG compression. Does not support transparency.

    • Method Detail

      • values

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

        public static PdfImageCompression 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.)
        name - the name of the enum constant to be returned.
        the enum constant with the specified name
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null